Security lab
API Rate Limit Bypass
The admin login is protected by a 5-tries-per-IP rate limit on a 4-digit PIN — but the counter trusts X-Forwarded-For and a debug endpoint clears it.
Lab objective
Brute-force the admin 4-digit PIN via POST /api/login by rotating X-Forwarded-For (or clearing the counter with DELETE /api/rate-limit).
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 /api/login with { username: 'admin', pin: '0000' } — watch the X-RateLimit-Remaining header.
- 02After 5 tries you get 429 — send X-Forwarded-For with a fresh IP for 5 more tries.
- 03Shortcut: DELETE /api/rate-limit clears the counter (leftover debug endpoint). PIN space is only 0000–9999.
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.