Summary
Wukong AICRM contains missing authorization checks on user, role, department, and agent administration APIs. Any authenticated user may be able to reset an administrator account's password and assign themselves the "all" role, resulting in administrator account takeover.
Wukong AICRM contains missing authorization checks on user, role, department, and agent administration APIs. Any authenticated user may be able to reset an administrator account's password and assign themselves the "all" role, resulting in administrator account takeover.
Affected context
The vulnerability occurs in Wukong AICRM deployments where authenticated users can reach administrative API endpoints without a server-side check confirming that they hold administrator privileges. The affected behavior includes administration operations such as updating users, changing roles, and modifying organizational or agent records.
The vulnerability occurs in Wukong AICRM deployments where authenticated users can reach administrative API endpoints without a server-side check confirming that they hold administrator privileges. The affected behavior includes administration operations such as updating users, changing roles, and modifying organizational or agent records.
Exploit preconditions
- Attack surface: HTTP administration APIs exposed by the Wukong AICRM application
- Required access: A valid authenticated user account
- Trigger point: Requests to user, role, department, or agent administration endpoints, including the user update operation
- Why exploitation is possible: The server processes privileged actions without verifying that the authenticated caller has the required administrator authorization
- Attack surface: HTTP administration APIs exposed by the Wukong AICRM application
- Required access: A valid authenticated user account
- Trigger point: Requests to user, role, department, or agent administration endpoints, including the user update operation
- Why exploitation is possible: The server processes privileged actions without verifying that the authenticated caller has the required administrator authorization
Why this happens
The underlying bug is a missing server-side authorization decision for privileged management operations. Authentication establishes that a caller is signed in, but the application does not consistently verify the caller's role or permissions before changing account credentials and privilege assignments. This maps to CWE-862, Missing Authorization, where access-control checks are absent for a protected resource or operation.
The underlying bug is a missing server-side authorization decision for privileged management operations. Authentication establishes that a caller is signed in, but the application does not consistently verify the caller's role or permissions before changing account credentials and privilege assignments. This maps to CWE-862, Missing Authorization, where access-control checks are absent for a protected resource or operation.
Potential impact
- An authenticated user could reset an administrator account's password
- An attacker could assign themselves broad administrative privileges
- Administrative control of the application could be lost
- User, role, department, and agent data could be modified or deleted
- The application could be used to affect connected business workflows
- An authenticated user could reset an administrator account's password
- An attacker could assign themselves broad administrative privileges
- Administrative control of the application could be lost
- User, role, department, and agent data could be modified or deleted
- The application could be used to affect connected business workflows
General mitigation guidance
Mitigation generally focuses on enforcing authorization centrally and consistently for every privileged API operation. Secure-by-default designs should deny administrative actions unless an explicit, server-validated permission is present; authorization should be based on trusted server-side identity and role data rather than client-supplied fields. Separate sensitive account-recovery and role-management privileges, apply least privilege, and require stronger controls for administrator changes where appropriate. Authorization policies should also be tested for every administrative route and applied consistently across equivalent API paths.
Mitigation generally focuses on enforcing authorization centrally and consistently for every privileged API operation. Secure-by-default designs should deny administrative actions unless an explicit, server-validated permission is present; authorization should be based on trusted server-side identity and role data rather than client-supplied fields. Separate sensitive account-recovery and role-management privileges, apply least privilege, and require stronger controls for administrator changes where appropriate. Authorization policies should also be tested for every administrative route and applied consistently across equivalent API paths.
How teams detect issues like this
Detection approaches include static and semantic analysis for administrative handlers that lack permission checks, code review searches for role or privilege updates without an authorization decision, and route-policy comparisons to identify unprotected management endpoints. Runtime monitoring can flag ordinary users invoking administrative APIs, password resets on privileged accounts, unexpected role assignments, and changes to the "all" role. Policy enforcement in CI can require explicit authorization annotations or centralized middleware for sensitive routes, while automated review tools may help identify missing checks.
Detection approaches include static and semantic analysis for administrative handlers that lack permission checks, code review searches for role or privilege updates without an authorization decision, and route-policy comparisons to identify unprotected management endpoints. Runtime monitoring can flag ordinary users invoking administrative APIs, password resets on privileged accounts, unexpected role assignments, and changes to the "all" role. Policy enforcement in CI can require explicit authorization annotations or centralized middleware for sensitive routes, while automated review tools may help identify missing checks.

