1
1
## Vulnerable Application
2
2
Wazuh is a free and open source platform used for threat prevention, detection, and response.
3
3
Starting in version ` 4.4.0 ` and prior to version ` 4.9.1 ` , an unsafe deserialization vulnerability allows for remote code
4
- execution on Wazuh servers. DistributedAPI parameters are a serialized as JSON and deserialized using ` as_wazuh_object ` in
4
+ execution on Wazuh servers. DistributedAPI parameters are serialized as JSON and deserialized using ` as_wazuh_object ` in
5
5
` /var/ossec/framework/wazuh/core/cluster/common.py ` . If an attacker manages to inject an unsanitized dictionary in DAPI
6
6
request/response, they can forge an unhandled exception (` __unhandled_exc__ ` ) to evaluate arbitrary python code.
7
7
The vulnerability can be triggered by anybody with API access (compromised dashboard or Wazuh servers in the cluster) or,
@@ -16,25 +16,9 @@ See also this [attackerkb article](https://attackerkb.com/topics/piW0q4r5Uy/cve-
16
16
### Installation steps to install the Wazuh Server application
17
17
* Install ` Docker ` on your preferred platform.
18
18
* Here are the installation instructions for [ Docker Desktop on MacOS] ( https://docs.docker.com/desktop/install/mac-install/ ) .
19
- * Create a empty directory (` wazuh-docker ` ).
20
- * Create the ` generate-indexer-certs.yml ` file in the directory.
21
- ``` yaml
22
- # Wazuh App Copyright (C) 2017, Wazuh Inc. (License GPLv2)
23
- version : ' 3'
24
-
25
- services :
26
- generator :
27
- image : wazuh/wazuh-certs-generator:0.0.2
28
- hostname : wazuh-certs-generator
29
- volumes :
30
- - ./config/wazuh_indexer_ssl_certs/:/certificates/
31
- - ./config/certs.yml:/config/certs.yml
32
- ` ` `
33
- * Run the certificate creation script.
34
- ` ` `
35
- docker-compose -f generate-indexer-certs.yml run --rm generator
36
- ```
37
- * Create the following ` docker-compose.yml ` file in the directory. This will automatically create a Wazuh server multi-node cluster.
19
+ * Follow the steps to install [ Wazuh multi-node] ( https://documentation.wazuh.com/current/deployment-options/docker/wazuh-container.html ) .
20
+ * Change the ` docker-compose.yml ` file in the ` multi-node ` directory by adding the line ` - "56000:55000" ` to the ports configuration
21
+ * of the wazuh.worker section to expose port ` 55000 ` to the outside world on port ` 56000 ` .
38
22
* You can modify the ` 4.8.2 ` version in the ` yml ` file to pull different versions.
39
23
``` yaml
40
24
# Wazuh App Copyright (C) 2017, Wazuh Inc. (License GPLv2)
0 commit comments