Security lab
JWT Algorithm Confusion
The identity provider accepts JWTs with a weak or attacker-controlled algorithm selection, enabling a forged token to bypass the backend's signature verification logic.
Lab objective
Manipulate the JWT header and payload so the server accepts a forged token with a privileged admin role and exposes the hidden verification token.
Tools you will use
- browser
- Burp Suite
- curl
What this lab teaches
This lab is a self-contained exercise hosted in an isolated, per-user sandbox. You are given a clear objective, the tools typically used for the technique, and a guided set of hints. Because every sandbox is disposable and network-isolated, you can experiment freely, make mistakes, and reset the environment without affecting any real system.
Hints & approach
- 01The header contains an alg parameter that may be attacker-controlled.
- 02Try crafting a token whose algorithm advertises none or another insecure fallback.
- 03Once the token is accepted, the payload should encode a privileged role and trigger the secret response.
How the sandbox works
When you start the lab, Vulnarex provisions an isolated, per-user environment and opens it in a new tab. Each session has its own target and state, so nothing you do here can affect another learner or any external system. You can reset the environment at any time and re-approach the challenge from a clean slate.