XSS in Python
CVE-2011-4940
The list_directory function in Lib/SimpleHTTPServer.py in SimpleHTTPServer in Python before 2.5.6c1, 2.6.x before 2.6.7 rc2, and 2.7.x before 2.7.2 does not place a charset parameter in the Content-Type HTTP header, which makes it easier for remote attackers to conduct cross-site scripting (XSS) attacks against Internet Explorer 7 via UTF-7 encoding.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v2 metric
CVSS v2 base score 2.6 (Low). Vector: AV:N/AC:H/Au:N/C:N/I:P/A:N. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS: 0.032 (87.8th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 88th percentile — 87.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.032 · newest: 0.032 · change: 0.000
Affected products
- Python — versions 0.9.0, 0.9.1, 1.2
Weakness classification (CWE)
References
- www.ubuntu.com/usn/USN-1592-1 (vendor-advisory)
- jvn.jp/en/jp/JVN51176027/index.html (third-party-advisory)
- secunia.com/advisories/51040 (third-party-advisory)
- secunia.com/advisories/50858 (third-party-advisory)
- bugs.python.org/issue11442
- www.securityfocus.com/bid/54083 (vdb-entry)
- www.ubuntu.com/usn/USN-1596-1 (vendor-advisory)
- www.ubuntu.com/usn/USN-1613-2 (vendor-advisory)
- jvndb.jvn.jp/jvndb/JVNDB-2012-000063 (third-party-advisory)
- bugzilla.redhat.com/show_bug.cgi