Skip to content

Conversation

@tapakund
Copy link

@tapakund tapakund commented Apr 2, 2020

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 [email protected]

Signed-off-by: Tapas Kundu [email protected]

https://bugs.python.org/issue39503

@tapakund tapakund changed the title bpo-39503: CVE-2020-8492: Fix AbstractBasicAuthHandler [3.5] bpo-39503: CVE-2020-8492: Fix AbstractBasicAuthHandler Apr 2, 2020
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 <[email protected]>

Co-authored-by: Victor Stinner [email protected]

Signed-off-by: Tapas Kundu <[email protected]>
@tapakund
Copy link
Author

tapakund commented Apr 2, 2020

Need rework. Will reopen later.

@tapakund tapakund closed this Apr 2, 2020
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.

3 participants