CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-63493

CVE-2026-63493: Multi-Factor Authentication Bypass via Stateless API Token Flow in Snipe-IT

Alon Barad
Alon Barad
Software Engineer

Sep 24, 2026·6 min read·5 visits

Executive Summary (TL;DR)

Flawed session validation allows password-authenticated users to bypass multi-factor authentication (MFA) by interacting directly with the API middleware group to generate persistent access tokens.

Snipe-IT prior to version 8.7.0 is vulnerable to an authentication bypass (CVE-2026-63493 / GHSA-hxcx-9h4f-42xx) within its Laravel Passport API integration. When multi-factor authentication (MFA/2FA) is enabled, an attacker possessing a victim's password can bypass MFA controls completely. This occurs because the Laravel middleware that enforces MFA was registered only in the stateful 'web' middleware group, leaving the stateless 'api' middleware group unguarded. Consequently, an attacker can use a valid password to initiate a session, bypass the MFA prompt on the web UI by communicating directly with the API, and generate a long-lived Personal Access Token (PAT) to perform unauthorized operations.

Vulnerability Overview

Snipe-IT is an open-source IT asset and license management system built on the Laravel PHP framework. The platform supports a hybrid architecture consisting of a stateful, session-based web user interface and a stateless, token-based REST API designed for automation and integration. Security boundaries within the application are established using middleware groups configured in the HTTP kernel.\n\nTo protect user accounts against credential theft, Snipe-IT supports multi-factor authentication (MFA/2FA) utilizing Time-Based One-Time Password (TOTP) mechanisms. When configured, users are prompted to supply a dynamic security code immediately after entering their primary password credentials. Until this verification is completed, web sessions are restricted from accessing system resources.\n\nCVE-2026-63493 defines an authentication bypass vulnerability within this security boundary. Because the middleware enforcing multi-factor verification was bound strictly to the 'web' routing group, the parallel 'api' routing group remained entirely unguarded. An attacker possessing primary credentials can pivot to the API channel, bypass the pending 2FA challenge, and establish persistent administrative control over the target system.

Root Cause Analysis

The underlying flaw stems from an architectural mismatch between Laravel's stateful session management and stateless API routing. In Snipe-IT, user login is handled via stateful web endpoints. When a user authenticates with their primary credentials, Laravel initiates an authenticated session and returns a cookie-based identifier. If MFA is active, the web middleware CheckForTwoFactor intercepts subsequent web requests and redirects the user to the /two-factor prompt.\n\nTo allow the user to load the challenge interface and authenticate, the CheckForTwoFactor middleware ignores specific exclusion routes defined in IGNORE_ROUTES. Because the /two-factor path is excluded, requests to it are permitted to complete. Immediately following this middleware in the execution chain is CreateFreshApiToken, which automatically issues a Laravel Passport session cookie named snipeit_passport_token to the user's browser.\n\nCrucially, the API routing group defined in routes/api.php does not execute the CheckForTwoFactor middleware. The API group relies on the auth:api guard, which accepts the newly generated snipeit_passport_token cookie along with the session's XSRF token. Because the API lacks any mechanism to check whether the active session has successfully solved the pending web-based MFA challenge, it processes transactions as fully authorized, bypassing the 2FA enforcement layer.

Code and Path Analysis

Prior to version 8.7.0, the api middleware array in app/Http/Kernel.php did not include any verification logic for two-factor enrollment or completion. This configuration permitted any token-bearing request to execute controller actions unhindered, provided the token mapped to a valid user account. The following Mermaid diagram illustrates the dual-path vulnerability where the web route is gated but the API route remains entirely unguarded:\n\nmermaid\ngraph LR\n A["User Login (Password Only)"] --> B["Web Middleware Group"]\n B --> C["CheckForTwoFactor Middleware"]\n C -->|Redirect| D["MFA Challenge Prompt (/two-factor)"]\n D --> E["CreateFreshApiToken (Issues Passport Cookie)"]\n E --> F["API Middleware Group (No MFA Check)"]\n F --> G["POST /api/v1/account/personal-access-tokens"]\n G --> H["Generate Persistent Bearer Token"]\n\n\nThe remediation introduced in pull request #19294 registers a new middleware class, EnforceApiTwoFactorEnrollment, directly into the api middleware array. This class intercepts every inbound REST API transaction immediately after token resolution via the auth:api guard. The middleware inspects the application's global configuration settings to determine whether 2FA is active, and subsequently checks the target user account's enrollment state.\n\nIf the application requires 2FA and the authenticated user account has not enrolled a secondary authentication factor, the middleware terminates the pipeline and returns a 403 Forbidden response. This design maintains the stateless property of the REST API while preventing un-enrolled accounts from using API endpoints, closing the alternate authentication channel. Below is the essential implementation logic of the newly introduced middleware:\n\nphp\n// app/Http/Middleware/EnforceApiTwoFactorEnrollment.php\n$mode = (string) $settings->two_factor_enabled;\nif ($mode !== '1' && $mode !== '2') {\n return $next($request);\n}\n\nif ($mode === '1' && (string) $user->two_factor_optin !== '1') {\n return $next($request);\n}\n\nif ((string) $user->two_factor_enrolled !== '1') {\n return response()->json(\n Helper::formatStandardApiResponse('error', null, trans('auth/message.two_factor.please_enroll')),\n Response::HTTP_FORBIDDEN,\n );\n}\n

