oauth-oidc-misconfiguration

Assess OAuth2/OpenID Connect misconfigurations across redirect_uri, state, PKCE, and token binding.

5|1|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/Yliken/ai4 --skill oauth-oidc-misconfiguration-yliken
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oauth-oidc-misconfiguration
Source: https://github.com/Yliken/ai4/tree/main/skills/oauth-oidc-misconfiguration
Command: npx skills add https://github.com/Yliken/ai4 --skill oauth-oidc-misconfiguration-yliken

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OAuth2/OpenID Connect implementations often suffer from misconfigurations that lead to insecure redirects, improper state/nonce handling, missing PKCE, and weak token binding. This skill provides a focused, repeatable checklist to detect and remediate these issues across web, mobile, and SPA clients.

Core Features & Use Cases

  • Redirect URI validation checks to prevent open redirects and mismatches.
  • State and nonce handling verification to ensure user session integrity.
  • PKCE enforcement and verifier/code_challenge flow validation.
  • Token audience and issuer checks to prevent token reuse across clients.
  • Account binding and callback integrity assessments to thwart impersonation.

Quick Start

Audit the OAuth2/OIDC flow for misconfigurations and generate a risk report.

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 OAuth2 redirect_uri validation for open redirect vulnerabilities?

To check OAuth2 redirect_uri validation, you must verify exact string matching against pre-registered URIs to prevent open redirects and mismatches. This assessment covers authorize and callback flows to ensure callback integrity.

How do I validate PKCE enforcement and code_challenge flow in OAuth2?

Validating PKCE enforcement requires verifying the secure handling of the code_verifier and code_challenge parameters across the OAuth2 flow. You must explicitly check that the code_challenge is correctly bound and validated during the token exchange process.

What is the correct way to handle state and nonce parameters in OIDC?

Correct state and nonce handling in OIDC ensures user session integrity by binding the nonce to the authentication flow. You must explicitly verify that these parameters are correctly generated, sent, and validated upon callback to thwart impersonation attacks.

Can I audit OIDC token binding and audience validation across SPA and mobile clients?

You can audit OIDC token binding and audience validation across web, mobile, and SPA clients. The assessment requires explicit checks for correct issuer and audience validation to prevent token reuse across different clients.

What are common OAuth2 misconfigurations that lead to insecure token exchange?

Common OAuth2 misconfigurations include missing PKCE enforcement, improper state/nonce handling, weak token binding, and incorrect audience validation. Detecting these issues requires a focused checklist examining authorize and token exchange flows for correct parameter validation.

Does OAuth2 misconfiguration testing work for both web and mobile authorization flows?

OAuth2 misconfiguration testing works for web, mobile, and SPA clients leveraging OAuth/OIDC. The assessment applies explicit security checks across authorize, token exchange, and callback flows to identify vulnerabilities specific to each client type.