At a glance
- Controls
- CWE-307 · A07:2021 Identification and Authentication Failures
What it is
The sign-in form or login API answers every attempt the same way, however many have failed before. Nothing slows the caller down, locks the account or asks for an extra check. The product has no defence against guessing.
Attackers feed lists of leaked email and password pairs into a script and try them against the login. Any account whose owner reused a password falls. AI-assisted tooling makes this easier, because it can find every login route, spread requests across addresses and adjust to responses with little human effort.
Where it hides
What a reviewer can look for in the code and in the behaviour, before anyone proves it.
- The mobile app login API, which often skips the limits the web form has
- Older API versions and legacy login endpoints still left running
- Token and session endpoints that accept a username and password directly
- Limits counted per IP address only, which spread requests bypass
How MATT tests it
The proof runs against the deployed product, on every release, whoever wrote the code.
- 01Map every route that accepts a password from the code and the live product.
- 02Sign in to a MATT test account with a wrong password many times in a row, at a modest pace.
- 03Record whether responses slow down, lock, or ask for an extra check, then sign in correctly to confirm the account still works.
Repeated failed sign-ins must slow down or stop.
Executable checkas anyone: POST /v1/login with test user and wrong password, 20 times expect: 429, a lockout message or an extra challenge before attempt 20 expect: the same limit on every login route, web and mobile expect: the limit holds when requests come from different addresses
Every rule MATT holds →What the fix looks like
- 01
Count failed attempts per account and per source, and add growing delays after a few failures.
- 02
Apply the same limit in one shared place that every login route passes through.
- 03
Add a challenge or a second factor once failures pass a threshold.
- 04
Alert the team when failed sign‑ins spike across many accounts.
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? →