CVE-2026-63493 in Snipe-IT (fixed in 8.7.0) is a 2FA bypass that turns a one-line middleware omission into full account takeover. The CheckForTwoFactor gate sits in the web middleware group; the personal-access-token issuance route sits in the api group. A user authenticated with a password but not yet cleared through 2FA can mint a long-lived PAT, use it against the two_factor_reset endpoint, enroll a new factor, and lock the legitimate admin out.
The proximate cause is middleware-group bookkeeping. The deeper cause is modeling 2FA as a route-level decoration rather than a property of the authenticated principal. The 8.7.0 fix is almost certainly the local form — adding the same middleware to the api group — because that is how the advisory frames the bug. A local patch closes the reported bypass and does nothing to prevent the next route group, CLI command, webhook receiver, or queued job from inheriting the same partial-auth state.
After upgrading, check three things:
-
Audit every route group that resolves an authenticated identity. Anything issuing credentials or mutating auth state needs the factor-completion check, not just web-facing routes.
-
Treat pre-patch tokens as suspect. A PAT minted during the bypass window remains valid after upgrade. Force-revoke tokens issued before 8.7.0, or force a 2FA re-challenge on next use.
-
Add the missing test: an assertion that "PAT issuance must require a completed 2FA challenge." The api group was treated as a peer of the web group rather than a strict subset of its guarantees. A test against the user record, not the route, is what would have caught this and will catch the variants.
The broader pattern: every additional authentication pathway — PATs, OAuth client credentials, service-account keys — gets bolted onto an authorization surface that already contains dormant endpoints whose threat-model assumptions have rotted. The two_factor_reset endpoint was correct when only a fully-authenticated session could reach it. The moment a parallel authenticator shipped answering a weaker question, it became wrong. Migration should include an audit of those dormant endpoints, not just a route-table edit.