CWE-645AvailabilitySeverity · Medium

Lockouts anyone can trigger

If a few wrong passwords lock an account, anyone who knows a customer's email can lock them out on purpose. This can block real users at scale.

At a glance

Controls
CWE-645 · A07:2021 Identification and Authentication Failures
Typical severityMedium
ReferenceCWE-645
OWASP Top 10A07: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.

  1. 01Create a second test account that MATT controls and use only that account as the target
  2. 02Send wrong passwords to it from a different client until any lockout starts
  3. 03Confirm whether the owner can still sign in with the right password and a further check, and how long the lock lasts
The rule, in plain English

Lockout must protect an account without letting others lock its owner out.

Executable check

as 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

  1. 01

    Use short, growing delays per account and per source in place of hard locks

  2. 02

    Rate limit by IP address and device as well as by account

  3. 03

    Offer a step‑up check such as a one‑time code when failures pile up

  4. 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? →

ExploitOps discovery call

Understand where your security loop breaks.

A call with a MATT co-founder to understand your product and whether an ExploitOps Review is worth doing. If there is a real need, we scope one with the research team.

Let’s understand your priority

What brings you to MATT?

What would you like help with?
01 / 02