Skip to content
OpenAdvisories

Weakness (CWE)

CWE-601: URL Redirection to Untrusted Site

Base Draft

The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.

How to prevent it (6 mitigations)
  1. Implementation

    Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.

    When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."

    Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.

    Use a list of approved URLs or domains to be used for redirection.

  2. Architecture and Design

    Use an intermediate disclaimer page that provides the user with a clear warning that they are leaving the current site. Implement a long timeout before the redirect occurs, or force the user to click on the link. Be careful to avoid XSS problems (CWE-79) when generating the disclaimer page.

  3. Architecture and Design

    When the set of acceptable objects, such as filenames or URLs, is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames or URLs, and reject all other inputs.

    For example, ID 1 could map to "/login.asp" and ID 2 could map to "http://www.example.com/". Features such as the ESAPI AccessReferenceMap [REF-45] provide this capability.

  4. Architecture and Design

    Ensure that no externally-supplied requests are honored by requiring that all redirect requests include a unique nonce generated by the application [REF-483]. Be sure that the nonce is not predictable (CWE-330).

  5. Architecture and Design, Implementation

    Understand all the potential areas where untrusted inputs can enter your software: parameters or arguments, cookies, anything read from the network, environment variables, reverse DNS lookups, query results, request headers, URL components, e-mail, files, filenames, databases, and any external systems that provide data to the application. Remember that such inputs may be obtained indirectly through API calls.

    Many open redirect problems occur because the programmer assumed that certain inputs could not be modified, such as cookies and hidden form fields.

  6. Operation

    Use an application firewall that can detect attacks against this weakness. It can be beneficial in cases in which the code cannot be fixed (because it is controlled by a third party), as an emergency prevention measure while more comprehensive software assurance measures are applied, or to provide defense in depth [REF-1481].

Source: MITRE CWE-601

