CVE-2024-42353 MEDIUM

CVE-2024-42353: WebOb's location header normalization during redirect leads to open redirect

Vendor Pylons
Product webob
Weakness CWE-601 · Open redirect
Published August 14, 2024
Last update August 15, 2024

CVSS base score

6.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

August 14, 2024 CVE published
August 15, 2024 Record updated