Security lab
CORS Credential Bypass
The API echoes the request origin and allows credentials on cross-site requests. A malicious site can send a credentialed preflighted fetch to the victim's authenticated session and read the admin profile data.
Lab objective
Exploit the overly permissive CORS configuration to make an authenticated cross-origin request and recover the admin secret from the response body.
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 reflects the Origin header and leaves Access-Control-Allow-Credentials enabled.
- 02Cross-origin requests can still succeed when credentials are included and no strict origin allowlist is checked.
- 03The response contains user role and secret metadata if the fetch 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.