Splunk RCE Through Arbitrary File Write to Windows System Root
A low-privileged Splunk user could create an app through the Application Manager API and have files written to a critical Windows system directory, which could then be executed as code. The text claims this leads to remote code execution, mainly when Splunk is installed on a drive other than the system drive.
medium.com
Published on medium.com
Bu saldırı, Splunk Enterprise’ın Windows tabanlı sürümlerinde bulunan bir güvenlik açığını hedef alarak, düşük yetkili bir kullanıcının sistemin kök dizinine dosya yazmasına olanak tanıyor ve potansiyel olarak uzaktan kod çalıştırma (RCE) imkanı sağlıyor.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely weak session and authorisation handling in the Splunk Application Manager API lets a low-privileged user create an app whose files are written to a system directory outside Splunk's own install path.
Impact
A successful attack could give an attacker full control of the host through remote code execution and enable lateral movement, though the text rates the overall likelihood as low to medium.
What the attacker needed
A low-privileged Splunk account; Splunk installed on a non-system drive; Windows-based Splunk Enterprise
The fix
Splunk Enterprise should be upgraded to the latest version, write access to system root directories should be restricted for low-privileged users, and session management settings should be reviewed.
How it was found
- Send a request to the app creation endpoint to start creating an application.
- The Application Manager records the app creation event and the malicious app is uploaded.
- The uploaded file is written to the system root directory, which is easier when Splunk is on another drive.
- The written file is executed, giving remote code execution on the target.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Splunk is a tool that collects and searches log data, and it lets users install small add-on programs called apps. The report says a user with only basic permissions could make Splunk save a file into a protected Windows folder, and anything saved there can be run as a program. That would let the user run their own code on the server, which is called remote code execution.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.