CVE-2014-5464
Description
Cross-site scripting (XSS) vulnerability in the nDPI traffic classification library in ntopng (aka ntop) before 1.2.1 allows remote attackers to inject arbitrary web script or HTML via the HTTP Host header.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
ntopng 1.2.0 - Cross-Site Scripting Injection
ntopng 1.2.0 XSS injection using monitored network traffic
ntopng is the next generation version of the original ntop, a network
traffic probe and monitor that shows the network usage, similar to what
the popular top Unix command does.
The web-based frontend of the software is vulnerable to injection of
script code via forged HTTP Host: request header lines in monitored
network traffic.
HTTP Host request header lines are extracted using nDPI traffic
classification library and used without sanitization in several places
in the frontend, e.g. the Host overview and specific subpages for each
monitored host.
The injected code might be used to execute javascript and to perform
management actions with the user-rights of the current ntopng user,
which can be used to disable the monitoring function or deletion of
accounts making the monitoring system unusable.
To give a coarse idea of the vulnerability the following python script
can be used on the monitored network, afterwards the victim needs to
browse to the Host overview / Host details in the ntopng frontend.
import httplib
conn = httplib.HTTPConnection("example.com")
headers = {"Host": "<SCRIPT>alert(\"xss\")</SCRIPT>", "Accept":
"text/plain"}
conn.request("GET", "/", None, headers)
r1 = conn.getresponse()
print(r1.status, r1.reason)
data1 = r1.read()
Other users of the nDPI code might be affected as well.
Steffen Bauch
Twitter: @steffenbauch
http://steffenbauch.de
References
- http://osvdb.org/show/osvdb/110437
- http://packetstormsecurity.com/files/127995/ntopng-1.2.0-Cross-Site-Scripting.html
- http://seclists.org/fulldisclosure/2014/Aug/65
- http://seclists.org/fulldisclosure/2014/Sep/22
- http://seclists.org/fulldisclosure/2014/Sep/28
- http://secunia.com/advisories/60096
- http://www.exploit-db.com/exploits/34419
- http://www.ntop.org/ndpi/released-ndpi-1-5-1-and-ntopng-1-2-1/
- http://www.securityfocus.com/archive/1/533222/100/0/threaded
- http://www.securityfocus.com/archive/1/533332/100/0/threaded
- http://www.securityfocus.com/bid/69385
- https://exchange.xforce.ibmcloud.com/vulnerabilities/95461
- http://osvdb.org/show/osvdb/110437
- http://packetstormsecurity.com/files/127995/ntopng-1.2.0-Cross-Site-Scripting.html
- http://seclists.org/fulldisclosure/2014/Aug/65
- http://seclists.org/fulldisclosure/2014/Sep/22
- http://seclists.org/fulldisclosure/2014/Sep/28
- http://secunia.com/advisories/60096
- http://www.exploit-db.com/exploits/34419
- http://www.ntop.org/ndpi/released-ndpi-1-5-1-and-ntopng-1-2-1/
- http://www.securityfocus.com/archive/1/533222/100/0/threaded
- http://www.securityfocus.com/archive/1/533332/100/0/threaded
- http://www.securityfocus.com/bid/69385
- https://exchange.xforce.ibmcloud.com/vulnerabilities/95461
CWEs
CWE-79
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.