]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391) (GH-25247)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 7 Apr 2021 15:58:04 +0000 (08:58 -0700)
committerGitHub <noreply@github.com>
Wed, 7 Apr 2021 15:58:04 +0000 (17:58 +0200)
commita21d4fbd549ec9685068a113660553d7f80d9b09
treeaa1d4f51ef63d73f1dfdb9a2a58b92185094b55d
parent0af99b44edf559305def22b2d68be685ce50d7f6
bpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391) (GH-25247)

Fix Regular Expression Denial of Service (ReDoS) vulnerability in
urllib.request.AbstractBasicAuthHandler. The ReDoS-vulnerable regex
has quadratic worst-case complexity and it allows cause a denial of
service when identifying crafted invalid RFCs. This ReDoS issue is on
the client side and needs remote attackers to control the HTTP server.
(cherry picked from commit 7215d1ae25525c92b026166f9d5cac85fb1defe1)

Co-authored-by: Yeting Li <liyt@ios.ac.cn>
Co-authored-by: Yeting Li <liyt@ios.ac.cn>
Lib/urllib/request.py
Misc/NEWS.d/next/Security/2021-01-31-05-28-14.bpo-43075.DoAXqO.rst [new file with mode: 0644]