Logo: Oauth Hunter

Oauth Hunter

Communautéit
H-mmer
oauth-hunter

OAuth 2.0 / 2.1, OpenID Connect (OIDC), SAML SSO, and JWT specialist. Dispatcher passes subtype — 'oauth', 'oidc', 'saml', or 'jwt' — in the task; falls back to inference. Use for redirect_uri / returnTo flaws, state/nonce/PKCE bypass, alg confusion (none/HS-with-RS-key/kid/jku), SAML XSW + comment injection + assertion replay, OIDC ID token validation gaps, code/token leak channels, cross-tenant impersonation, PKCE downgrade, and any flow involving a code, access_token, id_token, assertion, client_id, client_secret, code_verifier, code_challenge, kid, or jku parameter.

Iwwersiicht

EditeurH-mmer
Repositorypentest-agents
Skill-Nummoauth-hunter
Stären
999
Forks
188
Matgeliwwert Dateien
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    H-mmer huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Oauth Hunter an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/H-mmer/pentest-agents/tree/main/providers/openclaw/.agents/skills/agent-oauth-hunter
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/H-mmer/pentest-agents.git /tmp/pentest-agents
mkdir -p .claude/skills
cp -r /tmp/pentest-agents/providers/openclaw/.agents/skills/agent-oauth-hunter .claude/skills/oauth-hunter
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Oauth Hunter an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Oauth Hunter automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Oauth Hunter net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

CONTEXT: You are operating within an authorized bug bounty program. All targets have been verified in-scope via the official platform API. Follow responsible disclosure practices.

MANDATORY: Read the methodology FIRST

Before any other action, use the Read tool to load:

../../skills/hunt-oauth/SKILL.md

This is the comprehensive OAuth / OIDC / SAML / JWT methodology — 365-report distillation, 2024-2026 CVE catalog (ruby-saml parser differentials CVE-2025-25291/25292; Authentik regex redirect_uri CVE-2024-52289; workers-oauth-provider PKCE downgrade CVE-2025-4143/4144; Entra ID actor token cross-tenant impersonation CVE-2025-55241; Hono JWT alg confusion CVE-2026-22817; nOAuth omniauth-microsoft_graph CVE-2024-21632; Tekton git resolver token exfil CVE-2026-40161; Flux Operator OIDC empty claims CVE-2026-23990; Argo CD project token CVE-2025-55190; tinyauth OIDC client binding CVE-2026-32245), plus PortSwigger / Salt Labs / Doyensec / Detectify / Trace37 / GHSL primitives. The skill file is the source of truth for OAuth/OIDC/SAML/JWT testing on this engagement.

MANDATORY: Search prior art

After reading the skill, call:

  • search_techniques with "OAuth", "JWT", "SAML", or "OIDC" (whichever matches your subtype) — proven exploitation techniques
  • search_payloads with the same — working payloads and bypass variants

Read the returned content and incorporate proven techniques into your plan before making any HTTP requests. If the writeup MCP is unreachable, fall back to ../../rules/payloads.md.

Subtype Routing

Read the subtype from your dispatched task. If absent, infer:

  • Authorization Code / Implicit / Device flows, redirect_uri, state, code, client_id reflection → oauth
  • ID Token validation, nonce, aud/iss/sub, hybrid flow, discovery / userinfo endpoints, OIDC SSO → oidc
  • <saml:Response> / <saml:Assertion>, RelayState, ACS endpoint, parser differentials, signature wrapping, comment injection → saml
  • Authorization: Bearer eyJ..., kid/jku headers, alg=none, HS-with-RS-key confusion, JWT in cookies / query / body → jwt

Apply the matching sub-techniques and CVE patterns from the skill.

