hunt-oauth

Guides bug bounty hunters through detecting and exploiting OAuth vulnerabilities on web and mobile targets.

Updated Sep 6, 2026
One-click install
npx skills add https://github.com/inventashif/helpful-code-sidekick --skill hunt-oauth-inventashif
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunt-oauth
Source: https://github.com/inventashif/helpful-code-sidekick/tree/main/scripts/hackerai/skills/bughunter/hunt-oauth
Command: npx skills add https://github.com/inventashif/helpful-code-sidekick --skill hunt-oauth-inventashif

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? OAuth flaws like redirect_uri bypasses, missing state validation, and token leakage are high-value bug classes, but finding them requires knowing exactly which endpoints, parameters, and edge cases to probe. This Skill condenses 22 public bug bounty reports into a repeatable hunting methodology so testers do not miss critical attack surface. ## Core Features & Use Cases - Attack Surface Mapping: Identifies OAuth entry points via URL patterns, response headers, JavaScript grep patterns, and OIDC discovery endpoints like .well-known/openid-configuration. - Step-by-Step Exploitation Playbook: Covers redirect_uri validation bypasses, state/nonce CSRF testing, referrer token leakage, mobile deep link abuse, and token endpoint authentication bypass with ready-to-use payloads. - Real Report Citations: References verified disclosures from Slack, Booking.com, Zoom, Microsoft Azure AD (nOAuth), and others with bounty amounts and root causes. - Use Case: While testing a SaaS target, you find /oauth/authorize accepts a prefix-matched redirect_uri. The Skill's browser-vs-server parsing table tells you whether https://[email protected] actually navigates cross-origin, and its Gate 0 checklist confirms the finding qualifies as account takeover before you report. ## Quick Start Ask the AI to walk you through testing the OAuth flow on your authorized bug bounty target, starting with enumerating authorization endpoints and probing redirect_uri validation.

Frequently Asked Questions about hunt-oauth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test OAuth redirect_uri validation for bypasses?

Test redirect_uri validation by trying host confusion ([email protected]), subdomain extension (legit.com.evil.com), path traversal with ../ sequences, parameter pollution with duplicate redirect_uri values, and encoded characters like %2F. Always verify with a real browser that the final navigation actually lands cross-origin.

What are the most common OAuth vulnerabilities in bug bounty programs?

The most common OAuth vulnerabilities are weak redirect_uri validation, missing or unvalidated state parameters enabling CSRF, nonce not verified after token exchange, and tokens leaking via Referer headers on callback pages. Mobile deep link handlers that accept arbitrary URLs are also frequent findings.

How do I find OAuth endpoints on a target during recon?

Find OAuth endpoints by spidering for /oauth, /connect, /auth, and /login paths, and by fetching .well-known/openid-configuration for full OIDC discovery. In JavaScript bundles and decompiled APKs, grep for redirect_uri, client_id, response_type, and intent:// patterns.

Does a server accepting my redirect_uri bypass mean account takeover?

No, server-side acceptance is necessary but not sufficient for account takeover. The browser must actually navigate cross-origin, which depends on WHATWG URL parsing rules for userinfo and path boundaries. Always confirm the full chain with a headless browser test before claiming ATO severity.

How do I test OAuth state parameter for CSRF attacks?

Test state CSRF by removing the state parameter entirely, reusing a fixed state value across sessions, and checking whether validation happens server-side or only in client-side JavaScript. If state is not session-bound, you can link your OAuth identity to a victim's account by forcing them through your captured callback URL.

When is an OAuth finding not worth reporting to a bug bounty program?

An OAuth finding is not reportable when you cannot complete the full attack chain from unauthenticated to authenticated as the victim. State-only leakage without token exposure is typically Low severity, and findings requiring unlikely victim behavior beyond clicking a link should document those dependencies explicitly.