Summary
Map-OS has a privilege escalation vulnerability in its REST users API that can let an operator with the cUsuario permission bypass permission-delegation and super-administrator protections. Depending on the request, an attacker with that access may assign the Administrator group, reset the super administrator's password, or delete higher-privileged users.
Affected context
The issue occurs in the Map-OS REST users API at /api/v1/usuarios. It may affect deployments where an operator with the cUsuario permission can send user-management requests without the API consistently enforcing delegation rules and protections for super-administrator accounts.
Exploit preconditions
- Attack surface: The REST users API at
/api/v1/usuarios - Required access: An account with the
cUsuariopermission - Trigger point: A POST, PUT, or DELETE request to the users API
- Why exploitation is possible: The API may not enforce permission-delegation and super-administrator protections for these operations
Why this happens
This is an improper privilege management issue, mapped to CWE-269. The API permits a user-management operation without adequately checking whether the caller is authorized to grant the requested role or modify the target account. As a result, an operator's effective authority may exceed the intended permission boundary.
Potential impact
- An attacker may assign the Administrator group to an account.
- An attacker could reset the super administrator's password.
- Higher-privileged users may be deleted.
- Unauthorized account changes can compromise administrative control of the application.
General mitigation guidance
Defensive approaches focus on consistently enforcing authorization at the server-side operation boundary.
- Apply deny-by-default authorization checks to every user-management action.
- Verify that the caller may grant each role and modify each target account, especially protected administrator accounts.
- Use secure-by-default role and delegation policies that prevent privilege increases beyond the caller's authority.
- Minimize the permissions granted to operator accounts and limit access to administrative API functions.
- Treat client-supplied roles and account attributes as untrusted, and validate them against server-side policy.
How teams detect issues like this
- Review API handlers and authorization middleware for POST, PUT, and DELETE operations on user accounts.
- Use static analysis or code review checks to identify role changes and account mutations that lack server-side authorization checks.
- Monitor audit logs for unexpected Administrator-group assignments, super-administrator password resets, or deletion of privileged users.
- Enforce policy checks that prevent operators from modifying accounts or assigning roles above their authorized scope.

