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,466 results · Feed

  • Medium 6.9

    Glassfish redirect to untrusted site

    In Eclipse Glassfish versions before 7.0.17, The Host HTTP parameter could cause the web application to redirect to the specified URL, when the requested endpoint is '/management/domain'. By modifying the URL value to a malicious site, an attacker may success…

  • High 7.2

    ModStartCMS v8.8.0 was discovered to contain an open redirect vulnerability in the redirect parameter at /admin/login. …

  • High 8.8

    A host header injection vulnerability in BookReviewLibrary 1.0 allows attackers to obtain the password reset token via …

  • High 8.8

    A host header injection vulnerability in Lines Police CAD 1.0 allows attackers to obtain the password reset token via u…

  • Medium 6.1
    CVE-2024-8883 Scanner template

    Keycloak: vulnerable redirect uri validation results in open redirec

    A misconfiguration flaw was found in Keycloak. This issue can allow an attacker to redirect users to an arbitrary URL if a 'Valid Redirect URI' is set to http://localhost or http://127.0.0.1, enabling sensitive information such as authorization codes to be ex…

  • Medium 6.1

    Under certain conditions, an attacker with the ability to redirect users to a malicious site via an open redirect on a …

  • High 7.2

    Share This Image <= 2.03 - Open Redirect via link Parameter

    The Share This Image plugin for WordPress is vulnerable to Open Redirect in all versions up to, and including, 2.03. This is due to insufficient validation on the redirect url supplied via the link parameter. This makes it possible for unauthenticated attacke…

  • Medium 6.4

    URL Redirection to Untrusted Site ('Open Redirect') in GitLab

    An issue has been discovered in GitLab EE affecting all versions starting from 11.1 before 17.1.7, 17.2 before 17.2.5, and 17.3 before 17.3.2. Under certain conditions an open redirect vulnerability could allow for an account takeover by breaking the OAuth fl…

  • Medium 6.4

    URL Redirection to Untrusted Site ('Open Redirect') in GitLab

    An issue has been discovered in GitLab EE affecting all versions starting from 12.9 before 17.1.7, 17.2 before 17.2.5, and 17.3 before 17.3.2. Under certain conditions an open redirect vulnerability could allow for an account takeover by breaking the OAuth fl…

  • High 7.0

    REST Interface Link Redirection via Host parameter

    URL Redirection to Untrusted Site ('Open Redirect') vulnerability in Payara Platform Payara Server (REST Management Interface modules) allows Session Hijacking.This issue affects Payara Server: from 6.0.0 before 6.18.0, from 6.2022.1 before 6.2024.9, from 5.2…

  • Medium 6.1

    Eclipse Glassfish: URL redirection vulnerability to untrusted sites

    In Eclipse Glassfish versions prior to 7.0.10, a URL redirection vulnerability to untrusted sites existed. This vulnerability is caused by the vulnerability (CVE-2023-41080) in the Apache code included in GlassFish. This vulnerability only affects application…

  • Medium 6.1

    Keycloak-core: open redirect on account page

    An open redirect vulnerability was found in Keycloak. A specially crafted URL can be constructed where the referrer and referrer_uri parameters are made to trick a user to visit a malicious webpage. A trusted URL can trick users and automation into believing …

  • Medium 6.1

    Uniong WebITR - Open Redirect

    WebITR from Uniong has an Open Redirect vulnerability, which allows unauthorized remote attackers to exploit this vulnerability to forge URLs. Users, believing they are accessing a trusted domain, can be redirected to another page, potentially leading to phis…

  • Medium 6.1

    Loway - CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

    Loway - CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

  • Medium 4.3

    SourceCodester Clinics Patient Management System congratulations.php redirect

    A vulnerability was found in SourceCodester Clinics Patient Management System 2.0. It has been classified as problematic. Affected is an unknown function of the file congratulations.php. The manipulation of the argument goto_page leads to open redirect. It is…

  • Medium 4.3

    LinuxOSsk Shakal-NG views.py redirect

    A vulnerability, which was classified as problematic, was found in LinuxOSsk Shakal-NG up to 1.3.3. Affected is an unknown function of the file comments/views.py. The manipulation of the argument next leads to open redirect. It is possible to launch the attac…

  • Medium 6.8
    CVE-2024-35133 Public exploit

    IBM Security Verify Access HTTP open redirect

    IBM Security Verify Access 10.0.0 through 10.0.8 OIDC Provider could allow a remote authenticated attacker to conduct phishing attacks, using an open redirect attack. By persuading a victim to visit a specially crafted Web site, a remote attacker could exploi…

  • Medium 6.1

    An Open Redirect vulnerability in the page parameter of vTiger CRM v7.4.0 allows attackers to redirect users to a malic…

  • Medium 4.3

    An HTTP parameter may contain a URL value and could cause the web application to redirect the request to the specified …

  • Medium 6.1

    There is an Open Redirect vulnerability in Gnuboard v6.0.4 and below via the `url` parameter in login path.

  • Medium 4.8

    Potential Open Redirect issues affect OpenText™ Network Node Manager i (NNMi).

    URL Redirection to Untrusted Site ('Open Redirect') vulnerability in OpenText™ Network Node Manager i (NNMi) allows URL Redirector Abuse.This issue affects Network Node Manager i (NNMi): 2022.11, 2023.05, 23.4, 24.2.

  • Medium 6.1

    OpenSearch Dashboards Security Plugin improper validation of nextUrl can lead to external redirect

    OpenSearch Dashboards Security Plugin adds a configuration management UI for the OpenSearch Security features to OpenSearch Dashboards. Improper validation of the nextUrl parameter can lead to external redirect on login to OpenSearch-Dashboards for specially …

  • Medium 6.1

    [20240801] - Core - Inadequate validation of internal URLs

    Inadequate validation of URLs could result into an invalid check whether an redirect URL is internal or not..

  • High 8.1

    URL redirection to untrusted site (open redirect) vulnerability affecting 3DPassport in 3DSwymer from Release 3DEXPERIENCE R2022x through Release 3DEXPERIENCE R2024x

    An URL redirection to untrusted site (open redirect) vulnerability affecting 3DPassport in 3DSwymer from Release 3DEXPERIENCE R2022x through Release 3DEXPERIENCE R2024x allows an attacker to redirect users to an arbitrary website via a crafted URL.

  • Medium 4.7

    WordPress Salon Booking System plugin <= 10.8.1 - Open Redirection vulnerability

    URL Redirection to Untrusted Site ('Open Redirect') vulnerability in Salon Booking System Salon booking system.This issue affects Salon booking system: from n/a through 10.8.1.

  • Medium 4.7

    WordPress Easy PayPal & Stripe Buy Now Button plugin <= 1.9 - Open Redirection vulnerability

    URL Redirection to Untrusted Site ('Open Redirect') vulnerability in Scott Paterson Easy PayPal Buy Now Button.This issue affects Easy PayPal Buy Now Button: from n/a through 1.9.

  • Medium 4.3

    pkp ojs signOut redirect

    A vulnerability was found in pkp ojs up to 3.4.0-6 and classified as problematic. Affected by this issue is some unknown functionality of the file /login/signOut. The manipulation of the argument source with the input .example.com leads to open redirect. The …

  • Medium 6.1

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

    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. …

  • High 8.2

    Microsoft Dynamics 365 (on-premises) Cross-site Scripting Vulnerability

    Microsoft Dynamics 365 (on-premises) Cross-site Scripting Vulnerability

  • Medium 4.7

    The Duende Identity Server based component in 1E Platform may allow URL redirections to untrusted websites.

    The 1E Platform's component utilized the third-party Duende Identity Server, which suffered from an open redirect vulnerability, permitting an attacker to control the redirection path of end users. Note: 1E Platform's component utilizing the third-party Duend…

  • Medium 4.7

    IdentityServer Open Redirect vulnerability

    ### Impact It is possible for an attacker to craft malicious Urls that certain functions in IdentityServer will incorrectly treat as local and trusted. If such a Url is returned as a redirect, some browsers will follow it to a third-party, untrusted site. ###…

  • Medium 5.2
    CVE-2024-41955 Scanner template

    Mobile Security Framework (MobSF) has an Open Redirect in Login Redirect

    Mobile Security Framework (MobSF) is a security research platform for mobile applications in Android, iOS and Windows Mobile. An open redirect vulnerability exist in MobSF authentication view. Update to MobSF v4.0.5.

  • Medium 4.7

    Duende IdentityServer Open Redirect vulnerability

    Duende IdentityServer is an OpenID Connect and OAuth 2.x framework for ASP.NET Core. It is possible for an attacker to craft malicious Urls that certain functions in IdentityServer will incorrectly treat as local and trusted. If such a Url is returned as a re…

  • Medium 4.7

    OpenProject packaged installation has Open Redirect Vulnerability in Sign-In in default configuration

    OpenProject is open source project management software. Prior to version 14.3.0, using a forged HOST header in the default configuration of packaged installations and using the "Login required" setting, an attacker could redirect to a remote host to initiate …

  • Low 3.1

    There is a low severity open redirect vulnerability within affected versions of Bitbucket Data Center. Versions of Bitb…

  • Medium 4.7

    A vulnerability in the web-based management interface of Cisco Expressway Series could allow an unauthenticated, remote…

  • Medium 4.8

    Redirection of users to a vulnerable URL in Citrix Workspace app for HTML5

  • Medium 5.1

    Open redirect vulnerability allows a remote unauthenticated attacker to redirect users to arbitrary websites

    Open redirect vulnerability allows a remote unauthenticated attacker to redirect users to arbitrary websites in NetScaler ADC and NetScaler Gateway

  • Medium 4.3

    An issue in Outline <= v0.76.1 allows attackers to redirect a victim user to a malicious site via intercepting and chan…

  • Medium 5.3

    URL Redirection to Arbitrary Site Exists in Sitefinity

    The user may be redirected to an arbitrary site in Sitefinity 15.1.8321.0 and previous versions.