Security lab
OAuth State Bypass
The authorization flow expects a state parameter, but the application accepts a missing or stale value and completes the login flow without verifying the expected cross-site request correlation.
Lab objective
Exploit the authorization callback by reusing or omitting the state value so the app accepts a forged login and exposes the privileged 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 server redirects with a state value but does not enforce a strict match on callback.
- 02Look for state fixation or an insufficient CSRF/nonces guard.
- 03The backend accepts the callback if the state value is present and not explicitly rejected.
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.