Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add yaklang/hack-skills --skill oauth-oidc-misconfiguration -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/oauth-oidc-misconfiguration/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/oauth-oidc-misconfiguration/

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

Similar skills

All skills for Security →

From the same set93

jwt-oauth-token-attacks A skill for Claude and other AI editors that walks through attacks on JWT tokens and OAuth 2.0 flows. Useful when you need to check how an app trusts tokens and keys. CX Codex +1 3,800installs authbypass-authentication-flaws Testing playbook for authentication flaws. It guides assessments of login flows, password reset logic, account enumeration, brute-force protections, and MFA bypasses. CX Codex +1 3,800installs ssrf-server-side-request-forgery A skill for reviewing SSRF in features that fetch URLs, resolve hostnames, import remote content, or reach internal services. CX Codex +1 3,900installs traffic-analysis-pcap A playbook for network capture analysis: Wireshark filters, protocol breakdowns, covert channel detection and TLS decryption. CX Codex +1 3,700installs csrf-cross-site-request-forgery A CSRF testing playbook for state-changing web flows, token checks, SameSite behavior, JSON requests, login CSRF, and OAuth state. CX Codex +1 3,700installs heap-exploitation A playbook for ptmalloc2 heap exploitation: UAF, double free, overflow, plus tcache, fastbin and unsortedbin attacks. Useful for CTF work and glibc bug triage. CX Codex +1 3,700installs business-logic-vuln Routes security testing toward business logic and state machine flaws. Focuses on race conditions, stacked discounts, quota bypasses, and workflow abuse. CX Codex +1 3,700installs recon-for-sec Routes initial reconnaissance for a new application, from attack-surface mapping to the next security testing path. CX Codex +1 3,700installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor