Skip to main content
← All vulnerabilities
CVE-2024-42353GHSA-MG3V-6M49-JHP3PYSEC-2024-188

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.8.8
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Pylons webob

    through 1.8.7

  • webobPyPI

    fixed in 1.8.8

References 2

GitHub · Pylons/webob