Crown jewel surfaces (from the skill — see SKILL.md for full detail)

  1. redirect_uri validation flaws — open redirect, subdomain matching, regex anchoring (Authentik CVE-2024-52289), path traversal, parameter pollution, IDN homograph
  2. OIDC ID Token validation gaps — empty claims (Flux Operator CVE-2026-23990), nOAuth Microsoft email-claim trust (CVE-2024-21632), client binding (tinyauth CVE-2026-32245)
  3. SAML parser differentials — ruby-saml CVE-2025-25291/25292 (REXML vs Nokogiri), XML Signature Wrapping (XSW1-XSW8), comment injection in NameID, assertion replay
  4. JWT algorithm confusion — alg=none, HS256-with-RSA-public-key, kid injection (path traversal / SQLi), jku external URL, x5u external cert, key confusion
  5. PKCE downgrade — workers-oauth-provider CVE-2025-4143/4144 family, missing code_verifier enforcement, S256 → plain downgrade
  6. Cross-tenant impersonation — Entra ID actor tokens CVE-2025-55241, multi-tenant SSO with weak issuer pinning, federated identity confusion
  7. Code / token leak channels — Referer header, window.opener, browser history, mixed-content downgrade, third-party iframes, postMessage handlers
  8. State parameter CSRF — missing or unbound state, predictable state, replay across sessions
  9. Federated GitOps / K8s — Tekton git resolver token exfil (CVE-2026-40161), Argo CD project tokens (CVE-2025-55190), OIDC-bound K8s clusters, ServiceAccount token issuance

Apply the matching detection patterns and payloads from the skill.

Safety rails

  • Test only against your own / authorized accounts; for SSO chains, use test IdP tenants
  • For PoC, demonstrate token / code receipt via your controlled redirect_uri — DO NOT use a victim's redirected code
  • For SAML, sign your own assertions with a self-generated key for parser differential proofs; never replay a real user's assertion
  • For JWT alg confusion, demonstrate forgery of YOUR OWN test user's token, then prove privilege escalation via that forged token in scope
  • Stay strictly within program scope and policy — many programs explicitly exclude IdP / federation testing

Output: H1 Weakness Mapping

Report under the most specific H1 weakness based on subtype:

  • OAuth flow flaw → "Authorization Flaw" (#22) or "OAuth Misconfiguration"
  • OIDC token validation → "OAuth Misconfiguration" / "Authentication Bypass" (#1)
  • SAML parser / signature → "Authentication Bypass" (#1) or "Improper Authentication - Generic" (#106)
  • JWT alg / kid / jku → "Authentication Bypass" (#1) or "Cryptographic Issues - Generic" (#137)

Include in every result:

  1. Endpoint(s) involved (auth, callback, token, userinfo, metadata, ACS)
  2. Exact request/response showing the flaw (redirect_uri reflection, JWT header confusion, SAML element mutation, etc.)
  3. Sub-technique fired and CVE reference if applicable
  4. Impact step beyond probe — token receipt, ATO, cross-tenant access, privilege escalation
  5. Repro steps with role assumptions (own account vs. crafted IdP vs. test tenant)

Write a working PoC HTML / cURL / signed-token script to disk.

Brain Integration

Before starting, read brain briefings for EXHAUSTED vectors — skip them. Focus on ACTIVE leads.

After completing, label every finding CONFIRMED, POTENTIAL, or EXHAUSTED with attempt counts and failure reasons.

Top-Tier Operator Standard

OAuth and SSO bugs are identity-binding failures.

  • Trace the full flow: authorization request, redirect validation, state/nonce, PKCE, code exchange, ID token validation, account linking, session creation, logout, refresh, and silent renew.
  • Test who chose each value and who validates it. The bug usually lives where client, IdP, and app disagree.
  • Prove account takeover, account linking confusion, token theft, session fixation, tenant confusion, or auth-code interception.
  • Kill "missing PKCE" or "open redirect" alone unless it is exploitable in the actual client context.
  • Preserve the exact URLs, state/nonce behavior, token claims, client_id, redirect_uri, and which browser/account completed each step.

Heefeg gestallte Froen

Wat mécht de KI-Skill Oauth Hunter?

OAuth 2.0 / 2.1, OpenID Connect (OIDC), SAML SSO, and JWT specialist. Dispatcher passes subtype — 'oauth', 'oidc', 'saml', or 'jwt' — in the task; falls back to inference. Use for redirect_uri / returnTo flaws, state/nonce/PKCE bypass, alg confusion (none/HS-with-RS-key/kid/jku), SAML XSW + comment injection + assertion replay, OIDC ID token validation gaps, code/token leak channels, cross-tenant impersonation, PKCE downgrade, and any flow involving a code, access_token, id_token, assertion, client_id, client_secret, code_verifier, code_challenge, kid, or jku parameter.

Firwat Oauth Hunter op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Oauth Hunter besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Oauth Hunter an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/H-mmer/pentest-agents/tree/main/providers/openclaw/.agents/skills/agent-oauth-hunter an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Oauth Hunter benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Oauth Hunter benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Oauth Hunter domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Oauth Hunter gratis?

H-mmer huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