
Critical Splunk Vulnerability CVE-2024-36991: Patch Now to Prevent Arbitrary File Reads
This is a Proof-of-Concept (PoC) exploit script for CVE-2024-36991, a path traversal vulnerability affecting Splunk Enterprise on Windows versions below:
The vulnerability allows unauthenticated attackers to access sensitive files on the server by exploiting a path traversal flaw in the Splunk web interface.
Severity: Critical
Impact: Arbitrary File Read
To run the exploit, use the following commands:

# Using Python3
python3 exploit.py -u http://victim.com -s 1
# Running directly
./exploit.py -u http://victim.com -s 1
-u, --url: The base URL of the target Splunk server.-s, --section: Select the section to enumerate (1-5):Credentials & Secrets:
/etc/passwd/etc/auth/splunk.secret/etc/auth/server.pem/var/run/splunk/session/etc/system/local/authentication.confConfiguration Files:
/etc/system/local/web.conf/etc/system/local/inputs.confLogs & History:
/var/log/splunk/splunkd.log/var/log/splunk/audit.log/var/log/splunk/metrics.log/var/log/splunk/searches.log/var/run/splunk/dispatchTo protect your Splunk server:
This exploit is for educational and authorized penetration testing purposes only. Unauthorized use is illegal and unethical. The author takes no responsibility for misuse.
System & Service Files:
/bin/splunk.exe/bin/splunkd.exe/etc/system/default/server.conf/etc/system/default/user-seed.conf/var/lib/splunk/persistentstorage.dbApps & Custom Scripts:
/etc/apps/Splunk_TA_windows/bin/etc/apps/Splunk_TA_nix/bin/etc/apps/SplunkForwarder/local/etc/apps/Splunk_SA_CIM/local