Horizon Alert
Summary of the vulnerability and why it matters
This advisory concerns a security vulnerability in the Wazuh threat detection platform that could allow an attacker with authenticated access to a cluster peer to overwrite critical configuration files, potentially leading to the execution of arbitrary commands. The core issue lies in how the platform handles file paths during internal cluster communications, allowing for the circumvention of security checks.
- Trusted file paths can be manipulated.
- It impacts secure configuration and command execution.
- Confirm relevance and exposure within your Wazuh clusters.
Attack Path
How an attacker could exploit the issue
An attacker with administrative privileges within a Wazuh cluster could exploit this vulnerability by submitting a crafted archive to a worker node. This archive, by manipulating the `file_path` in `files_metadata.json`, allows the attacker to overwrite critical configuration files like `ossec.conf`. Once the `ossec.conf` is replaced, the attacker can configure the system to execute commands with root privileges, leading to code execution upon service restart.
- Requires privileged cluster access.
- Uploads crafted archive to worker node.
- Leads to root command execution.
Live Threat
Current exploitation, exposure, and threat context
When supported by the advisory, a cluster peer with the shared Fernet key could overwrite security-sensitive files like `ossec.conf`. Replacing this configuration file can lead to the execution of root-level commands after a service reload, potentially resulting in code execution.
- Wazuh configuration files.
-Uploading a crafted archive. -Code execution on the Wazuh server.
Operational Fix
Recommended remediation, mitigation, and detection steps
The Wazuh platform's internal cluster communication is the likely area of impact for this vulnerability. Teams responsible for managing the Wazuh deployment, including infrastructure and security operations, should take the lead. The first step is to identify all Wazuh cluster nodes, verify their configuration and patch status, and then prioritize remediation based on the criticality of the affected components and the potential for compromise.
- Wazuh platform and infrastructure teams.
-Verify cluster peer configuration and Fernet key security. -Plan and apply updates during a maintenance window.