Skip to main content

URL Redirection to Untrusted Site ('Open Redirect')

CVE-2024-42353

Severity Medium
Score 6.1/10

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 affects WebOb versions prior to 1.8.8.

  • LOW
  • NETWORK
  • LOW
  • CHANGED
  • REQUIRED
  • NONE
  • LOW
  • NONE

CWE-601 - Open Redirect

An open redirect attack employs a URL parameter, HTML refresh tags, or a DOM based location change to exploit the trust of a vulnerable domain to direct the users to a malicious website. The attack could lead to higher severity vulnerabilities such as unauthorized access control, account takeover, XSS, and more.

Advisory Timeline

  • Published