Open Redirect

Open Redirect

Knowledge Base>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

Fuzz for External Interaction Payloadurl= redirect= target= etc.Header InjectionJavascript: Payloadredirect_uri RedirectionInteraction from the ServerFind GET Sensitive ActionRedirect to the Attacker's ServerRedirect to the Attacker's ServerUse Redirection to Bypass RestrictionIdentify 30X Status Codesonload='window.location='
Common Entry Points
Open Redirect Confirmed
XSS
SVG Files
OAuth
SSRF
CSRF Referrer Bypass
NTLM Capture
Account Hijack
Domain Restriction Bypass

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.

By using this site you agree to our Terms of Service and Privacy Policy.