Summary
CVE-2026-124590 is an improper authorization vulnerability in the library_manager_system application. A remotely initiated request that manipulates user-related fields may bypass or confuse authorization checks, potentially allowing actions that the requester should not be permitted to perform.
Affected context
The reported issue involves the BookController.addBook function, associated with src/main/java/com/zbw/controller/UserController.java. It concerns manipulation of userName, userPwd, userEmail, or userId; the risk depends on whether the affected endpoint is reachable and how the application validates identity and permissions.
Exploit preconditions
- Attack surface: A remotely reachable application request handled by the affected function.
- Required access: The report does not establish whether authentication is required; access to the endpoint and its relevant request fields is necessary.
- Trigger point: Processing of user-related arguments by the
addBookoperation. - Why exploitation may be possible: Authorization decisions may not be reliably tied to the authenticated caller and the requested operation.
Why this happens
The reported behavior is consistent with an authorization check that does not correctly verify whether the requester is permitted to perform the requested action. This maps to CWE-285: Improper Authorization. The related CWE-266: Incorrect Privilege Assignment may also apply if user-controlled identity or account fields affect the privileges used for the operation.
Potential impact
- A requester may be able to perform actions outside their intended permissions.
- User or application data may be accessed or changed without proper authorization.
- The issue could enable actions to be associated with an unintended user identity.
- Further impact may depend on the endpoint's privileges and the application's access controls.
General mitigation guidance
Defensive approaches generally focus on making authorization explicit and independent of user-controlled request fields.
- Derive the caller's identity from trusted authentication context rather than submitted identity fields.
- Check permissions for each operation and resource on the server side.
- Allowlist fields clients may modify and keep sensitive identity or privilege fields server-controlled.
- Apply least privilege to application components and accounts.
- Use consistent authorization policies and deny access by default when permission cannot be established.
How teams detect issues like this
Review controller and service-layer code for authorization decisions based on request-supplied user identifiers or profile fields. Use static analysis and code review checks to flag missing permission checks, insecure direct object references, and client-writable identity or privilege attributes. Enforce policy tests that verify users cannot perform operations on behalf of other accounts or access resources outside their permissions.

