Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-601 (指向未可信站点的URL重定向(开放重定向)) — Vulnerability Class 722

722 vulnerabilities classified as CWE-601 (指向未可信站点的URL重定向(开放重定向)). AI Chinese analysis included.

CWE-601 represents a critical web application vulnerability where the software accepts user-controlled input to specify a redirect destination without adequate validation. Attackers typically exploit this weakness by crafting malicious URLs that redirect victims to untrusted, phishing sites, often leveraging the trust associated with the legitimate domain to bypass security warnings. This social engineering tactic facilitates credential theft, malware distribution, or session hijacking. To mitigate this risk, developers must implement strict validation mechanisms, such as maintaining an allowlist of permitted domains or verifying that redirect parameters originate from the same origin. Additionally, using relative paths instead of absolute URLs can significantly reduce the attack surface. By ensuring that all redirection targets are explicitly trusted and verified before processing, organizations can prevent unauthorized navigation and protect users from deceptive external links.

MITRE CWE Description
The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.
Common Consequences (2)
Access ControlBypass Protection Mechanism, Gain Privileges or Assume Identity
The user may be redirected to an untrusted page that contains malware which may then compromise the user's system. In some cases, an open redirect can also enable the immediate download of a file without the user's permission, because the r…
Access Control, Confidentiality, OtherBypass Protection Mechanism, Gain Privileges or Assume Identity, Other
By modifying the URL value to a malicious site, an attacker may successfully launch a phishing scam. The user may be subjected to phishing attacks by being redirected to an untrusted page. The phishing attack may point to an attacker controlled web page that appears to be a trusted web site. The phi…
Mitigations (5)
ImplementationAssume 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…
Architecture and DesignUse 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.
Architecture and DesignWhen 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.
Architecture and DesignEnsure 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).
Architecture and Design, ImplementationUnderstand 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 throug…
Examples (2)
The following code obtains a URL from the query string and then redirects the user to that URL.
$redirect_url = $_GET['url']; header("Location: " . $redirect_url);
Bad · PHP
http://example.com/example.php?url=http://malicious.example.com
Attack
The following code is a Java servlet that will receive a GET request with a url parameter in the request to redirect the browser to the address specified in the url parameter. The servlet will retrieve the url parameter value from the request and send a response to redirect the browser to the url address.
public class RedirectServlet extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String query = request.getQueryString(); if (query.contains("url")) { String url = request.getParameter("url"); response.sendRedirect(url); } } }
Bad · Java
<a href="http://bank.example.com/redirect?url=http://attacker.example.net">Click here to log in</a>
Attack · HTML
CVE IDTitleCVSSSeverityPublished
CVE-2024-21723 [20240202] - Core - Open redirect in installation application — Joomla! CMS 6.1 -2024-02-20
CVE-2024-25609 Liferay Portal和Liferay DXP 安全漏洞 — Portal 6.1 Medium2024-02-20
CVE-2024-25608 Liferay Portal和Liferay DXP 安全漏洞 — Portal 6.1 Medium2024-02-20
CVE-2023-44308 Liferay DXP 安全漏洞 — DXP 6.1 Medium2024-02-20
CVE-2023-5190 Liferay Portal和Liferay DXP 安全漏洞 — Portal 6.1 Medium2024-02-20
CVE-2024-21497 Caddy 安全漏洞 — github.com/greenpau/caddy-security 5.4 Medium2024-02-17
CVE-2024-21728 Extension - smartcalc.es - Open redirect vulnerability in osTicky component for Joomla <= 2.2.8 — osTicky component for Joomla 6.1 -2024-02-15
CVE-2024-24808 pyLoad open redirect vulnerability due to improper validation of the is_safe_url function — pyload 4.7 Medium2024-02-06
CVE-2024-21794 Open Redirect in Rapid SCADA — Rapid SCADA 5.4 Medium2024-02-01
CVE-2023-6291 Keycloak: redirect_uri validation bypass — Red Hat build of Keycloak 22 7.1 High2024-01-26
CVE-2024-22308 WordPress Simple Membership Plugin <= 4.4.1 is vulnerable to Open Redirection — Simple Membership 3.4 Low2024-01-24
CVE-2024-0854 Synology DiskStation Manager 输入验证错误漏洞 — DiskStation Manager (DSM) 5.4 Medium2024-01-24
CVE-2024-0781 CodeAstro Internet Banking System pages_client_signup.php redirect — Internet Banking System 3.5 Low2024-01-22
CVE-2023-50963 IBM Storage Defender HTTP HOST header injection — Storage Defender - Data Protect 6.5 Medium2024-01-19
CVE-2024-22400 Open redirect in user_saml via RelayState parameter in Nextcloud User Saml — security-advisories 3.1 Low2024-01-18
CVE-2024-0319 Open Redirect vulnerability in FireEye HXTool — FireEye HXTool 5.4 Medium2024-01-15
CVE-2024-0545 CodeCanyon RISE Ultimate Project Manager signin redirect — RISE Ultimate Project Manager 5.3 Medium2024-01-15
CVE-2024-21734 URL Redirection vulnerability in SAP Marketing (Contacts App) — SAP Marketing (Contacts App) 3.7 Low2024-01-09
CVE-2023-6552 Open redirect in TasmoAdmin — TasmoAdmin 6.1AIMediumAI2024-01-08
CVE-2024-21641 Flarum's Logout Route allows open redirects — framework 6.5 Medium2024-01-05
CVE-2023-51517 WordPress Calculated Fields Form Plugin <= 1.2.28 is vulnerable to Open Redirection — Calculated Fields Form 4.1 Medium2023-12-29
CVE-2023-51675 WordPress Advanced Access Manager Plugin <= 6.9.18 is vulnerable to Open Redirection — Advanced Access Manager – Restricted Content, Users & Roles, Enhanced Security and More 4.7 Medium2023-12-29
CVE-2023-32517 WordPress MailChimp Subscribe Forms Plugin <= 4.0.9.3 is vulnerable to Open Redirection — MailChimp Subscribe Form, Optin Builder, PopUp Builder, Form Builder 4.7 Medium2023-12-29
CVE-2023-32101 WordPress Library Viewer Plugin <= 2.0.6 is vulnerable to Open Redirection — Library Viewer 4.7 Medium2023-12-29
CVE-2023-31237 WordPress Zephyr Project Manager Plugin <= 3.3.9 is vulnerable to Open Redirection — Zephyr Project Manager 4.7 Medium2023-12-29
CVE-2023-31229 WordPress WP Directory Kit Plugin <= 1.1.9 is vulnerable to Open Redirection — WP Directory Kit 4.7 Medium2023-12-29
CVE-2023-31095 WordPress Integration for Contact Form 7 HubSpot Plugin <= 1.2.8 is vulnerable to Open Redirection — Integration for HubSpot and Contact Form 7, WPForms, Elementor, Ninja Forms 4.7 Medium2023-12-29
CVE-2023-28786 WordPress Solid Security Plugin <= 8.1.4 is vulnerable to Open Redirection — Solid Security – Password, Two Factor Authentication, and Brute Force Protection 3.7 Low2023-12-29
CVE-2023-50704 URL Redirection to Untrusted Site ('Open Redirect') in EFACEC UC 500E — UC 500E 4.3 Medium2023-12-19
CVE-2023-46624 WordPress Parcel Pro Plugin <= 1.6.11 is vulnerable to Open Redirection — Parcel Pro 4.7 Medium2023-12-19

Vulnerabilities classified as CWE-601 (指向未可信站点的URL重定向(开放重定向)) represent 722 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.