pentesting, updated
Testing for weak lock out mechanism
Check whether failed logins are rate-limited or locked out, and whether the lockout itself can be abused.
Goal
Confirm the app resists credential brute-forcing without the lockout itself becoming a denial-of-service lever.
How to test
Submit repeated failed logins and observe the response:
for i in $(seq 1 20); do
curl -s -o /dev/null -w "%{http_code}\n" https://example.com/login -d "user=victim@example.com&pass=wrong$i"
done
Also check whether the lockout can be used to deny a legitimate user access (lock their account by deliberately failing their login) — that’s a problem in the other direction.
What to look for
No lockout/rate limit at all (brute-forceable), or an attacker-triggerable lockout on someone else’s account with no mitigation (CAPTCHA, IP-based throttling).
References
- OWASP WSTG-ATHN-03 — Testing for Weak Lock Out Mechanism.