How I Found 50+ Open Redirects Using Automation and Simple Bash S
The author used automation to find over 50 open redirect vulnerabilities across multiple domains by testing URL parameters that accept redirect destinations. An attacker could use these redirects to send victims to malicious sites, potentially aiding phishing or OAuth attacks.
This approach is perfect for bug bounty hunters, recon enthusiasts, or anyone looking to level up their domain fuzzing game.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application accepts user-supplied URLs in redirect parameters without validating that they point to trusted destinations.
Impact
These open redirects could be used in phishing campaigns or chained with OAuth misconfigurations to steal credentials or tokens, though the text does not demonstrate such exploitation.
What the attacker needed
Publicly accessible web applications; URL parameters that control redirects
The fix
The application should validate redirect destinations against an allowlist of trusted URLs or reject external URLs.
How it was found
- Collect subdomains for many domains using subfinder.
- Filter for live domains that return HTTP 200 using httpx.
- Gather URLs from each live domain using katana and waybackurls.
- Filter URLs for potential redirect parameters using gf.
- Replace parameter values with a test URL and send requests with httpx, following redirects.
- Check responses for redirects to the test URL to confirm open redirects.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
An open redirect is a flaw where a website lets you specify where to send a visitor after they click a link. For example, a login page might have a 'next' parameter that tells it where to go after logging in. If the site does not check that destination, an attacker can make the link point to a fake site that looks like the real one, tricking people into giving away passwords.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.