GHSA-ch3w-9456-38v3
Netmaker has Privilege Escalation from Admin to Super-Admin via User Update
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Go | github.com/gravitl/netmaker | < 1.5.0 | 1.5.0 |
Details
As written in the advisory (Markdown source, shown as plain text).
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)
References
External links from the advisory. They lead to third-party sites.