Summary
A flaw in the Wazuh dashboard proxy can let an authenticated dashboard user override the Authorization header used for requests to the Manager API. If the proxy accepts a user-supplied nested header value, the request may use another Manager API identity or reach the upstream API without the server-side session token.
Affected context
The issue affects Wazuh dashboard plugins in versions 4.9.0 before 4.14.9 when requests pass through the /api/request proxy endpoint. It becomes risky when the proxy allows client-controlled body.headers.Authorization values to replace the server-side session Bearer token rather than enforcing the authenticated user's identity and permissions.
Exploit preconditions
- Attack surface: The dashboard's
/api/requestproxy endpoint and its upstream Manager API requests - Required access: An authenticated dashboard account; the description does not specify that administrative privileges are required
- Trigger point: The proxy processes a request containing a nested
body.headers.Authorizationvalue - Why exploitation is possible: User-controlled input can override the server-side Authorization header, potentially changing or removing the identity used for the upstream request
Why this happens
The proxy fails to enforce authorization boundaries when constructing upstream requests: it accepts a client-controlled Authorization header where a trusted server-side session token should remain authoritative. This is an authorization enforcement weakness, mapping to CWE-863: Incorrect Authorization. More generally, security-sensitive identity and access-control data should not be overrideable through untrusted request fields.
Potential impact
- An authenticated user could act as another Manager API identity if they can supply or obtain an acceptable credential
- Requests could reach the upstream API without the intended server-side session token
- The Manager API could expose or modify data beyond the user's intended permissions
- The issue could enable further compromise depending on the upstream API's authorization controls
General mitigation guidance
Defensive patterns include keeping upstream identity and authorization decisions under server control, and rejecting or stripping client-supplied Authorization values before proxying requests. Use an explicit allowlist of permitted headers and request fields, enforce authorization for each upstream operation, and avoid granting the proxy broader Manager API privileges than it needs. Treat nested request data as untrusted and apply least privilege to both dashboard users and service identities.
How teams detect issues like this
Review proxy code for paths where request-body fields can influence security-sensitive upstream headers, especially Authorization. Use static analysis and code review checks to flag header merges involving untrusted input, and verify that proxy policies explicitly allowlist forwarded headers. Monitor proxy and Manager API audit logs for unexpected identity changes, missing authorization context, or requests inconsistent with the authenticated dashboard user's permissions. Automated code review tools may help identify unsafe header-handling patterns.

