At a glance
- Controls
- CWE-645 · A07:2021 Identification and Authentication Failures
What it is
Many products lock an account after a set number of failed sign-ins. That slows password guessing. It also means anyone who knows a user's email can lock that user out by typing wrong passwords.
An attacker gathers a list of customer emails and sends a few bad passwords for each. Real customers find they cannot sign in, and support is flooded. AI tools can collect likely emails and script the attempts across many accounts quickly.
Where it hides
What a reviewer can look for in the code and in the behaviour, before anyone proves it.
- Sign-in endpoints that lock by account with no time limit
- Mobile and API sign-in paths that skip the web form's protections
- Password reset and one-time code checks with the same lockout
- Lockouts that need a support ticket to clear
How MATT tests it
The proof runs against the deployed product, on every release, whoever wrote the code.
- 01Create a second test account that MATT controls and use only that account as the target
- 02Send wrong passwords to it from a different client until any lockout starts
- 03Confirm whether the owner can still sign in with the right password and a further check, and how long the lock lasts
Lockout must protect an account without letting others lock its owner out.
Executable checkas an outsider: POST /v1/login for test account B with 20 wrong passwords then as owner B: POST /v1/login with the right password from a known device expect: sign-in succeeds, or a step-up check is offered expect: any lock ends on its own after a short time
Every rule MATT holds →What the fix looks like
- 01
Use short, growing delays per account and per source in place of hard locks
- 02
Rate limit by IP address and device as well as by account
- 03
Offer a step‑up check such as a one‑time code when failures pile up
- 04
Let the owner restore access through a verified channel such as their email
A check that was never written is found by proving the deployed behaviour, fixed with the engineer who shipped it, and kept fixed by running the control on every change. What is ExploitOps? →