Exploitation Methodology

To exploit CVE-2026-63493, an attacker must first obtain the primary username and password of a valid Snipe-IT user account. The attacker sends a POST request containing these credentials to the stateful /login endpoint. Upon receipt of a successful response, the target web application establishes an authenticated session but restricts the browser within the /two-factor execution bubble, preventing standard administrative interactions through the web console.\n\nBecause the /two-factor route is exempted from the blocking middleware to permit TOTP submission, the CreateFreshApiToken middleware runs and places the snipeit_passport_token cookie into the browser's cookie jar. The attacker extracts this cookie alongside the matching CSRF token (XSRF-TOKEN). Armed with these cryptographic elements, the attacker shifts focus away from the stateful web client and addresses the stateless REST API.\n\nThe attacker issues a POST request to /api/v1/account/personal-access-tokens passing the passport cookie and the XSRF token as HTTP headers. Since the API routing group is processed by the auth:api guard and lacks the CheckForTwoFactor check, the application verifies the session validity and generates a persistent Personal Access Token. This token possesses a default longevity of forty years and acts as a long-lived credential, bypassing the web-based MFA requirement entirely.

Impact Assessment

The primary security consequence of this vulnerability is the complete compromise of multi-factor authentication guarantees for any account where the attacker has acquired primary password credentials. This changes the security model from multi-factor to single-factor authentication. If the target account possesses administrative privileges within Snipe-IT, the downstream impacts are significant.\n\nWith a minted Personal Access Token, the attacker gains full programmatic control over the Snipe-IT asset registry, user database, and security configurations. The attacker can manipulate, export, or destroy sensitive asset inventory, hardware data, and proprietary configuration data. This compromise undermines the integrity of internal hardware supply chain records and software license allocations.\n\nFurthermore, the attacker can leverage the administrative API to reset the target account's multi-factor configuration by submitting a POST request to the /api/v1/users/{id}/two_factor_reset endpoint. Once the 2FA state is reset, the attacker can log in through the web interface, register a new attacker-controlled MFA device, and permanently lock out the legitimate system administrator.

Remediation and Detection Guidance

Remediation requires upgrading Snipe-IT instances to version 8.7.0 or higher. This update alters the configuration in app/Http/Kernel.php to register the EnforceApiTwoFactorEnrollment middleware into the API pipeline. This modification ensures that any API request backed by an unenrolled account is rejected with a 403 Forbidden status, neutralizing the capability of password-only sessions to generate tokens.\n\nTo identify potential exploitation, defenders should analyze web server access logs for anomalous transaction sequences. A suspect sequence is characterized by a successful POST to /login, followed by a GET to /two-factor, followed immediately by a POST to the /api/v1/account/personal-access-tokens endpoint. In legitimate usage, the login and MFA verification would occur on the web layer before any API interactions take place.\n\nSecurity teams should audit the database tables for newly created Laravel Passport personal access tokens. Inspect the oauth_access_tokens table for entries created near any suspicious login alerts. Any token generated by an account that had not previously completed MFA registration must be treated as untrusted and revoked immediately.

Official Patches

grokabilityPull Request #19294: Fix 2FA bypass via API token flow

Fix Analysis (2)

Technical Appendix

CVSS Score
8.6/ 10
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

Affected Systems

Snipe-IT

