Bug Bounty Hunting with Censys: Finding an Unsecured Elasticsearc
An Elasticsearch instance belonging to a bug bounty program was publicly accessible without authentication. An attacker could read, write, or delete data stored in the database.
Published on osintteam.blog
During a bug bounty reconnaissance using Censys search, I discovered an exposed Elasticsearch instance belonging to a live program with no authentication enabled. This misconfiguration could allow attackers to access sensitive data, modify records, or even take control of the database.
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 instance was deployed without authentication enabled and exposed directly to the internet.
Impact
An attacker could read, modify, or delete all data in the exposed Elasticsearch instance, leading to data leakage, manipulation, or full database wipeout.
What the attacker needed
Elasticsearch exposed to internet; No authentication on Elasticsearch
The fix
The exposed Elasticsearch instance was patched by the organisation after the report.
How it was found
- Search Censys for subdomains using the target's domain in TLS certificate names.
- Filter Censys results to show only Elasticsearch services.
- Access the Elasticsearch search endpoint to read all data.
- Send a PUT request to create a new record.
- Send a DELETE request to remove a record.
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 often used to store and search large amounts of data. If it is left open to the internet without a password, anyone can read, change, or delete everything inside. This report found such an open database and showed how easy it is to access.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.