Skip to content

Comments

[3.7] bpo-46756: Fix authorization check in urllib.request (GH-31353)#31573

Merged
ned-deily merged 1 commit intopython:3.7from
miss-islington:backport-e2e7256-3.7
Feb 25, 2022
Merged

[3.7] bpo-46756: Fix authorization check in urllib.request (GH-31353)#31573
ned-deily merged 1 commit intopython:3.7from
miss-islington:backport-e2e7256-3.7

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Feb 25, 2022

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".
(cherry picked from commit e2e7256)

Co-authored-by: Serhiy Storchaka [email protected]

https://bugs.python.org/issue46756

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".
(cherry picked from commit e2e7256)

Co-authored-by: Serhiy Storchaka <[email protected]>
@miss-islington
Copy link
Contributor Author

@serhiy-storchaka: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Contributor Author

Sorry, I can't merge this PR. Reason: You're not authorized to push to this branch. Visit https://docs.github.com/articles/about-protected-branches/ for more information..

@ned-deily ned-deily merged commit 31fef7e into python:3.7 Feb 25, 2022
@miss-islington miss-islington deleted the backport-e2e7256-3.7 branch February 25, 2022 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants