]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46756: Fix authorization check in urllib.request (GH-31353)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 25 Feb 2022 11:31:03 +0000 (13:31 +0200)
committerGitHub <noreply@github.com>
Fri, 25 Feb 2022 11:31:03 +0000 (13:31 +0200)
commite2e72567a1c94c548868f6ee5329363e6036057a
tree4fda0ff786291269065939cc0693ae670276dd30
parent53ecf9e08d35801807daf74492c090a325f995b7
bpo-46756: Fix authorization check in urllib.request (GH-31353)

Fix a bug in urllib.request.HTTPPasswordMgr.find_user_password() and
urllib.request.HTTPPasswordMgrWithPriorAuth.is_authenticated() which
allowed to bypass authorization. For example, access to URI "example.org/foobar"
was allowed if the user was authorized for URI "example.org/foo".
Lib/test/test_urllib2.py
Lib/urllib/request.py
Misc/NEWS.d/next/Library/2022-02-15-11-57-53.bpo-46756.AigSPi.rst [new file with mode: 0644]