Security lab
Zip Slip
An archive import feature extracts entries using the raw filename with no path normalization. Escape the webroot and read the hidden flag file.
Lab objective
Upload an archive entry with a traversal filename such as ../../flag.txt, then read it back via GET /files?path= to recover the flag.
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
- 01POST /upload accepts filename + content fields — the filename is used exactly as supplied.
- 02Try filename ../../flag.txt, then GET /files?path=../../flag.txt.
- 03Other escapes work too: ../../secret.txt and the absolute path /etc/cron.
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.