Security lab
OAuth PKCE Bypass
The authorization callback advertises PKCE protection, but it accepts a code without the expected verifier. An attacker can reuse the authorization code and gain a trusted admin session without the proof-of-possession step.
Lab objective
Submit the callback without a valid code_verifier and complete the login flow so the an attacker obtains the admin token from the OAuth exchange.
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 callback checks the authorization code and state, but it does not verify the proof-of-possession challenge.
- 02A malicious client can replay or forge the code within the same session if the verifier check is missing.
- 03The response itself exposes the access token once the compromised code is accepted.
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.