Published:2012/06/19  Last Updated:2012/06/28

JVN#51176027
Python SimpleHTTPServer vulnerable to cross-site scripting

Overview

The SimpleHTTPServer in Python contains a cross-site scripting vulnerability.

Products Affected

  • Python versions prior to 2.7.2
  • Python versions prior to 2.6.7 rc2
  • Python versions prior to 2.5.6c1

Description

The SimpleHTTPServer in Python contains a cross-site scripting vulnerability.

Impact

An arbitrary script may be executed on the user's Internet Explorer.

According to the developer, this issue exists only when using Internet Explorer 7.

Solution

Update the software
Update to the latest version according to the information provided by the developer.

Vendor Status

Vendor Link
Python Issue 11442

References

JPCERT/CC Addendum

This JVN publication was delayed to 2012/6/19 after the developer fix was developed. From the fiscal year 2011, JPCERT/CC is using a new vendor coordination procedure. This new procedure came from the recommendation of the fiscal year 2010 "Study Group on Information System Vulnerability Handling" aimed at more timely JVN publications.

Vulnerability Analysis by JPCERT/CC

Analyzed on 2012.06.19

Measures Conditions Severity
Access Required can be attacked over the Internet using packets
  • High
Authentication anonymous or no authentication (IP addresses do not count)
  • High
User Interaction Required the user must be convinced to take a standard action that does not feel harmful to most users, such as click on a link or view a file
  • Mid
Exploit Complexity the user must be convinced to take a difficult or suspicious action. If the honest user must have elevated privileges, they are likely to be more suspiciouse
  • High

Description of each analysis measures

Credit

Keigo Yamazaki of Little eArth Corporation Co., Ltd. reported this vulnerability to IPA.
JPCERT/CC coordinated with the developer under Information Security Early Warning Partnership.

Other Information

JPCERT Alert
JPCERT Reports
CERT Advisory
CPNI Advisory
TRnotes
CVE CVE-2011-4940
JVN iPedia JVNDB-2012-000063

Update History

2012/06/20
Information under the section "Other Information" was updated.
2012/06/28
Information under the section "Other Information" was modified.