Open Redirect
Summary
Open Redirect allows an attacker to redirect users to malicious or untrusted websites, leading to potential phishing attacks, malware distribution, or unauthorized access.
Testing methodology
Description
Open Redirect is a vulnerability that arises when a web application redirects users to a different URL without proper validation. Attackers can exploit this vulnerability by crafting malicious URLs that redirect users to phishing sites, malware-infected pages, or other untrusted destinations, tricking users into visiting harmful websites or disclosing sensitive information.
Remediations
- Implement strict validation and an Allow-List of allowed redirect URLs.
- Avoid using user-supplied input directly in redirect logic.
- Use a safe redirect approach that verifies the validity and trustworthiness of the target URLs.
- If it's intended for users to follow redirects to external sites, prompt them with a message explaining the risks before redirecting them to the external site.
Usually precedes
Affected components
- Client Side
- Session