Skip to content
Back to skills

Oauth

ASecurity

OAuth 2.0/2.1 and OIDC attacks — redirect_uri validation flaws and code/token theft, missing/weak state (CSRF & account-linking takeover), implicit-grant impersonation, scope flaws, unverified-email/account-linking takeover, PKCE downgrade/omission, OIDC nonce/aud/iss confusion, and open dynamic client registration abuse. Tier 1. Use whenever OAuth/OIDC/"login with" is present.

  • 16 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added November 17, 2026
securitygoawsbackend

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill oauth --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Oauth?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Oauth
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-oauth/badge)](https://www.skillsdirectory.com/skills/anandjogawade-oauth)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: oauth
description: OAuth 2.0/2.1 and OIDC attacks — redirect_uri validation flaws and code/token theft, missing/weak state (CSRF & account-linking takeover), implicit-grant impersonation, scope flaws, unverified-email/account-linking takeover, PKCE downgrade/omission, OIDC nonce/aud/iss confusion, and open dynamic client registration abuse. Tier 1. Use whenever OAuth/OIDC/"login with" is present.
---

# OAuth 2.0 / 2.1 / OIDC Attacks

Map the flow (auth-code, PKCE, implicit, client-credentials), then attack issuance and redemption. Payloads/refs: `${CLAUDE_PLUGIN_ROOT}/payloads/auth-jwt.md`.

## Trigger phrases
`oauth, oidc, openid connect, redirect_uri, sso login, authorization code, pkce, account linking takeover`

## Attacks
- **redirect_uri manipulation [high-value]:** weak matching (prefix/substring/path-append), `//attacker`, `@attacker`, `#@`, subdomain/suffix tricks, open-redirect on an allowlisted host (→ `open-redirect`) → leak `code`/token to attacker.
- **Code/token leakage:** code in Referer/logs, token in URL fragment (implicit), via `postMessage`.
- **Missing/weak state [high-value]:** no `state` → login-CSRF / forced account-linking → takeover.
- **Code theft/injection/reuse:** code not single-use, not bound to client/PKCE; inject victim's code into attacker session (or vice-versa).
- **PKCE downgrade/omission [NEW/RARE]:** server accepts auth without `code_verifier`, or `method=plain`.
- **OIDC nonce/aud/iss confusion [NEW/RARE]:** `id_token` with unchecked `aud`/`iss`/`nonce`, or signature/alg not validated (→ `jwt`); accept tokens from an attacker IdP.
- **Unverified-email / account linking [high-value]:** link attacker's social login to a victim account where email isn't verified → pre/post account takeover.
- **Open dynamic client registration [NEW/RARE]:** register a malicious client (logo/jwks/redirect URIs) → SSRF via metadata fetch or one-click ATO.
- **Scope/consent:** scope upgrade, `prompt=none` silent token grab.

## Escalation
Any code/token leak or flow flaw → **account takeover** — demonstrate it.

## Backend
Use the preferred Kali path (native Kali / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike / Metasploit-MCP) or a headless browser for client-side steps; Windows-local only as last resort. See `zazy-orchestrator`.

## Verification (background, before reporting)
Re-confirm every candidate independently (second account/session, replay, or OAST) before marking CONFIRMED. Report true positives only; hold back anything not reproduced.

## Evidence
The leaked code/token or flow manipulation, and the resulting victim-account access.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.