CWE-288Identity & accessSeverity · High

A second way in that skips MFA

The main login asks for a second factor, but a mobile API, an older endpoint or a magic link signs users in without it. A stolen password is then enough.

At a glance

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

  1. 01Read the code to list every route that creates a session or issues a token.
  2. 02Use a test account with MFA turned on and sign in through each route with only the password or link.
  3. 03Record any route that returns a working session without the second factor.
The rule, in plain English

Every sign-in path must require the same factors as the main one.

Executable check

for 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

  1. 01

    Route every sign‑in path through one shared authentication service that enforces MFA.

  2. 02

    Issue a full session only after all required factors pass, on every path.

  3. 03

    Retire legacy login routes, or put them behind the same MFA step.

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

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