Open Redirect
Jump to:
Summary
Open Redirect is a web application vulnerability where an attacker exploits a URL redirection mechanism to redirect users to malicious websites, often facilitating phishing, malware distribution, or credential theft.
Key Characteristics
- Occurs when a web application accepts unvalidated input that specifies a URL to which users are redirected.
- Allows attackers to craft URLs that appear legitimate but redirect victims to harmful sites.
- Commonly exploited in phishing campaigns to bypass domain-based filters and increase user trust.
- Can be leveraged to facilitate other attacks such as cross-site scripting (XSS) or session hijacking.
- Typically found in login, logout, or error handling redirect parameters within web applications.
Defensive Controls
- Implement strict validation and allowlisting of redirect URLs to ensure only trusted destinations are permitted.
- Use relative paths instead of full URLs for internal redirects.
- Employ security headers like Content Security Policy (CSP) to restrict navigation and framing.
- Educate users to recognize suspicious URLs and avoid clicking untrusted links.
- Regularly test web applications for open redirect vulnerabilities using automated scanners and manual code reviews.
Related Security Solutions
Web Application Firewalls (WAFs) can detect and block malicious redirect attempts, while secure coding practices and vulnerability management tools help prevent open redirect flaws. URL filtering and anti-phishing solutions also mitigate risks associated with open redirects.
More in Application Attacks