Horizon Alert
Summary of the vulnerability and why it matters
This advisory details a security vulnerability in the Wazuh platform, specifically within its distributed API component. The issue allows a compromised cluster peer to potentially access sensitive system files, including private keys, which could then be used to forge administrative tokens and gain unauthorized control. The main concern is confirming relevance and exposure given the specific operational context.
- A flaw could expose sensitive system files.
- It enables unauthorized administrative control.
- Confirm relevance and exposure of Wazuh deployments.
Attack Path
How an attacker could exploit the issue
An attacker with administrative access to a Wazuh cluster peer can leverage a path traversal vulnerability in the `send_tmp_file()` function. By manipulating the `tmp_file` parameter, they can trick the master node into returning the content of any readable file. If the attacker obtains the private key for the cluster, they can forge administrator tokens to gain full control over the API.
- Requires a cluster peer with administrative access.
- Triggered by crafting a malicious file path.
- Allows forging admin tokens and full API control.
Live Threat
Current exploitation, exposure, and threat context
When supported by the advisory, a Wazuh cluster peer could use path traversal to trick the master into returning sensitive files. If the master returns the private key, a peer could forge administrator API tokens offline to gain administrative privileges.
- Sensitive files from the Wazuh master.
- Path traversal to read arbitrary files.
- Unauthorized administrative access and control.
Operational Fix
Recommended remediation, mitigation, and detection steps
This critical vulnerability in Wazuh's DistributedAPI could allow a cluster peer to gain administrative privileges by reading sensitive files. Ownership likely falls to the platform or infrastructure team managing the Wazuh deployment, requiring coordination with security teams. The first practical step is to identify all cluster peers, confirm their reachability within the internal network, and assess the criticality of the affected Wazuh instances.
- Platform/infrastructure team owns remediation.
- Verify all cluster peer configurations.
- Plan internal patching or access control.