Security lab
JWT Attacks
The API uses JWT for auth but accepts the 'none' algorithm. Forge an admin token without knowing the secret.
Lab objective
Forge a JWT as the admin user by exploiting the 'none' algorithm vulnerability.
Tools you will use
- browser
- Burp Suite
- jwt.io
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
- 01Decode your JWT — look at the header algorithm and the payload claims.
- 02Change the algorithm to 'none' and the role to 'admin', then remove the signature.
- 03Send the forged token to /api/admin/flag.
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.