Broken
Authentication
If a login system lets you try unlimited passwords or uses weak checks, anyone can break into accounts just by guessing or reusing credentials. We're going to do exactly that.
What You'll Learn
By the end of this workshop, you'll be able to spot and exploit weak login mechanisms—one of the most common entry points for attackers.
Authentication Failures
Authentication verifies who a user is. When it's weak, attackers can simply imitate legitimate users.
carlos:password123 ✗ Failedcarlos:qwerty ✗ Failedcarlos:123456 ✗ Failedcarlos:password ✓ SuccessRepeated login attempts eventually succeed because the system does not limit or properly validate authentication attempts.
The 4‑Step Brute‑Force
How attackers exploit weak authentication—from guessing to full account takeover.
- Application sends request to server for verification
- No indication of rate limiting or account lockout
- Weak controls allow repeated attempts
- No CAPTCHA, no delay, no account lockout
- Try common passwords:
123456,password,qwerty - No restrictions or protections stop the attempts
- Application grants access without detecting abuse
- Attacker now operates as the legitimate user
# Step 1: attempt login with common credentials Username: carlos Password: password123 → Expected: login fails (incorrect password) # Step 2: try another weak/common password Username: carlos Password: qwerty / 123456 / password → Expected: login eventually succeeds # Step 3: confirm access Access account dashboard → Expected: user is logged in as carlos
Troubleshooting
Test Your Knowledge
carlos:password and it fails. What should you do next in a
lab with no rate limiting?Now Do It Yourself
123456, password, or
qwerty.| ATTACK / PATTERN | WHAT IT DOES | WHEN TO USE |
|---|---|---|
Password spraying |
Try a few common passwords against many accounts | When account lockout exists but is per‑account |
Credential stuffing |
Use leaked username/password pairs from breaches | When users reuse passwords across sites |
Brute‑force (no rate limit) |
Repeatedly guess passwords for a single account | When no lockout or CAPTCHA is present |
Common passwords |
Try 123456, password, qwerty,
admin |
Always—first step in any authentication test |
📎 Full cheatsheet: Broken_Authentication_Handout.pdf
Go Deeper
Username Enumeration via Different Responses
The exact PortSwigger lab used for the Broken Authentication workshop activity.
PortSwigger: Authentication
Hands‑on labs demonstrating real authentication flaws and attack techniques.
OWASP Top 10: Identification and Authentication Failures
Overview of common authentication weaknesses and their impact.
OWASP Authentication Cheat Sheet
Best practices for implementing secure authentication mechanisms.
Broken Authentication Handout
Full Day 4 workshop handout and quick reference.