Diagnostic playbook
Brute-forceable login (no rate limiting / lockout) with GET-based auth and auth bypass
Web / Authentication
Knowledge identity
Definition and taxonomy
Summary
A login form accepts unlimited password attempts over GET with no rate limiting or account lockout; the username field is also SQL-injectable at the lowest level, allowing direct authentication bypass.
Severity rationale
Demonstrated unlimited login attempts with no account lockout or rate limit (low), a slow-but-not-blocking sleep(2) (medium), and a per-request CSRF token plus random sleep that still permits scripted guessing (high). Low additionally allows SQL injection auth bypass on the username field. Success with the seeded password confirmed in the authorized lab.
Aliases
Login brute force, credential stuffing, authentication bypass via SQLi
Standards
CWE-307,CWE-89 CAPEC-600,CAPEC-7 A07:2021-Identification and Authentication Failures
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
1. First Signal
What should make an agent suspicious
Symptoms
Repeated wrong passwords never trigger lockout; a known/common password logs in; at low, username=admin'-- logs in with any password.
Prerequisites
Authorized lab session. Login reachable; attacker can issue unlimited requests; a weak/common password in use.
2. Recognition Logic
How to recognize this next time
If a login allows many rapid attempts, check for rate limiting/lockout. If a username field is concatenated into SQL with no escaping, test a comment-based auth bypass (admin'--). Watch for sleep() responses that slow but do not stop guessing.
3. Diagnostic Procedure
Safe checks, in order
- Confirm authorized scope. 2. Issue multiple wrong-password attempts and check for lockout/rate limiting. 3. Test a known seeded/common password. 4. At low, test username SQLi auth bypass. 5. At higher levels, fetch the per-request token when present. 6. Record delay patterns.
4. Proof
Evidence
DVWA brute: low wrong x5 returned 200 each (no lockout) and username=admin'-- bypassed auth to 'Welcome'; medium wrong attempt took 2.0s (sleep) and escaping blocked the SQLi payload; high correct creds with a fresh token returned 'Welcome'.
5. Controls
Negative checks
At medium the SQLi bypass did not work (escaped); at high a request without a token was blocked.
6. Avoid Bad Memory
False positives and traps
Slow responses are not blocking; absence of lockout across attempts is the key evidence. A welcome page from valid creds is not itself a vulnerability - the lack of protection is.
7. Why It Matters
Impact
Offline-style guessing of credentials; with a weak password this yields account takeover. Low additionally allows direct auth bypass via SQLi.
8. Why It Happened
Root cause
No rate limiting, lockout, or CAPTCHA on the login; GET-based state-changing auth; username concatenated into SQL unparameterized at low; delays and tokens at higher levels are rate-throttles, not protections.
9. Fix
Remediation and prevention
Enforce rate limiting and account lockout with exponential backoff. Require strong passwords and MFA. Use prepared statements. Move auth to POST and add CAPTCHA/device fingerprinting.
10. Re-test
Verification steps
- After fix, send many wrong attempts and confirm lockout/rate limit triggers. 2. Confirm SQLi payloads no longer authenticate. 3. Confirm delays no longer leak timing differences. 4. Regression tests.
Reference
Tools and sources
Tools used
curl for attempts, docker exec for read-only source review
References
OWASP Authentication Cheat Sheet; CWE-307; CWE-89
Intelligence
Products and history
Technologies
PHP, Apache, GET form
Affected products / versions
DVWA (Damn Vulnerable Web Application) current master
History
First documented in DVWA brute module in the 2026-08 benchmark run.
Exploit knowledge
Variants and references
Attack surface
GET /vulnerabilities/brute/ with username and password parameters
Exploit maturity
proof-of-concept
Known variants
Unlimited GET brute force (low), escaping+sleep slowdown (medium), CSRF token + random sleep (high), SQL injection auth bypass on the username parameter (low)
Defensive signatures
Authentication over GET, no observable account lockout across many attempts, response delay after failed attempts (sleep), SQLi payloads in username returning authenticated content
Reproduction commands
Low (no limits; also SQLi auth bypass): curl -s -b $JAR "http://127.0.0.1:4280/vulnerabilities/brute/?username=admin&password=password&Login=Login" # Welcome curl -s -b $JAR "http://127.0.0.1:4280/vulnerabilities/brute/?username=admin%27--%20&password=x&Login=Login" # Welcome (SQLi bypass) Medium (sleep(2) on failure, escaping blocks SQLi): curl -s -b $JAR "http://127.0.0.1:4280/vulnerabilities/brute/?username=admin&password=password&Login=Login" # Welcome High (per-request token + rand sleep): fetch user_token from the page, then: curl -s -b $JAR "http://127.0.0.1:4280/vulnerabilities/brute/?username=admin&password=password&user_token=$TOKEN&Login=Login" # Welcome
Exploit references
No external references stored; all evidence from the authorized local lab. Only the seeded password was used to confirm success.
Case provenance