Privilege escalation to CMS Administrator through user role assignment
Improper authorization in user role management (the UserAjax.updateUserRoles DWR method used by the Users tool, and the POST and PUT /api/v1/users REST endpoints) in dotCMS versions before 26.10.23-02, and 25.07.10 LTS before v23, allows a non-administrator back-end user who has been given the Users tool to grant roles, including CMS Administrator, to their own account, resulting in full administrative access. Through the REST endpoints, a user who also holds the Roles tool could create new administrator accounts. Fixed in 26.10.23-02 and later: adding or removing a user's roles, and creating users, now require the CMS Administrator role.