Python up to 2.7.2 SimpleHTTPServer SimpleHTTPServer.py list_directory cross site scripting
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.0 | $0-$5k | 0.00 |
Summary
A vulnerability classified as problematic was found in Python. The affected element is the function list_directory of the file SimpleHTTPServer.py of the component SimpleHTTPServer Module. Executing a manipulation can lead to cross site scripting.
This vulnerability is tracked as CVE-2011-4940. The attack can be launched remotely. No exploit exists.
It is advisable to implement a patch to correct this issue.
Details
A vulnerability classified as critical was found in Python (Programming Language Software). This vulnerability affects the function list_directory of the file SimpleHTTPServer.py of the component SimpleHTTPServer Module. The manipulation with an unknown input leads to a cross site scripting vulnerability. The CWE definition for the vulnerability is CWE-79. 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. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:
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.
The weakness was disclosed 06/19/2012 as 11442 as not defined advisory (Website). The advisory is shared for download at bugs.python.org. This vulnerability was named CVE-2011-4940 since 12/23/2011. The exploitation appears to be easy. The attack can be initiated remotely. No form of authentication is required for a successful exploitation. Successful exploitation requires user interaction by the victim. There are known technical details, but no exploit is available. The MITRE ATT&CK project declares the attack technique as T1059.007.
The vulnerability scanner Nessus provides a plugin with the ID 68546 (Oracle Linux 5 : python (ELSA-2012-0745)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Oracle Linux Local Security Checks. The commercial vulnerability scanner Qualys is able to test this issue with plugin 350649 (Amazon Linux Security Advisory for python26: ALAS-2012-098).
Applying the patch SimpleHTTPServer-fix-2.7.patch is able to eliminate this problem. The bugfix is ready for download at bugs.python.org.
The vulnerability is also documented in the databases at Tenable (68546), SecurityFocus (BID 54083†), OSVDB (83057†), Secunia (SA49525†) and Vulnerability Center (SBV-35438†). The entries VDB-4807, VDB-10932, VDB-10931 and VDB-10939 are pretty similar. Once again VulDB remains the best source for vulnerability data.
Product
Type
Name
Version
- 0.9.0
- 0.9.1
- 1.2
- 1.3
- 1.5.2
- 1.6
- 1.6.1
- 2.0.1
- 2.1.1
- 2.1.2
- 2.1.3
- 2.2.1
- 2.2.2
- 2.2.3
- 2.3.1
- 2.3.2
- 2.3.3
- 2.3.4
- 2.3.5
- 2.3.7
- 2.4.1
- 2.4.2
- 2.4.3
- 2.4.4
- 2.4.6
- 2.5.1
- 2.5.2
- 2.5.3
- 2.5.4
- 2.5.6
- 2.6.1
- 2.6.2
- 2.6.3
- 2.6.4
- 2.6.5
- 2.6.6
- 2.7
- 2.7.1
- 2.7.2
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.3VulDB Meta Temp Score: 6.0
VulDB Base Score: 6.3
VulDB Temp Score: 6.0
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Cross site scriptingCWE: CWE-79 / CWE-94 / CWE-74
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 68546
Nessus Name: Oracle Linux 5 : python (ELSA-2012-0745)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍
OpenVAS ID: 881085
OpenVAS Name: CentOS Update for python CESA-2012:0744 centos6
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
0-Day Time: 🔍
Patch: SimpleHTTPServer-fix-2.7.patch
Timeline
12/23/2011 🔍06/19/2012 🔍
06/19/2012 🔍
06/19/2012 🔍
06/20/2012 🔍
06/21/2012 🔍
06/22/2012 🔍
06/27/2012 🔍
06/27/2012 🔍
07/12/2013 🔍
03/25/2021 🔍
Sources
Advisory: 11442Status: Not defined
Confirmation: 🔍
CVE: CVE-2011-4940 (🔍)
GCVE (CVE): GCVE-0-2011-4940
GCVE (VulDB): GCVE-100-5572
OVAL: 🔍
IAVM: 🔍
SecurityFocus: 54083 - Python SimpleHTTPServer 'list_directory()' Function Cross Site Scripting Vulnerability
Secunia: 49525 - Red Hat update for python, Moderately Critical
OSVDB: 83057
Vulnerability Center: 35438 - Python SimpleHTTPServer list_directory() XSS Vulnerability, Medium
See also: 🔍
Entry
Created: 06/22/2012 15:31Updated: 03/25/2021 17:22
Changes: 06/22/2012 15:31 (76), 04/14/2017 13:41 (11), 03/25/2021 17:22 (3)
Complete: 🔍
Cache ID: 216:694:103
No comments yet. Languages: en.
Please log in to comment.