Security lab
SQL Injection — Database Version Discovery
Exploit unsafe SQL construction in a realistic financial portal to bypass authentication and gain administrator access. Then investigate the search functionality and use UNION-based SQL injection to extract backend database information.
Lab objective
Exploit the authentication and search SQL injection vulnerabilities to obtain both flags.
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 application builds some database queries dynamically from request parameters.
- 02Start with POST /login, then investigate GET /search?q= after obtaining administrator access.
- 03For the second flag, look for a UNION SELECT payload that returns three columns and places sqlite_version() in the description column.
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.