Test PostgreSQL Sidecar Service Endpoint

Remote code execution (RCE)Discovery

Written with a model's help from “Why Use App-Level Auth When Every Database Has Auth? (Splunk Enterprise CVE-2026-20253 Pre-Auth RCE)” by Piotr Bazydlo on watchTowr Labs. Read the writeup before relying on it.

To test for a vulnerability in the PostgreSQL Sidecar Service Endpoint, send a POST request to the /en-US/splunkd/__raw/v1/postgres/recovery/backup endpoint with a backupFile parameter. The request should be proxied through the main Splunk web application, which listens on all interfaces. If the endpoint is vulnerable, it will create an empty file at the specified location without requiring authentication. Look for a 200 OK response and check the filesystem for the created file. The backupFile parameter can be used to traverse the filesystem and create files at arbitrary locations.

http
POST /en-US/splunkd/__raw/v1/postgres/recovery/backup HTTP/1.1
Host: target.com
Content-Length: 56
Content-Type: application/json
Authorization: Basic Og==
{"database":"search_metadata","backupFile":"../../../../../../../../../tmp/backuptest"}

Follow #file-write, #postgres-sidecar or #splunk-enterprise for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.