At a glance
- Controls
- CWE-288 · A07:2021 Identification and Authentication Failures
What it is
Multi-factor sign-in is often added to the main web login first. Other ways in, such as the mobile API, a legacy login route, single sign-on fallbacks or magic links, keep the old behaviour. Each one issues a full session.
An attacker with a leaked password tries every sign-in route the product offers. One of them returns a session without asking for the second factor. AI-assisted attackers map all login routes from app bundles and old documents, so forgotten paths surface early.
Where it hides
What a reviewer can look for in the code and in the behaviour, before anyone proves it.
- Mobile or desktop app login APIs
- Older API versions and legacy login routes
- Magic link, remember-me and session refresh flows
- Account recovery flows that sign the user straight in
How MATT tests it
The proof runs against the deployed product, on every release, whoever wrote the code.
- 01Read the code to list every route that creates a session or issues a token.
- 02Use a test account with MFA turned on and sign in through each route with only the password or link.
- 03Record any route that returns a working session without the second factor.
Every sign-in path must require the same factors as the main one.
Executable checkfor each sign-in route: sign in as MFA-enabled test user with password only expect: second factor requested, no session issued call GET /v1/me with anything returned expect: 401
Every rule MATT holds →What the fix looks like
- 01
Route every sign‑in path through one shared authentication service that enforces MFA.
- 02
Issue a full session only after all required factors pass, on every path.
- 03
Retire legacy login routes, or put them behind the same MFA step.
- 04
Add a test per sign‑in route that expects a second‑factor challenge for MFA users.
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? →