oauth-oidc-misconfiguration

Identify OAuth 2.0 and OpenID Connect misconfigurations in redirects, state/nonce binding, PKCE, and token validation.

1.6k|204|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/yaklang/hack-skills --skill oauth-oidc-misconfiguration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oauth-oidc-misconfiguration
Source: https://github.com/yaklang/hack-skills/tree/main/skills/oauth-oidc-misconfiguration
Command: npx skills add https://github.com/yaklang/hack-skills --skill oauth-oidc-misconfiguration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OAuth and OIDC misconfigurations can expose user accounts and tokens, leading to account takeover and token leakage during authorization flows.

Core Features & Use Cases

  • Redirect URI validation checks (prefix matching, open redirect prevention) during authorization.
  • State and nonce binding verification to mitigate CSRF and replay risks.
  • PKCE enforcement for public clients and proper code verifier handling.
  • Token audience and issuer validation across IdPs and relying parties.
  • Provider trust assessment and callback integrity checks.

Quick Start

Run the misconfiguration test suite against your OAuth/OIDC flows to identify redirect, state, PKCE, and token issues.

Frequently Asked Questions about oauth-oidc-misconfiguration

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

FAQPage Schema
How do I check for OAuth 2.0 redirect_uri validation misconfigurations?

To check for OAuth 2.0 redirect_uri validation misconfigurations, you must verify prefix matching and open redirect prevention during the authorization flow. This process identifies improper callback handling that exposes user accounts to takeover.

Why does my OIDC implementation fail state and nonce binding verification?

OIDC implementations fail state and nonce binding verification when CSRF and replay risks are not properly mitigated. Verifying these bindings during the authentication flow ensures callback integrity and prevents malicious token replay attacks.

How do I enforce PKCE for public clients to prevent token leakage?

To enforce PKCE for public clients and prevent token leakage, you must verify proper code verifier handling during the authorization flow. This check ensures public clients securely exchange authorization codes without exposing tokens.

Can I test token audience and issuer validation across external IdPs?

Yes, you can test token audience and issuer validation across external Identity Providers (IdPs) and relying parties. This assessment verifies that tokens are accepted only from trusted providers and intended recipients, preventing unauthorized access.

What is the best way to find OIDC misconfigurations in SPAs?

The best way to find OIDC misconfigurations in Single Page Applications (SPAs) is to run a dedicated misconfiguration test suite against your authentication flows. This identifies redirect, state, PKCE, and token validation issues specific to public clients.

When do I need to verify provider trust boundaries in OIDC flows?

You need to verify provider trust boundaries in OIDC flows whenever your web or mobile apps rely on external IdPs. This assessment checks callback integrity and ensures tokens are validated against the correct issuer boundaries.