CVE-2026-49870
JSON

5.9medium

Snipe-IT: TOTP Brute-Forceable Due to Missing Rate Limiting on `POST /two-factor`

Severity
5.9medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.32% (higher than 26% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-mr8g-2mj4-pcq2

Description

Snipe-IT is an IT asset/license management system. Prior to 8.6.1, POST /two-factor has no rate limiting, lockout, or attempt counter, allowing an attacker with valid credentials to submit unlimited TOTP guesses against the three accepted codes created by config/google2fa.php window=1. A successful guess creates a fully authenticated session. When two_factor_enabled is 1, POST /account/profile with two_factor_optin=0 can disable two-factor authentication without OTP reverification, while required mode 2 prevents that opt-out. An administrator can also use POST /api/v1/users/two_factor_reset to clear another user's secret. This issue is fixed in version 8.6.1.

Affected

Product or packageVersionsReported by
grokability snipe-it< 8.6.1CVE List
snipe/snipe-it (Packagist)before 8.6.0GitHub Advisory Database
snipeitapp snipe-itbefore 8.6.1NVD

All scores

GitHub_M5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N
GitHub5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N

Classification

CWE-770

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Snipe-IT is an IT asset/license management system. Prior to 8.6.1, POST /two-factor has no rate limiting, lockout, or attempt counter, allowing an attacker with valid credentials to submit unlimited TOTP guesses against the three accepted codes created by config/google2fa.php window=1. A successful guess creates a fully authenticated session. When two_factor_enabled is 1, POST /account/profile with two_factor_optin=0 can disable two-factor authentication without OTP reverification, while required mode 2 prevents that opt-out. An administrator can also use POST /api/v1/users/two_factor_reset to clear another user's secret. This issue is fixed in version 8.6.1.

GitHub Advisory Database
Impact

POST /two-factor had no rate limiting, lockout, or attempt counter. An attacker with valid credentials can submit unlimited TOTP guesses. The TOTP implementation accepts the current code plus one step on either side (config/google2fa.php window=1), so at any instant 3 of 1,000,000 codes are accepted.

After a correct guess the attacker holds a fully authenticated session. If the instance is configured with 2FA in optional mode (two_factor_enabled='1'), the attacker can additionally disable 2FA via POST /account/profile with two_factor_optin=0. No OTP re-verification is required. The account is then accessible with the password alone on future logins. If 2FA is in required-for-all mode (='2'), the per-user opt-out path is closed and the impact stops at session-level account takeover. For an admin target, POST /api/v1/users/two_factor_reset additionally clears another user's 2FA secret.

Patches

Patched in v8.6.0

NVD (es)

Snipe-IT es un sistema de gestión de activos/licencias de TI. Anterior a la versión 8.6.1, POST /two-factor no tiene limitación de velocidad, bloqueo o contador de intentos, permitiendo a un atacante con credenciales válidas enviar intentos ilimitados de TOTP contra los tres códigos aceptados creados por config/google2fa.php window=1. Un intento exitoso crea una sesión completamente autenticada. Cuando two_factor_enabled es 1, POST /account/profile con two_factor_optin=0 puede deshabilitar la autenticación de doble factor sin reverificación de OTP, mientras que el modo requerido 2 evita esa exclusión voluntaria. Un administrador también puede usar POST /api/v1/users/two_factor_reset para borrar el secreto de otro usuario. Este problema está solucionado en la versión 8.6.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-49870 changed 2026-08-21CVE Terms of Use
GitHub Advisory DatabaseGHSA-mr8g-2mj4-pcq2 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-49870 changed 2026-10-24Public domain