Lion Cipher Lab

See a login brute force in the logs, then stop it: DVWA behind an nginx rate limit

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

Steps in this lab

  1. The authorization rule, and the size of the attack
  2. Run DVWA from its own compose file
  3. Find your session cookie and write a six-word list
  4. Before: six guesses straight at DVWA
  5. Read what the defender has: the logs
  6. Put nginx in front: the limit
  7. After: the same six guesses through the limit
  8. The honest negative: a patient guesser still gets through
  9. What the fix looks like inside the app
  10. What a professional does differently, and when not to do this
  11. Clean up, and what a defender saw

Open the full interactive lab →

Keep learning