# JWT Attacks in Depth: Forgery & Key Confusion

> Forge JWTs with the none algorithm, crack weak signing secrets, and exploit algorithm confusion, then see what strict verification and key management require.

Canonical: https://codelivly.com/rooms/jwt-forgery-and-key-confusion
Last updated: 2026-11-30

| | |
|---|---|
| Level | Advanced |
| Category | Web Security |
| Lessons | 6 |
| Estimated time | 3 h |
| XP | 1900 |

Forge JWTs with the none algorithm, crack weak signing secrets, and exploit algorithm confusion, then see what strict verification and key management require.

## Lessons

1. What is JWT Forgery & Why It Matters (30 min)
2. Signature Bypass and the None Algorithm (30 min)
3. Cracking Weak Signing Secrets (30 min)
4. Algorithm Confusion and Key Header Injection (30 min)
5. Defender's View: Key Management and Strict Verification (30 min)
6. Guided Lab: Forge an Admin Token for the Lab API (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)
