Hide Forgot
A flaw was reported [1] in Python's SimpleHTTPServer's list_directory() function. Due to a missing charset parameter, if a user were to connect to SimpleHTTPServer using IE7, which engages in encoding-sniffing and can be tricked into interpretting the output as UTF7. Because of this, an attacker could hide <script> tags in UTF7-encoded characters which do not get quoted by cgi.encode(), allowing XSS attacks. This has been corrected upstream in version 2.6.7rc2 [2], 2.5.6c1 [3]. It may be fixed in 2.7 as well, but I was unable to find a commit to match it against. [1] http://bugs.python.org/issue11442 [2] http://svn.python.org/view/python/branches/release26-maint/Lib/SimpleHTTPServer.py?r1=66717&r2=88831&view=patch [3] http://svn.python.org/view/python/branches/release25-maint/Lib/SimpleHTTPServer.py?r1=53148&r2=88815&view=patch
Added CVE as per http://www.openwall.com/lists/oss-security/2012/03/15/1
Created python tracking bugs for this issue Affects: fedora-all [bug 808303]
Created python26 tracking bugs for this issue Affects: epel-5 [bug 808305]
Created python3 tracking bugs for this issue Affects: fedora-all [bug 808304]
(In reply to comment #0) > http://svn.python.org/view/python/branches/release26-maint/Lib/SimpleHTTPServer.py?r1=66717&r2=88831&view=patch > http://svn.python.org/view/python/branches/release25-maint/Lib/SimpleHTTPServer.py?r1=53148&r2=88815&view=patch A little nicer commit links: http://svn.python.org/view?view=revision&revision=88831 http://hg.python.org/cpython/rev/e9724d7abbc2
This issue has been addressed in following products: Red Hat Enterprise Linux 6 Via RHSA-2012:0744 https://rhn.redhat.com/errata/RHSA-2012-0744.html
This issue has been addressed in following products: Red Hat Enterprise Linux 5 Via RHSA-2012:0745 https://rhn.redhat.com/errata/RHSA-2012-0745.html
*** Bug 835496 has been marked as a duplicate of this bug. ***