Skip to content
Info disclosure Write-up Beginner

How to Discover and Dump Data from Exposed Elasticsearch Instance

Many Elasticsearch servers are exposed on the internet without authentication, allowing anyone to read their indices. An attacker can list indices and dump sensitive records such as user data, API keys and logs.

Omarataallah Follow

Published on medium.com

Hello Cyber Security community, this is Omar and i think that you’d be surprised how many exposed Elasticsearch servers are still out there. A simple misconfiguration can leave tons of sensitive data — like user info, API keys, and internal logs — wide open to the internet.

Omarataallah, 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 Elasticsearch service was left reachable on its default port with no authentication configured.

Impact

An unauthenticated attacker could read sensitive data such as user information, API keys and internal logs from the exposed server.

What the attacker needed

An exposed Elasticsearch server; network access to port 9200

The fix

The Elasticsearch instance should be protected with authentication and not exposed directly to the internet.

How it was found

  1. Search for exposed Elasticsearch servers using security search engines and the default port.
  2. Send a GET request to the server root to check whether it responds without authentication.
  3. List all indices to see what data is stored.
  4. Install the elasticdump tool.
  5. Run elasticdump against a chosen index to save its records to a local file.

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.

Elasticsearch is a database that stores and searches data. Some servers are set up so that anyone on the internet can read them without logging in. This article explains how to find such servers and download a small sample of their data to prove the problem.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.