oauth-oidc-misconfiguration

Identify OAuth 2.0 and OpenID Connect misconfiguration risks in authorization flows.

2|Updated May 15, 2026
One-click install
npx skills add https://github.com/lNwNl/Methodos --skill oauth-oidc-misconfiguration-lnwnl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oauth-oidc-misconfiguration
Source: https://github.com/lNwNl/Methodos/tree/main/docker/opencode/skills/oauth-oidc-misconfiguration
Command: npx skills add https://github.com/lNwNl/Methodos --skill oauth-oidc-misconfiguration-lnwnl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OAuth and OpenID Connect misconfigurations can let attackers bypass login protections or steal/relay tokens through weak redirect handling, missing state/nonce checks, lax PKCE enforcement, and improper audience or identity binding.

Core Features & Use Cases

  • Redirect URI validation review: Check prefix/path confusion, open redirect chaining, and leftover localhost patterns to ensure callbacks are strictly bound.
  • State, nonce, and PKCE verification: Validate that state and nonce are unpredictable and correctly bound/checked, and that PKCE is enforced for the right client types.
  • Token and identity binding checks: Ensure aud/iss are validated and that callback/token handling does not allow account rebinding or cross-client token reuse.

Use case: You are testing a web or mobile app that logs in via Google/GitHub/Okta/Microsoft, and you suspect the callback, state/nonce, or token exchange logic does not properly bind the authorization response to the original user session.

Quick Start

Use the oauth-oidc-misconfiguration skill to produce a targeted checklist for validating redirect URI handling, state/nonce correctness, PKCE enforcement, and token audience/issuer binding for the OAuth/OIDC flows you are assessing.

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 OAuth 2.0 redirect URI validation for open redirect chaining?

To check OAuth 2.0 redirect URI validation, review callback endpoints for prefix/path confusion, open redirect chaining, and leftover localhost patterns to ensure callbacks are strictly bound to your client application.

What is PKCE enforcement and when do I need it for OAuth flows?

PKCE enforcement requires using Proof Key for Code Exchange to prevent authorization code interception. You need PKCE enforcement for specific client types like SPAs and mobile apps during OAuth/OIDC authorize-to-callback-to-token-exchange flows.

How do I validate state and nonce parameters in OpenID Connect?

To validate state and nonce parameters in OpenID Connect, verify that both values are cryptographically unpredictable and correctly bound to the user session, ensuring protection against CSRF and token replay attacks.

Does OAuth token audience validation prevent cross-client token reuse?

Yes, OAuth token audience validation prevents cross-client token reuse by ensuring the `aud` (audience) and `iss` (issuer) claims are strictly verified, stopping tokens from being accepted by unintended clients.

What is the best way to test OIDC misconfiguration risks across SPAs and mobile clients?

The best way to test OIDC misconfiguration risks is applying a targeted checklist during security reviews to verify redirect handling, state/nonce binding, PKCE enforcement, and token audience checks across SPA, mobile, and server-rendered clients.

Why does account rebinding happen in OAuth callback handling?

Account rebinding happens in OAuth callback handling when token and identity binding checks are lax, allowing an authorization response to be improperly linked to a different user session or identity provider account.