Open Redirect is a vulnerability that occurs when a web application allows attackers to redirect users to an untrusted external site. This can be exploited by attackers to trick users into visiting malicious websites by leveraging the trust users have in the original, legitimate site.
To prevent Open Redirect vulnerabilities, avoid using user-controlled input for URL redirection. Instead, use a whitelist of allowed URLs for redirection or require validation of the destination URL. Additionally, consider implementing a confirmation step where users must explicitly confirm that they want to proceed to the external link.
Code: A05:2021
Category: Security Misconfiguration
4.3
4.3