Browse Source
bpo-30458: Disallow control chars in http URLs. (GH-12755)
bpo-30458: Disallow control chars in http URLs. (GH-12755)
Disallow control chars in http URLs in urllib.urlopen. This addresses a potential security problem for applications that do not sanity check their URLs where http request headers could be injected.pull/13032/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 71 additions and 2 deletions
-
14Lib/http/client.py
-
49Lib/test/test_urllib.py
-
9Lib/test/test_xmlrpc.py
-
1Misc/NEWS.d/next/Security/2019-04-10-08-53-30.bpo-36276.51E-DA.rst
@ -0,0 +1 @@ |
|||
Address CVE-2019-9740 by disallowing URL paths with embedded whitespace or control characters through into the underlying http client request. Such potentially malicious header injection URLs now cause a ValueError to be raised. |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue