CVE-2011-4940
Python SimpleHTTPServer UTF-7 Encoding XSS Vulnerability
Description
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.
INFO
Published Date :
June 27, 2012, 10:18 a.m.
Last Modified :
Feb. 13, 2023, 3:24 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
2.9
Exploitability Score :
4.9
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2011-4940
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2011-4940
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2011-4940
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Feb. 13, 2023
Action Type Old Value New Value Changed Description CVE-2011-4940 python: potential XSS in SimpleHTTPServer's list_directory() 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. Removed CVSS V2 Metadata Victim must voluntarily interact with attack mechanism Removed CVSS V2 Red Hat, Inc. (AV:N/AC:H/Au:N/C:N/I:P/A:N) Removed Reference https://access.redhat.com/errata/RHSA-2012:0744 [No Types Assigned] Removed Reference https://access.redhat.com/errata/RHSA-2012:0745 [No Types Assigned] Removed Reference https://access.redhat.com/security/cve/CVE-2011-4940 [No Types Assigned] -
CVE Modified by [email protected]
Feb. 02, 2023
Action Type Old Value New Value Changed Description 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. CVE-2011-4940 python: potential XSS in SimpleHTTPServer's list_directory() Added CVSS V2 Red Hat, Inc. (AV:N/AC:H/Au:N/C:N/I:P/A:N) Added Reference https://access.redhat.com/errata/RHSA-2012:0744 [No Types Assigned] Added Reference https://access.redhat.com/errata/RHSA-2012:0745 [No Types Assigned] Added Reference https://access.redhat.com/security/cve/CVE-2011-4940 [No Types Assigned] -
CPE Deprecation Remap by [email protected]
Oct. 25, 2019
Action Type Old Value New Value Changed CPE Configuration OR *cpe:2.3:a:python:python:2.7:*:*:*:*:*:*:* OR *cpe:2.3:a:python:python:2.7.0:*:*:*:*:*:*:* -
Initial Analysis by [email protected]
Jun. 27, 2012
Action Type Old Value New Value
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2011-4940
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2011-4940
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.42 }} 0.00%
score
0.70240
percentile