CVE-2024-42353CWE-601

WebOb's location header normalization during redirect leads to open redirect

Medium · published August 14, 2024

CVSS v3.1
6.1
EPSS
1%
Percentile
46.4
In the wild
Unconfirmed
What it is

WebOb provides objects for HTTP requests and responses. 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. This vulnerability is patched in WebOb version 1.8.8.

The record
Technical detail
CVSS v3.1
6.1 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00569 · 46.4th percentile
Weakness
CWE-601 · URL Redirection to Untrusted Site ('Open Redirect')
Published
2024-08-14T20:12Z
EPSS history
Timeline
  • 14 AUG 20:12Z
    WebOb's location header normalization during redirect leads to open redirect
    cvelistv5