Vulnerability Details : 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 category: Cross site scripting (XSS)
Products affected by CVE-2011-4940
- cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.4.6:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.5.1:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.2.3:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.3.7:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.5.2:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.1.2:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.3.3:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.4.4:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.4.2:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.5.4:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.3.2:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.3.1:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.4.3:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.3.5:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.1.3:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.2.1:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.2.2:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.4.1:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.0.1:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.6.6:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.6.5:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.5.3:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.6.1:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.3.4:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.1.1:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.6.4:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.7.1:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:1.2:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:1.3:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:1.6.1:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:1.6:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:0.9.0:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:1.5.2:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:0.9.1:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.6.3:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.6.2:*:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.7.2:rc1:*:*:*:*:*:*
- cpe:2.3:a:python:python:2.7.1:rc1:*:*:*:*:*:*
Threat overview for CVE-2011-4940
Top countries where our scanners detected CVE-2011-4940
Top open port discovered on systems with this issue
80
IPs affected by CVE-2011-4940 1,484
Threat actors abusing to this issue?
Yes
Find out if you* are
affected by CVE-2011-4940!
*Directly or indirectly through your vendors, service providers and 3rd parties.
Powered by
attack surface intelligence
from SecurityScorecard.
Exploit prediction scoring system (EPSS) score for CVE-2011-4940
0.42%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 71 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2011-4940
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
2.6
|
LOW | AV:N/AC:H/Au:N/C:N/I:P/A:N |
4.9
|
2.9
|
NIST |
CWE ids for CVE-2011-4940
-
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.Assigned by: nvd@nist.gov (Primary)
References for CVE-2011-4940
-
http://www.ubuntu.com/usn/USN-1613-2
USN-1613-2: Python 2.4 vulnerabilities | Ubuntu security notices
-
http://www.ubuntu.com/usn/USN-1596-1
USN-1596-1: Python 2.6 vulnerabilities | Ubuntu security notices
-
http://jvndb.jvn.jp/jvndb/JVNDB-2012-000063
JVNDB-2012-000063 - JVN iPedia - 脆弱性対策情報データベース
-
http://jvn.jp/en/jp/JVN51176027/index.html
JVN#51176027: Python SimpleHTTPServer vulnerable to cross-site scripting
-
http://www.securityfocus.com/bid/54083
Python SimpleHTTPServer 'list_directory()' Function Cross Site Scripting Vulnerability
-
https://bugzilla.redhat.com/show_bug.cgi?id=803500
803500 – (CVE-2011-4940) CVE-2011-4940 python: potential XSS in SimpleHTTPServer's list_directory()
-
http://bugs.python.org/issue11442
Issue 11442: list_directory() in SimpleHTTPServer.py should add charset=... to Content-type header - Python tracker
-
http://www.ubuntu.com/usn/USN-1592-1
USN-1592-1: Python 2.7 vulnerabilities | Ubuntu security notices
-
http://www.ubuntu.com/usn/USN-1613-1
USN-1613-1: Python 2.5 vulnerabilities | Ubuntu security notices
Jump to