Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.5] closes bpo-38576: Disallow control characters in hostnames in h…#19231

Closed
tapakund wants to merge 1 commit into
python:3.5python/cpython:3.5from
tapakund:3.5Copy head branch name to clipboard
Closed

[3.5] closes bpo-38576: Disallow control characters in hostnames in h…#19231
tapakund wants to merge 1 commit into
python:3.5python/cpython:3.5from
tapakund:3.5Copy head branch name to clipboard

Conversation

@tapakund

@tapakund tapakund commented Mar 30, 2020

Copy link
Copy Markdown

…ttp.client.

Add host validation for control characters for more
CVE-2019-18348 protection.
(cherry picked from commit 83fc701)

Co-authored-by: Ashwin Ramaswami aramaswamis@gmail.com

Signed-off-by: Tapas Kundu tkundu@vmware.com

https://bugs.python.org/issue38576

The AbstractBasicAuthHandler class of the urllib.request module uses
an inefficient regular expression which can be exploited by an
attacker to cause a denial of service. Fix the regex to prevent the
catastrophic backtracking. Vulnerability reported by Ben Caller
and Matt Schwager.

AbstractBasicAuthHandler of urllib.request now parses all
WWW-Authenticate HTTP headers and accepts multiple challenges per
header: use the realm of the first Basic challenge.

Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>

Signed-off-by: Tapas Kundu <tkundu@vmware.com>
@tapakund

tapakund commented Apr 2, 2020

Copy link
Copy Markdown
Author

Will raise a fresh PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.