Skip to content

Comments

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

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

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

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 ✅ .

1 similar comment
@miss-islington
Copy link
Contributor Author

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

@bedevere-bot bedevere-bot added type-bug An unexpected behavior, bug, or error type-security A security issue labels Feb 25, 2022
@miss-islington
Copy link
Contributor Author

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

@miss-islington miss-islington merged commit 2b7e04d into python:3.10 Feb 25, 2022
@miss-islington miss-islington deleted the backport-e2e7256-3.10 branch February 25, 2022 11:57
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.

4 participants