Security lab
OAuth Redirect Abuse
The sign-in flow accepts an arbitrary redirect_uri value and forwards the authorization code to that location without validating the target origin or scheme.
Lab objective
Manipulate the redirect_uri parameter so the browser sends the OAuth authorization code to an attacker-controlled domain after the login flow completes.
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 login page requests redirect_uri and client_id in the query string.
- 02The server passes the code back by issuing a 302 to the supplied redirect target.
- 03A malicious domain can receive the auth code if the redirect target is not constrained.
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.