Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 937946 (CVE-2024-42353)

Summary: <dev-python/webob-1.8.8: Location header normalization during redirect leads to open redirect
Product: Gentoo Security Reporter: Michał Górny <mgorny>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: CONFIRMED ---    
Severity: normal CC: python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/Pylons/webob/security/advisories/GHSA-mg3v-6m49-jhp3
Whiteboard: B4 [glsa?]
Package list:
Runtime testing required: ---
Bug Depends on: 937947    
Bug Blocks:    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-08-15 03:43:45 UTC
When WebOb normalizes the HTTP Location header to include the request hostname, it does so by parsing the URL that the user is to be redirected to with Python's urlparse, and joining it to the base URL. urlparse however treats a // at the start of a string as a URI without a scheme, and then treats the next part as the hostname. urljoin will then use that hostname from the second part as the hostname replacing the original one from the request.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-08-15 09:31:02 UTC
Cleanup done.