# OAuth 2.0 & OpenID Connect Flaws

> Break redirect URI validation, missing state and login CSRF, and account linking flaws in OAuth and OpenID Connect, then see how exact redirect matching and PKCE close them.

Canonical: https://codelivly.com/rooms/oauth-2-and-openid-connect-flaws
Last updated: 2026-11-30

| | |
|---|---|
| Level | Advanced |
| Category | Web Security |
| Lessons | 7 |
| Estimated time | 3 h 30 min |
| XP | 2188 |

Break redirect URI validation, missing state and login CSRF, and account linking flaws in OAuth and OpenID Connect, then see how exact redirect matching and PKCE close them.

## Lessons

1. What is OAuth & Why It Matters (30 min)
2. Redirect URI Validation Bypasses (30 min)
3. Missing State and Login CSRF (30 min)
4. Authorization Code and Token Leakage (30 min)
5. Account Linking and Pre-Account Takeover (30 min)
6. Defender's View: Exact Redirect Matching and PKCE (30 min)
7. Guided Lab: Steal a Lab Authorization Code Through a Redirect Flaw (30 min)

## Related

- [Learning path: Identity, Token & API Hunting](https://codelivly.com/learning-paths/identity-token-and-api-hunting)
- [All rooms](https://codelivly.com/rooms)
