oauth-oidc-misconfiguration

Detect OAuth 2.0 and OpenID Connect misconfigurations in login flows.

241|28|Updated May 20, 2026
One-click install
npx skills add https://github.com/ok-helloworld/vibe-pentest --skill oauth-oidc-misconfiguration-ok-helloworld
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oauth-oidc-misconfiguration
Source: https://github.com/ok-helloworld/vibe-pentest/tree/main/references/pentest_skills/oauth-oidc-misconfiguration
Command: npx skills add https://github.com/ok-helloworld/vibe-pentest --skill oauth-oidc-misconfiguration-ok-helloworld

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you identify common OAuth 2.0 and OpenID Connect misconfigurations that can lead to account takeover, authorization bypass, token misuse, and unsafe redirect handling.

Core Features & Use Cases

  • Redirect URI & callback validation review: checks for prefix/path confusion, open redirect chaining, localhost leftovers, and improper redirect binding.
  • State, nonce, and session binding testing: validates that state and OIDC nonce are present, unpredictable, and correctly tied to the user session and ID token.
  • PKCE, token exchange, and claim checks: verifies PKCE enforcement for public clients and ensures tokens are checked for correct issuer (iss) and audience (aud), preventing cross-client reuse.
  • Scope and account binding assessment: detects overly broad scopes and callback/account rebinding mistakes that connect attacker identities to victim sessions.

Quick Start

Ask an AI agent to use oauth-oidc-misconfiguration to audit the target’s login flow end to end by testing redirect URI handling, replaying callback parameters with modified state/nonce/redirect_uri, and validating PKCE plus token audience/issuer and account binding behavior.

Frequently Asked Questions about oauth-oidc-misconfiguration

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

FAQPage Schema
How do I test OAuth redirect URI validation for open redirect chaining?

To test OAuth redirect URI validation, you check for prefix/path confusion, localhost leftovers, and improper redirect binding. This identifies unsafe redirect handling and authorization bypass risks in your callback flow.

What does the state parameter do in an OIDC login flow?

The state parameter in an OIDC login flow prevents CSRF-like authorization failures by ensuring the callback is tied to the user's original session. It must be unpredictable and correctly bound to be effective.

How do I audit PKCE enforcement for OAuth public clients?

To audit PKCE enforcement for OAuth public clients, you verify that a code_challenge is present and that the authorization server correctly checks the verifier. This prevents authorization code interception.

Can I check for token reuse across different OAuth clients?

Yes, you can check for token reuse by verifying token claims for the correct issuer and audience. This ensures tokens are not accepted across different clients, preventing cross-client token misuse.

Why does my OIDC callback connect the attacker identity to the victim session?

OIDC callback account binding weaknesses connect attacker identities to victim sessions due to callback/account rebinding mistakes and overly broad scopes. Assessing scope and account linkage fixes this vulnerability.

Does this OAuth audit work for web, SPA, and mobile clients?

Yes, this OAuth audit applies to authorization-code and OIDC login flows across web, SPA, and mobile clients. It validates redirect URIs, state, nonce, PKCE, and token claims for all these environments.