Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937946 (CVE-2024-42353) - <dev-python/webob-1.8.8: Location header normalization during redirect leads to open redirect
Summary: <dev-python/webob-1.8.8: Location header normalization during redirect leads ...
Status: CONFIRMED
Alias: CVE-2024-42353
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Security
URL: https://github.com/Pylons/webob/secur...
Whiteboard: B4 [glsa?]
Keywords:
Depends on: 937947
Blocks:
  Show dependency tree
 
Reported: 2024-08-15 03:43 UTC by Michał Górny
Modified: 2024-08-16 05:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.