ADVISORIES

GitHub Advisory Database

GHSA-ch3w-9456-38v3

Netmaker has Privilege Escalation from Admin to Super-Admin via User Update

Details

The user update handler (PUT /api/users/{username}) lacks validation to prevent an admin-role user from assigning the super-admin role during account updates. While the code correctly blocks an admin from assigning the admin role to another user, it does not include an equivalent check for the super-admin role.

> Credits > Artem Danilov (Positive Technologies)

Affected packages

EcosystemPackageAffected versions
Gogithub.com/gravitl/netmaker
All versions before 1.5.0 (fixed in 1.5.0)

References