Security lab
Mass Assignment
The profile update API accepts arbitrary JSON keys and assigns them directly to the user object without a whitelist, allowing privilege escalation via an untrusted field.
Lab objective
Submit a malicious JSON body that overwrites privileged properties such as role or admin fields through mass assignment.
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 takes JSON from the request and merges it into the user record directly.
- 02Look for fields that are not visible in the form but are accepted by the backend.
- 03A crafted role or admin field can elevate the account state.
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.