Lion Cipher Lab
See a login brute force in the logs, then stop it: DVWA behind an nginx rate limit
- Penetration Testing / Red Team
- Intermediate
- ~60 min
- Free · no account required
Why it matters
Guessing passwords is the oldest attack on a login page, and it still works wherever nothing slows it down. The defender's job is to notice it and to make it expensive. You will do both on a safe, local target: first watch what a guessing run looks like in the logs of an unprotected app, then add a rate limit in a front proxy and measure what changes. You will also see its limit: a patient attacker stays under it. That is the honest lesson: rate limiting is one layer, and the stronger layers are lockout, multi-factor sign-in and refusing weak passwords.
What you'll learn
- running DVWA locally from its own compose file, bound to localhost
- sending a tiny password-guessing run at your own DVWA with ffuf and reading its result lines
- recognizing a brute force in application logs
- putting nginx in front of an app and adding limit_req with a burst and a 429 status
- measuring before and after, including the patient attacker the limit does not stop
- choosing the stronger controls: lockout, MFA and breach-aware passwords
Steps in this lab
- The authorization rule, and the size of the attack
- Run DVWA from its own compose file
- Find your session cookie and write a six-word list
- Before: six guesses straight at DVWA
- Read what the defender has: the logs
- Put nginx in front: the limit
- After: the same six guesses through the limit
- The honest negative: a patient guesser still gets through
- What the fix looks like inside the app
- What a professional does differently, and when not to do this
- Clean up, and what a defender saw
Open the full interactive lab →