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-2021-4000 Open Redirect in star7th/showdoc — star7th/showdoc 6.1 -2021-12-03
CVE-2021-3989 Open Redirect in star7th/showdoc — star7th/showdoc 6.1 -2021-12-01
CVE-2021-1500 Cisco Webex Video Mesh Arbitrary Site Redirection Vulnerability — Cisco Webex Video Mesh 5.4 Medium2021-11-04
CVE-2021-34764 Cisco Firepower Management Center Software Cross-Site Scripting and Open Redirect Vulnerabilities — Cisco Firepower Management Center 4.8 Medium2021-10-27
CVE-2021-34763 Cisco Firepower Management Center Software Cross-Site Scripting and Open Redirect Vulnerabilities — Cisco Firepower Management Center 4.8 Medium2021-10-27
CVE-2021-3851 Open Redirect in firefly-iii/firefly-iii — firefly-iii/firefly-iii 5.4 -2021-10-19
CVE-2021-22942 Ruby on Rails 输入验证错误漏洞 — https://github.com/rails/rails 6.1 -2021-10-18
CVE-2021-22963 Fastify-Static 输入验证错误漏洞 — https://github.com/fastify/fastify-static 6.1 -2021-10-14
CVE-2021-20031 SonicOS 输入验证错误漏洞 — SonicOS 6.1 -2021-10-12
CVE-2021-34772 Cisco Orbital Open Redirect Vulnerability — Cisco Orbital 4.7 Medium2021-10-06
CVE-2021-23052 F5 BIG-IP APM输入验证错误漏洞 — BIG-IP APM 6.1 -2021-09-14
CVE-2021-22526 Open Redirection vulnerability in NetIQ Access Manager versions prior to version 4.5.4 and 5.0.1 — NetIQ Access Manager 4.9 Medium2021-09-13
CVE-2021-32805 URL Redirection to Untrusted Site ('Open Redirect') in Flask-AppBuilder — Flask-AppBuilder 7.2 High2021-09-08
CVE-2021-39191 URL Redirection to Untrusted Site ('Open Redirect') in mod_auth_openidc — mod_auth_openidc 4.7 Medium2021-09-03
CVE-2021-38343 Nested Pages <= 3.1.15 Open Redirect — Nested Pages 4.7 Medium2021-08-30
CVE-2021-37699 Open Redirect in Next.js versions below 11.1.0 — next.js 6.9 Medium2021-08-11
CVE-2021-22098 Cloud Foundry UAA 输入验证错误漏洞 — UAA server 6.1 -2021-08-11
CVE-2021-33707 SAP Netweaver 输入验证错误漏洞 — SAP NetWeaver (Knowledge Management) 6.1 -2021-08-10
CVE-2021-21579 Dell EMC iDRAC9 输入验证错误漏洞 — Integrated Dell Remote Access Controller (iDRAC) 6.1 Medium2021-08-03
CVE-2021-21578 Dell EMC iDRAC9 输入验证错误漏洞 — Integrated Dell Remote Access Controller (iDRAC) 6.1 Medium2021-08-03
CVE-2021-32806 URL Redirection to Untrusted Site ('Open Redirect') in Products.isurlinportal — Products.isurlinportal 6.5 Medium2021-08-02
CVE-2020-5329 DELL Dell EMC Avamar Server 输入验证错误漏洞 — Avamar 6.1 -2021-07-29
CVE-2021-3664 Open Redirect in unshiftio/url-parse — unshiftio/url-parse 6.1 -2021-07-26
CVE-2021-32786 Open Redirect in oidc_validate_redirect_url() — mod_auth_openidc 4.7 Medium2021-07-22
CVE-2021-35966 Learningdigital.com, Inc. Orca HCM - URL Redirection to Untrusted Site ('Open Redirect') — Orca HCM 6.1 Medium2021-07-19
CVE-2021-3647 Open Redirect in medialize/URI.js — medialize/URI.js 6.1 -2021-07-16
CVE-2021-24406 wpForo Forum < 1.9.7 - Open Redirect — wpForo Forum 6.1 -2021-07-06
CVE-2021-32721 URL Redirection to Untrusted Site ('Open Redirect') in github.com/AndrewBurian/powermux — powermux 4.7 Medium2021-06-29
CVE-2021-25655 URL redirection to untrusted site possible in Avaya Aura Experience Portal — Avaya Experience Portal 4.4 Medium2021-06-24
CVE-2010-4266 vanilla forums 输入验证错误漏洞 — vanilla forums 4.3 -2021-06-22

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