Access control
Open Redirect
Open redirect vulnerabilities allow attackers to redirect users to attacker-controlled URLs, enabling phishing and OAuth token theft.
- 724 payloads
- 1 file
- README on GitHub
Payloads are read from main at 35c1f2b (committed 22 Nov 2026). Project version 1.0.2.
These payloads are for authorized testing only: systems you own, authorized bug bounty programs, or controlled lab environments. Unauthorized testing is illegal.
Payload files
Use the arrow keys to move between payloads. Press Enter or C to copy the focused payload.
open-redirect-payloads.txt
724 payloads · 33 KBLoading payloads for Open Redirect…
What it is#
Open redirect vulnerabilities occur when an application accepts a user-supplied URL as a redirect target without validating that it belongs to a trusted domain. Attackers exploit this to redirect victims to phishing pages, bypass SSRF filters, or steal OAuth authorization codes by redirecting the victim to an attacker-controlled callback URL.
Attack vectors#
- Login/logout redirect parameters (?next=, ?redirect=, ?url=)
- OAuth redirect_uri parameters
- Email link tracking systems
- After-payment or post-action redirects
Testing methodology#
- Find redirect parameters (next, redirect, url, return, returnTo, forward)
- Submit an external URL: ?next=https://evil.com
- Test bypass techniques: //evil.com, ///evil.com, https:evil.com
- Try URL encoding: %2F%2Fevil.com, %252F%252Fevil.com
- Test for OAuth redirect_uri manipulation to steal auth codes
Indicators of vulnerability#
- Browser redirected to external attacker-controlled domain
- Authorization code or access token appears in attacker's server logs
- Redirect occurs without validation of target domain
Detection guidance#
Validate redirect targets against an allowlist of trusted domains. Log all redirect parameter values and monitor for external domain redirects.
Mitigation and remediation#
- Validate redirect targets against an allowlist of trusted domains
- Use indirect reference maps for post-action redirects instead of user-supplied URLs
- For OAuth: strictly validate redirect_uri against pre-registered exact values
- Display a warning page before redirecting to an external URL
References#
Responsible Use
All content in this reference is for authorized security testing only. Use only on systems you own or have explicit written permission to test.
- Systems and applications you own
- Authorized penetration testing engagements
- Bug bounty programs with defined scope
- Educational lab environments (DVWA, WebGoat, HackTheBox)