Summary
Nexterm's group membership endpoints can allow a user with permissions.manage to add their own account to custom groups without the required authorization check. If those groups grant permissions beyond the caller's authority, the user may gain elevated capabilities such as impersonating users or accessing backups.
Affected context
The issue affects Nexterm through 1.2.2-BETA in the addGroupMember and setUserGroups operations. Risk arises when a user with permissions.manage can change group membership and the requested group grants permissions the caller is not authorized to assign.
Exploit preconditions
- Attack surface: Nexterm group membership endpoints
- Required access: An account with
permissions.manageand access to the relevant endpoints - Trigger point: Changing group membership for the caller's own account
- Why exploitation is possible: The affected operations lack a
grantsBeyondCallercheck, so group permissions may exceed the caller's authorization
Why this happens
The underlying issue is an authorization failure in group membership management. The affected operations do not verify that the caller is permitted to grant all permissions associated with a group, mapping to CWE-269: Improper Privilege Management. As a result, a user with group-management access may be able to assign themselves permissions beyond their intended authority.
Potential impact
- A user could gain permissions beyond those assigned to their account
- Elevated access may enable user impersonation
- Sensitive settings or backups could be accessed
- Unauthorized group changes could weaken access boundaries
General mitigation guidance
Defensive patterns focus on enforcing authorization at every group-membership change.
- Check that the caller is authorized to grant every permission inherited from the target group
- Apply consistent authorization checks across all endpoints that modify group membership
- Use secure-by-default group permissions and limit powerful capabilities to narrowly scoped roles
- Reduce reliance on user-controlled group assignments and restrict who can modify membership
- Run application components with only the privileges required for their responsibilities
How teams detect issues like this
Review group-management code for authorization checks that compare the permissions being granted with the caller's authority.
- Use static analysis or code review to identify membership-changing operations without consistent authorization guards
- Inspect API policies and tests for self-assignment to groups with higher privileges
- Monitor audit logs for unexpected group membership changes or newly granted sensitive permissions
- Enforce centralized authorization policies for permission grants across endpoints

