
Cloud Vulnerability DB
A community-led vulnerabilities database
WebOb version 1.8.7 and earlier contains a vulnerability in the HTTP Location header normalization process (CVE-2024-42353). The issue was discovered and disclosed on August 14, 2024, affecting the WebOb package's handling of redirect locations. This vulnerability impacts applications using WebOb for HTTP request and response handling (GitHub Advisory).
The vulnerability occurs when WebOb normalizes the HTTP Location header to include the request hostname. The process involves parsing the redirect URL using Python's urlparse and joining it to the base URL. When a URL starts with '//', urlparse treats it as a URI without a scheme and interprets the next part as the hostname. Subsequently, urljoin uses this hostname from the second part to replace the original hostname from the request. The vulnerability has been assigned a CVSS v3.1 base score of 6.1 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (GitHub Advisory).
The vulnerability can lead to open redirect attacks. An attacker could exploit this by crafting specific URLs that, when processed by WebOb's location normalization function, redirect users from the intended domain to a malicious site. For example, a request to 'https://example.org//attacker.com/some/path' could be redirected to 'https://attacker.com/some/path/' (GitHub Advisory).
The vulnerability has been patched in WebOb version 1.8.8. For users unable to upgrade immediately, a workaround is available: ensure that any use of the Response class that includes a location always passes a full URI that includes the hostname for user redirection. It's recommended to avoid using older versions of WebOb that remain vulnerable to this issue (GitHub Advisory, WebOb Patch).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."