All vulnerabilities

Servers and applications

GHSA-pj4c-2jrv-552q

Non-admin with users.edit can disable an admin's 2FA opt-in via ungated two_factor_optin on web user update

Severity
Medium 5.4
Published
3 Dec 2026
Last changed
3 Dec 2026
Added to UpHeron
3 Dec 2026
Fixed in
8.8.1
Weakness
Incorrect authorization (CWE-863)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Change some data · Slow it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Sources
Project advisories (GitHub)

Description

The web user-update endpoint in Snipe-IT assigns the two_factor_optin field directly from request input before it reaches the authorization gate that protects every other security-sensitive user field. In app/Http/Controllers/Users/UsersController.php, the assignment at line 310 runs unconditionally, while the canEditAuthFields gate that guards username, email, activated, password, and permissions is not entered until line 341. Any authenticated user who holds the users.edit permission (a common non-admin role for help-desk and asset staff) can therefore send a PUT /users/{id} request that disables an administrator's two-factor opt-in, even though the same request is denied write access to all other protected fields. When the instance runs in optional two-factor mode, this silently removes the second authentication factor from a privileged account.

From grokability/snipe-it's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Snipe-ITServers and applications · github:grokability/snipe-it
  • From 8.4.1 before 8.8.1

About Snipe-IT

A free open source IT asset/license management system

From its GitHub repository.
Docker Hub pulls
30,202,208Docker Hub, 29 Nov 2026
GitHub stars
15,283GitHub, 29 Nov 2026
Forks
4,089GitHub, 29 Nov 2026
Latest release
v8.8.4GitHub, 29 Nov 2026
Released
20 Nov 2026GitHub
License
AGPL-3.0GitHub
First published on GitHub
12 Nov 2013GitHub

References