oauth-oidc-misconfiguration — Claude Code skill: how to install
Testing playbook for OAuth 2.0 and OpenID Connect configurations. It guides security reviews of redirect URIs, state parameters, PKCE enforcement, and account binding flows.
npx skills add yaklang/hack-skills --skill oauth-oidc-misconfiguration -a claude-codeWhat oauth-oidc-misconfiguration does
This skill loads a testing checklist into the agent context for reviewing OAuth 2.0 and OpenID Connect implementations. It applies whenever an application integrates identity providers like Google or Okta. The workflow begins by mapping the entire route from authorization to logout.
The checklist targets seven specific configuration areas. The agent reviews redirect_uri parsing against path traversal or open redirects, verifies session binding for state, and confirms PKCE enforcement on public clients. It also inspects OIDC nonce validation, token audience checks, scope creep, and account takeover during callback binding.
This playbook focuses exclusively on protocol configuration flaws. It does not inspect token cryptography or JWT header tampering, so you need jwt-oauth-token-attacks to cover signature verification.
What it helps with
- audit redirect URI parsing for open redirect and path traversal flaws
- verify session-bound state and OIDC nonce validation
- check PKCE enforcement across single-page and mobile clients
- inspect token audience and issuer validation to prevent token reuse
- test callback binding logic against account takeover scenarios
Example prompts for the agent
- Review the redirect_uri validation and state handling in our OAuth callback handler.
- Audit our SPA login flow to verify that PKCE and nonce checks are properly enforced.
- Check our account linking implementation against the oauth-oidc-misconfiguration checklist.
How to install oauth-oidc-misconfiguration
1Skills CLI (Vercel)
npx skills add yaklang/hack-skills --skill oauth-oidc-misconfiguration -a claude-code2Manually: put the files in place
~/.claude/skills/oauth-oidc-misconfiguration/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/oauth-oidc-misconfiguration/
1Skills CLI (Vercel)
npx skills add yaklang/hack-skills --skill oauth-oidc-misconfiguration -a codex2Manually: put the files in place
.agents/skills/oauth-oidc-misconfiguration/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add yaklang/hack-skills --skill oauth-oidc-misconfiguration -a cursor2Manually: put the files in place
.cursor/skills/oauth-oidc-misconfiguration/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install yaklang/hack-skills oauth-oidc-misconfiguration2Manually: put the files in place
.github/skills/oauth-oidc-misconfiguration/SKILL.md1Skills CLI (Vercel)
npx skills add yaklang/hack-skills --skill oauth-oidc-misconfiguration -a gemini-cli2Platform CLI
gemini skills install https://github.com/yaklang/hack-skills --path skills/oauth-oidc-misconfigurationManually: put the files in place
.devin/skills/oauth-oidc-misconfiguration/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add yaklang/hack-skills --skill oauth-oidc-misconfiguration -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about oauth-oidc-misconfiguration
How to install oauth-oidc-misconfiguration in Claude Code?
Run npx skills add yaklang/hack-skills --skill oauth-oidc-misconfiguration -a claude-code. The skill will be added to your agent environment and loaded during OAuth code reviews.
What does the oauth-oidc-misconfiguration skill check?
It guides the agent through identifying OAuth 2.0 and OIDC flaws, such as loose redirect_uri validation, missing state or nonce parameters, skipped PKCE verification, and insecure account linking.
Does this skill analyze JWT token signatures and header attacks?
No, this skill covers protocol workflow and configuration mistakes rather than cryptographic vulnerabilities. The author recommends loading jwt-oauth-token-attacks for token cryptography and header abuse testing.
Source text
SKILL.md · MIT
--- name: oauth-oidc-misconfiguration description: >- OAuth and OIDC misconfiguration testing playbook. Use when reviewing redirect URI handling, state and nonce validation, PKCE, token audience, callback binding, and identity-provider trust flaws. --- # SKILL: OAuth and OIDC Misconfiguration — Redirects, PKCE, Scopes, and Token Binding > **AI LOAD INSTRUCTION**: Use this skill when the target uses OAuth 2.0 or OpenID Connect and you need a focused misconfiguration checklist: redirect URI validation, state and nonce handling, PKCE enforcement, token audience, and account binding mistakes. ## 1. WHEN TO LOAD THIS SKILL Load when: - The app supports `Login with Google`, GitHub, Microsoft, Okta, or other IdPs - You see `authorize`, `callback`, `redirect_uri`, `code`, `state`, `nonce`, or `code_challenge` - Mobile or SPA clients rely on OAuth or OIDC flows For token cryptography and JWT header abuse, also load: - [jwt oauth token attacks](../jwt-oauth-token-attacks/SKILL.md) ## 2. HIGH-VALUE MISCONFIGURATION CHECKS | Theme | What to Check | |---|---| | `state` handling | missing, static, predictable, or not bound to user session | | `redirect_uri` validation | prefix match, open redirect chaining, path confusion, localhost leftovers | | PKCE | missing for public clients, code verifier not enforced, downgraded flow | | OIDC `nonce` | missing or not validated on ID token return | | token audience and issuer | weak `aud` / `iss` checks, cross-client token reuse | | account binding | callback binds attacker identity to victim session | | scope handling | broader scopes granted than the user or client should receive | ## 3. QUICK TRIAGE 1. Map the full flow: authorize, callback, token exchange, logout. 2. Replay callback flows with altered `state`, `nonce`, and `redirect_uri`. 3. Compare SPA, mobile, and web clients for weaker validation. 4. Check whether one provider account can be rebound to another local account. ## 4. RELATED ROUTES - CORS or cross-origin token exposure: [cors cross origin misconfiguration](../cors-cross-origin-misconfiguration/SKILL.md) - XML federation or enterprise SSO: [saml sso assertion attacks](../saml-sso-assertion-attacks/SKILL.md) - CSRF-heavy login or binding bugs: [csrf cross site request forgery](../csrf-cross-site-request-forgery/SKILL.md)
© yaklang · MIT · yaklang/hack-skills