1,070 results · Clear filters · Feed

  • Medium 5.5

    Artesãos SEOTools OpenGraph.php makeTag redirect

    A vulnerability, which was classified as problematic, was found in Artesãos SEOTools up to 0.17.1. This affects the function makeTag of the file OpenGraph.php. The manipulation of the argument value leads to open redirect. Upgrading to version 0.17.2 is able …

  • Medium 6.1

    coreDNS vulnerable to Improper Restriction of Communication Channel to Intended Endpoints

    A flaw was found in coreDNS. This flaw allows a malicious user to redirect traffic intended for external top-level domains (TLD) to a pod they control by creating projects and namespaces that match the TLD.

  • Medium 5.4
    CVE-2023-27292 Scanner template

    An open redirect vulnerability exposes OpenCATS to template injection due to improper validation of user-supplied GET p…

  • Medium 6.1

    open redirect in pollbot

    open redirect in pollbot (pollbot.services.mozilla.com) in versions before 1.4.6

  • Medium 6.1

    SAP NetWeaver AS for ABAP and ABAP Platform - versions 740, 750, 751, 752, 753, 754, 755, 756, 757, 789, 790, allows an…

  • Medium 6.5

    SAP Solution Manager - version 720, allows an authenticated attacker to redirect users to a malicious site due to insuf…

  • Medium 6.1

    An unauthenticated attacker in AP NetWeaver Application Server for ABAP and ABAP Platform - versions 700, 702, 731, 740…

  • Medium 6.1

    Prior to commit 51867e0d15a6d7f80d5b714fd0e9976b9c160bb0, https://github.com/brave/adblock-lists removed redirect inter…

  • Medium 6.1

    Open Redirect Vulnerability in Action Pack

    An open redirect vulnerability is fixed in Rails 7.0.4.1 with the new protection against open redirects from calling redirect_to with untrusted user input. In prior versions the developer was fully responsible for only providing trusted input. However the che…

  • Medium 6.4
    CVE-2023-0748 Public exploit

    Open Redirect in btcpayserver/btcpayserver

    Open Redirect in GitHub repository btcpayserver/btcpayserver prior to 1.7.6.

  • Medium 6.1
    CVE-2022-28923 Scanner template

    Open Redirect in Caddy

    Caddy v2.4.6 was discovered to contain an open redirection vulnerability which allows attackers to redirect users to phishing websites via crafted URLs.

  • Medium 6.1

    BIG-IP APM virtual server vulnerability

    On versions 17.0.x before 17.0.0.2, 16.1.x before 16.1.3.3, 15.1.x before 15.1.7, 14.1.x before 14.1.5.3, and all versions of 13.1.x, an open redirect vulnerability exists on virtual servers enabled with a BIG-IP APM access policy. This vulnerability allows a…

  • Medium 6.1

    Open redirect vulnerability in Jenkins OpenID Plugin

    Jenkins OpenID Plugin 2.4 and earlier improperly determines that a redirect URL after login is legitimately pointing to Jenkins.

  • Medium 6.1
    CVE-2023-24044 Public exploit

    A Host Header Injection issue on the Login page of Plesk Obsidian through 18.0.49 allows attackers to redirect users to…

  • Medium 5.2

    User credentials leaked to third-party service via HTTP redirect in scs-library-client

    github.com/sylabs/scs-library-client is the Go client for the Singularity Container Services (SCS) Container Library Service. When the scs-library-client is used to pull a container image, with authentication, the HTTP Authorization header sent by the client …

  • Medium 6.1

    pgAdmin 4 Open Redirect vulnerability

    Open redirect vulnerability in pgAdmin 4 versions prior to v6.14 allows a remote unauthenticated attacker to redirect a user to an arbitrary web site and conduct a phishing attack by having a user to access a specially crafted URL.

  • Medium 5.4

    Apache Superset: Open Redirect Vulnerability

    An authenticated attacker with update datasets permission could change a dataset link to an untrusted site, users could be redirected to this site when clicking on that specific dataset. This issue affects Apache Superset version 1.5.2 and prior versions and …

  • Medium 4.6

    calesanz gibb-modul-151 login redirect

    ** UNSUPPORTED WHEN ASSIGNED ** A vulnerability, which was classified as problematic, was found in calesanz gibb-modul-151. This affects the function bearbeiten/login. The manipulation leads to open redirect. It is possible to initiate the attack remotely. Th…

  • Medium 6.1

    An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.4 prior to 15.5.7, 15.6 prior to 1…

  • Medium 6.5

    Moodle Plugin - SAML Auth Open Redirect

    Moodle Plugin - SAML Auth may allow Open Redirect through unspecified vectors.

  • Medium 4.7

    @okta/oidc-middlewareOpen Redirect vulnerability

    An open redirect vulnerability exists in Okta OIDC Middleware prior to version 5.0.0 allowing an attacker to redirect a user to an arbitrary URL.

  • Medium 6.1

    The Syracom Secure Login plugin before 3.1.1.0 for Jira may allow spoofing of 2FA PIN validation via the plugins/servle…

  • Medium 6.3

    Symbiote Seed Login SecurityLoginExtension.php onBeforeSecurityLogin redirect

    A vulnerability was found in Symbiote Seed up to 6.0.2. It has been classified as critical. Affected is the function onBeforeSecurityLogin of the file code/extensions/SecurityLoginExtension.php of the component Login. The manipulation of the argument URL lead…

  • Medium —

    hyper-staticfile's location header incorporates user input, allowing open redirect

    When `hyper-staticfile` performs a redirect for a directory request (e.g. a request for `/dir` that redirects to `/dir/`), the `Location` header value was derived from user input (the request path), simply appending a slash. The intent was to perform an origi…

  • Medium 6.1

    Unvalidated redirect in Portal for ArcGIS

    There is an unvalidated redirect vulnerability in Esri Portal for ArcGIS 11 and below that may allow a remote, unauthenticated attacker to craft a URL that could redirect a victim to an arbitrary website, simplifying phishing attacks.

  • Medium 5.5

    Macaron i18n i18n.go redirect

    A vulnerability was found in Macaron i18n. It has been declared as problematic. Affected by this vulnerability is an unknown functionality of the file i18n.go. The manipulation leads to open redirect. The attack can be launched remotely. Upgrading to version …

  • Medium 6.1

    Open Redirect in ikus060/rdiffweb

    Open Redirect in GitHub repository ikus060/rdiffweb prior to 2.5.5.

  • Medium 6.5

    The <code>ms-msdt</code>, <code>search</code>, and <code>search-ms</code> protocols deliver content to Microsoft applic…

  • Medium 6.1

    Even when an iframe was sandboxed with <code>allow-top-navigation-by-user-activation</code>, if it received a redirect …

  • Medium 5.9

    Open Redirect in ikus060/rdiffweb

    Open Redirect in GitHub repository ikus060/rdiffweb prior to 2.5.4.

  • Medium 6.1

    When closed or sent to the background, Firefox for Android would not properly record and persist HSTS settings.<br>*Not…

  • Medium 6.1

    Requests initiated through reader mode did not properly omit cookies with a SameSite attribute. This vulnerability affe…

  • Medium 6.1

    When using the Performance API, an attacker was able to notice subtle differences between PerformanceEntries and thus l…

  • Medium 6.1

    Using the <code>S.browser_fallback_url parameter</code> parameter, an attacker could redirect a user to a URL and cause…

  • Medium 6.1

    Apache Helix: Open redirect

    URL Redirection to Untrusted Site ('Open Redirect') vulnerability in Apache Software Foundation Apache Helix UI component.This issue affects Apache Helix all releases from 0.8.0 to 1.0.4. Solution: removed the the forward component since it was improper desig…

  • Medium 6.1

    Open redirect vulnerability in DENSHI NYUSATSU CORE SYSTEM v6 R4 and earlier allows a remote unauthenticated attacker t…

  • Medium 6.3

    oils-js Web.js redirect

    A vulnerability was found in oils-js. It has been declared as critical. This vulnerability affects unknown code of the file core/Web.js. The manipulation leads to open redirect. The attack can be initiated remotely. The name of the patch is fad8fbae824a7d367d…

  • Medium 5.5

    cyface Terms and Conditions Module views.py returnTo redirect

    A vulnerability has been found in cyface Terms and Conditions Module up to 2.0.9 and classified as problematic. Affected by this vulnerability is the function returnTo of the file termsandconditions/views.py. The manipulation leads to open redirect. The attac…

  • Medium 6.1

    HCL Digital Experience is susceptible to open redirects

     In HCL Digital Experience, URLs can be constructed to redirect users to untrusted sites.

  • Medium 4.7

    Open Redirect in oidc_validate_redirect_url()

    mod_auth_openidc is an OpenID Certified™ authentication and authorization module for the Apache 2.x HTTP server. Versions prior to 2.4.12.2 are vulnerable to Open Redirect. When providing a logout parameter to the redirect URI, the existing code in oidc_valid…