summaryrefslogtreecommitdiff
path: root/Python/pyarena.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-04-02 02:52:20 +0200
committerGitHub <noreply@github.com>2020-04-02 02:52:20 +0200
commit0b297d4ff1c0e4480ad33acae793fbaf4bf015b4 (patch)
tree7f39cf8cddaf63245f29e784ee570586d902afed /Python/pyarena.c
parentd57cf557366584539f400db523b555296487e8f5 (diff)
downloadcpython-git-0b297d4ff1c0e4480ad33acae793fbaf4bf015b4.tar.gz
bpo-39503: CVE-2020-8492: Fix AbstractBasicAuthHandler (GH-18284)
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>
Diffstat (limited to 'Python/pyarena.c')
0 files changed, 0 insertions, 0 deletions