Submit #1076936: MeshCentral 1.2.5 Improper Privilege Managementinfo

TitleMeshCentral 1.2.5 Improper Privilege Management
DescriptionMeshCentral is affected by a privilege escalation vulnerability in the adddeviceuser control command (serverCommandAddDeviceUser in meshuser.js). The granted rights bitmask is validated only with command.rights & 7, which rejects Edit Device Group (1), Manage Users (2) and Manage Computers (4) but leaves Remote Control (8), Agent Console (16) and Remote Command (0x20000) unchecked. The handler also does not verify that the granted rights are a subset of the caller's own rights, nor that the caller is not the grant target. As a result, an authenticated user holding only the "Manage Device Group Users" right on a device group can grant themselves Remote Control and Agent Console rights on the devices in that group, obtaining Terminal, Desktop and Files access and remote command execution as root on those endpoints. The same missing subset check is present in serverCommandAddMeshUser (addmeshuser).
Source⚠️ https://gist.github.com/k4z01/8f9d5ff48577aa2b886575e2bdfc870b
User
 k4z0 (UID 101097)
Submission11/05/2026 20:20 (23 days ago)
Moderation11/28/2026 21:59 (23 days later)
StatusAccepted
VulDB entry445133 [Ylianst MeshCentral up to 1.3.1 meshuser.js serverCommandAddDeviceUser rights privileges management]
Points20

Do you want to use VulDB in your project?

Use the official API to access entries easily!