Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:GA
python3-doc
CVE-2014-4650-CGIHTTPServer-traversal.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CVE-2014-4650-CGIHTTPServer-traversal.patch of Package python3-doc
# HG changeset patch # User Benjamin Peterson <benjamin@python.org> # Date 1402796473 25200 # Node ID 847e288d6e93dba049c280f40979e16a1378d0f6 # Parent 6f1f387759913d91cb307d2783b3a40c48fe7424# Parent 5676797f3a3eccaf38e2c500e77ed39c68923cc9 merge 3.3 (#21766) Index: Python-3.4.1/Lib/http/server.py =================================================================== --- Python-3.4.1.orig/Lib/http/server.py 2014-07-23 18:18:25.808928664 +0200 +++ Python-3.4.1/Lib/http/server.py 2014-07-23 18:18:29.568947377 +0200 @@ -977,7 +977,7 @@ (and the next character is a '/' or the end of the string). """ - collapsed_path = _url_collapse_path(self.path) + collapsed_path = _url_collapse_path(urllib.parse.unquote(self.path)) dir_sep = collapsed_path.find('/', 1) head, tail = collapsed_path[:dir_sep], collapsed_path[dir_sep+1:] if head in self.cgi_directories: Index: Python-3.4.1/Lib/test/test_httpservers.py =================================================================== --- Python-3.4.1.orig/Lib/test/test_httpservers.py 2014-07-23 18:18:25.808928664 +0200 +++ Python-3.4.1/Lib/test/test_httpservers.py 2014-07-23 18:18:29.568947377 +0200 @@ -485,6 +485,11 @@ (res.read(), res.getheader('Content-type'), res.status)) self.assertEqual(os.environ['SERVER_SOFTWARE'], signature) + def test_urlquote_decoding_in_cgi_check(self): + res = self.request('/cgi-bin%2ffile1.py') + self.assertEqual((b'Hello World\n', 'text/html', 200), + (res.read(), res.getheader('Content-type'), res.status)) + class SocketlessRequestHandler(SimpleHTTPRequestHandler): def __init__(self):
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor