Open Redirection
Open Redirection
You should be looking for open URL redirects in the following areas of your target:
Sign in & register pages
Sign out application route or API endpoint
Password resets (inspect the generated token link too as it may contain a redirect parameter)
Profile account page
Email verification links
Error pages
Any important action within the app that requires multiple steps
One-Liner
cat waybacks.txt | \
sed -E 's#(redirect=|url=|next=|return=|dest=|destination=|continue=|goto=|redirecturl=)[^&]*#\1https://evil.com#gI' | \
httpx -silent -mc 301,302,307,308 -locationecho "http://tesla.com" | waybackurls | httpx -silent -timeout 2 -threads 100 | gf redirect | anewPayloads
Parameter Pollution
Creating folder as victim domain
Nuclei Template
https://github.com/coffinxp/priv8-Nuclei/blob/main/mass_48_open_redirect_check.yaml
XSS in Login Page
XSS in Login PageHeader Based Open Redir
DOM Based redirect - XSS
XSSCookie Stealing
URL Validation Bypass
OAuth - Open Redirection to Token Leak
Vulnerable endpoint:
Find a token in the URL - OAuth:
That access_token=XYZ123 was visible in the URL, which means it could be leaked via the Referer header if this page redirected the browser somewhere else.
Smuggle the Token via Referer
OAuth / Okta MisconfigurationTools
Go-recon - gr-openredirects:
Interesting Books
Interesting BooksThe Web Application Hacker’s Handbook The go-to manual for web app pentesters. Covers XSS, SQLi, logic flaws, and more
Bug Bounty Bootcamp: The Guide to Finding and Reporting Web Vulnerabilities Learn how to perform reconnaissance on a target, how to identify vulnerabilities, and how to exploit them
Real-World Bug Hunting: A Field Guide to Web Hacking Learn about the most common types of bugs like cross-site scripting, insecure direct object references, and server-side request forgery.
Support this Gitbook
I hope it helps you as much as it has helped me. If you can support me in any way, I would deeply appreciate it.
Resources
Last updated
