Skip to content
SSRF Write-up Advanced

From recon to AWS and DB credentials leaked

An Apache Solr endpoint exposed a stream.url parameter that allowed server-side requests to internal resources. By combining it with stream.contentType, the researchers forced Solr to parse fetched data and leak AWS credentials and database connection strings through error messages.

pr1vacyS1ck Follow

Published on medium.com

Hi everyone, it’s me pr1vacy from Abyssal Hunter. Today, I’m sharing a write-up on how I turned my recon phase into an AWS and DB credentials leak with a CVSS 10.0 impact on Intigriti.

pr1vacy, on medium.com

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 the Solr endpoint allowed remote streaming via stream.url and let the client control stream.contentType, so fetched internal data was parsed and echoed back in error messages.

Impact

An attacker could read AWS credentials and database connection strings, though the technique requires remote streaming to be enabled through a misconfiguration.

What the attacker needed

Solr endpoint reachable; remote streaming enabled; attacker controls stream parameters

How it was found

  1. Find the test subdomain and an exposed Solr admin ping endpoint through recon and dorking.
  2. Discover the stream.url parameter and confirm it behaves as a blind SSRF.
  3. Read the Solr documentation and combine stream.url with stream.contentType.
  4. Force the content type so Solr parses the fetched data and leaks it through error messages.
  5. Read AWS credentials and Solr configuration files containing database connection strings.

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.

A server-side request forgery (SSRF) bug lets an attacker make the server fetch a URL of their choosing, including internal addresses the attacker cannot reach directly. Here the search engine Solr could be told to fetch a remote URL and also to treat the response as a chosen format, so error messages revealed secrets such as cloud keys and database passwords.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.