Open Redirect Expert Attack Playbook
Paste the following prompt into your AI chat to install this skill:
Please install @user_3c6cb52e/open-redirect-kmu1 according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem It Addresses
An open redirect is not just an unexpected URL jump; it lets a trusted domain become an unauthorized launchpad. In real web applications, parameters like redirect, url, next, and return_to may accept attacker-controlled destinations. If validation is weak, an attacker can send https://bank.com/redirect?url=https://evil.com, where the visible domain looks legitimate while the destination is a phishing clone. The issue becomes more serious when the redirect chains with OAuth redirect_uri, CSRF Referer checks, server-side URL preview, window.opener, or redirect-following clients. This skill frames open redirect as a practical manual testing playbook: from locating sinks, to bypassing validators, to understanding exploit chains and parser differentials.
How It Works
- Find sinks: inspect server-side
Locationand302behavior, URL concatenation, and client-side assignments such aslocation.href,window.location, andlocation.replace. - Bypass validators: cover patterns such as
//evil.com,\/\/evil.com,https://trusted.com@evil.com,/\evil.com,endswithchecks, and subdomain takeover. - Chain exploits: explain how open redirect can amplify phishing, bypass
Referervalidation, leak OAuth implicit-flow tokens in fragments or authorization codes in query strings, and trigger SSRF when a server follows redirects. - Use parser differentials: compare what a validator sees versus what a browser ultimately navigates to, including protocol-relative URLs, backslashes, userinfo sections, double encoding, and CRLF confusion.
- Check tabnabbing: look for
target="_blank"links withoutrel="noopener", where a new tab can usewindow.openerto redirect the original page.
Scope and Caveats
This material is oriented toward authorized security testing and vulnerability analysis. It is useful for reviewing redirect logic, redirect_uri allowlists, OAuth callbacks, link unfurlers, URL preview services, and user-generated links. It is not a generic WAF rule list, nor does it replace validation against real application behavior. Actual exploitability depends on whether the target preserves query parameters or fragments, allows cross-protocol redirects, renders user-controlled links, and how its HTTP client decodes or follows redirect responses.
Use Cases
- Locate redirect, url, and next parameters in authorized pentests, then test //evil.com payloads for out-of-scope navigation.
- Audit OAuth redirect_uri allowlists and analyze access_token or code leakage through fragment and query chain scenarios.
- Review server-side URL preview and link unfurlers that follow 302s, then test SSRF boundaries via multi-hop redirects and DNS rebinding.
- Inspect target="_blank" user content for missing rel="noopener" and assess reverse tabnabbing through window.opener.
Best For
- Security engineers performing authorized web testing who need to move from single redirect checks to phishing and token-theft chains.
- Backend engineers building authentication or OAuth integrations who need to review redirect_uri validation and callback token leakage.
- Backend engineers maintaining URL preview or webhook services who need to assess SSRF risk when server-side components follow redirects.
- Frontend engineers doing security reviews who need to identify reverse tabnabbing risks from target="_blank" and window.opener.
Related Skills
Analyzes network captures from Wireshark, tcpdump, Fiddler, and Charles, then pinpoints TCP, HTTP, DNS, and TLS issues with filter expressions and remediation steps.
Detects AI-generated images from Stable Diffusion, Midjourney, and GPT-4o via Tencent Cloud image moderation and returns risk scores.
Sets up a baseline Dynamo router, enables KV-aware routing when appropriate, and smoke tests the frontend endpoint locally or on Kubernetes.
CTF cryptography quick reference for engineers covering classic, modern, RSA, ECC, stream, PRNG, and lattice attacks.