Affected Versions Detail

Product
Affected Versions
Fixed Version
Snipe-IT
grokability
< 8.7.08.7.0
AttributeDetail
CWE IDCWE-288
Attack VectorNetwork (AV:N)
CVSS v4.0 Score8.6 (High)
Exploit StatusProof-of-Concept (PoC) available
EPSS ScoreNot available
CISA KEV StatusNot listed

MITRE ATT&CK Mapping

T1556.006Modify Authentication Process: Multi-Factor Authentication
Credential Access
T1078Valid Accounts
Defense Evasion
CWE-288
Authentication Bypass Using an Alternate Path or Channel

The product provides multiple paths or channels to access a resource, but one of those paths does not require authentication or uses weaker authentication than other paths.

References & Sources

  • [1]GitHub Security Advisory GHSA-hxcx-9h4f-42xx
  • [2]CVE Record CVE-2026-63493

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 1 hour ago•CVE-2026-57232
3.1

CVE-2026-57232: Server-Side Request Forgery in Contao CMS Feed Reader Module

A Server-Side Request Forgery (SSRF) vulnerability exists in the Contao Open Source Content Management System (CMS) within the Feed Reader front-end module. When processing RSS feed configurations, the module initiates outbound HTTP connections using a default HTTP client that lacks loopback and private network controls. Authenticated backend users with permissions to configure frontend modules can exploit this flaw to coerce the server into sending requests to internal endpoints, loopback addresses, and cloud instance metadata services.

Amit Schendel
Amit Schendel
5 views•7 min read
•about 2 hours ago•CVE-2026-63498
8.7

CVE-2026-63498: Stored Cross-Site Scripting via Inline XML Rendering in Snipe-IT API

CVE-2026-63498 is a high-severity Stored Cross-Site Scripting (XSS) vulnerability in Snipe-IT prior to version 8.7.0. The flaw resides in the REST API's file retrieval endpoint, which allows files to be rendered inline without sanitizing or restricting malicious content types like XML and XSLT stylesheets, leading to browser-side script execution in the context of the application's origin.

Amit Schendel
Amit Schendel
3 views•6 min read
•about 3 hours ago•CVE-2026-19730
4.2

CVE-2026-19730: Podman Quadlet Install Non-Truncating Write Retains Removed Host-Access/Security Directives

CVE-2026-19730 is a local security vulnerability in the Podman container engine's Quadlet systemd generator. When updating existing configurations using 'podman quadlet install --replace' on filesystems that do not support reflink operations (such as standard ext4), the file is opened without the O_TRUNC flag. If the new configuration file is shorter than the pre-existing file, the trailing lines of the old file remain intact and are successfully parsed by systemd, leading to a failure to remove security-critical parameters like AddCapability, User, or host storage mounts.

Alon Barad
Alon Barad
4 views•7 min read
•about 20 hours ago•CVE-2026-57576
6.5

CVE-2026-57576: Application-Level Denial of Service via Uncontrolled Resource Consumption in Plone

CVE-2026-57576 is an application-level Denial of Service (DoS) vulnerability in Plone. It resides in the `plone.app.dexterity` and `plone.app.contenttypes` packages, allowing authenticated users with content creation permissions to submit excessively long metadata attributes. Because these fields are stored without length limits and subsequently processed by indexing and rendering engines, they trigger complete server resource exhaustion and thread starvation.

Alon Barad
Alon Barad
8 views•9 min read
•about 21 hours ago•GHSA-8PCW-H6W9-H46G
6.5

GHSA-8PCW-H6W9-H46G: Denial of Service via Uncontrolled Resource Consumption in plone.app.contenttypes

An uncontrolled resource consumption vulnerability in plone.app.contenttypes allows authenticated users to trigger application-level denial of service via oversized filename metadata in file uploads.

Amit Schendel
Amit Schendel
7 views•6 min read
•about 22 hours ago•CVE-2026-61685
7.5

CVE-2026-61685: SQL Injection via Dynamic Query Parameters in ReactPress

An unauthenticated remote SQL injection vulnerability exists in multiple API list endpoints of ReactPress prior to version 3.7.0. The vulnerability stems from unsafe construction of TypeORM QueryBuilder conditions, where untrusted HTTP query parameter keys are interpolated directly into SQL statements as identifiers without sanitization or validation.

Alon Barad
Alon Barad
9 views•9 min read