Rapid7 Vulnerability & Exploit Database

Splunk Authenticated XSLT Upload RCE

Back to Search

Splunk Authenticated XSLT Upload RCE

Disclosed
11/28/2023
Created
12/12/2023

Description

This Metasploit module exploits a Remote Code Execution (RCE) vulnerability in Splunk Enterprise. The affected versions include 9.0.x before 9.0.7 and 9.1.x before 9.1.2. The exploitation process leverages a weakness in the XSLT transformation functionality of Splunk. Successful exploitation requires valid credentials, typically 'admin:changeme' by default. The exploit involves uploading a malicious XSLT file to the target system. This file, when processed by the vulnerable Splunk server, leads to the execution of arbitrary code. The module then utilizes the 'runshellscript' capability in Splunk to execute the payload, which can be tailored to establish a reverse shell. This provides the attacker with remote control over the compromised Splunk instance. The module is designed to work seamlessly, ensuring successful exploitation under the right conditions.

Author(s)

  • nathan
  • Valentin Lobstein
  • h00die

Platform

Linux,Unix

Architectures

php, cmd

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/unix/http/splunk_xslt_authenticated_rce
msf exploit(splunk_xslt_authenticated_rce) > show targets
    ...targets...
msf exploit(splunk_xslt_authenticated_rce) > set TARGET < target-id >
msf exploit(splunk_xslt_authenticated_rce) > show options
    ...show and set options...
msf exploit(splunk_xslt_authenticated_rce) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;