Description
mappy.py in Splunk Web in Splunk 4.2.x before 4.2.5 does not properly restrict use of the mappy command to access Python classes, which allows remote authenticated administrators to execute arbitrary code by leveraging the sys module in a request to the search application, as demonstrated by a cross-site request forgery (CSRF) attack, aka SPL-45172.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Splunk Search Remote Code Execution
exploit/multi/http/splunk_mappy_exec
Exploit-DB 1
- Splunk - Remote Command Execution EDB-18245 · remote · Dec 15, 2011 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- http://www.splunk.com/view/SP-CAAAGMM
- 1026451 vdb-entry
- http://www.sec-1.com/blog/?p=233
- 47232 third-party-advisory
- http://www.sec-1.com/blog/wp-content/uploads/2011/12/Attacking_Splunk_Release.pdf
- 18245 exploit