Write-Up — Telegram Anonymous Chat Hack Bot
An Elasticsearch instance used by a Telegram anonymous chat bot was exposed on its default port without authentication, allowing anyone to read stored user data including numeric IDs, message content, usernames and phone numbers. The author extracted this data using curl.
An anonymous Telegram chat bot is a bot that allows users to chat anonymously with others on Telegram. These bots are typically designed to connect individuals without revealing their usernames or personal information.
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 exposed to the internet on its default port without authentication or access controls.
Impact
An attacker could read sensitive user data such as numeric IDs, message content, usernames and phone numbers from the exposed database.
What the attacker needed
Elasticsearch exposed on port 9200; no authentication required
How it was found
- Test an address by appending port 9200 to see if Elasticsearch is reachable.
- Access the Elasticsearch index and observe stored user information.
- Use curl to extract the data and save it as a JSON 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 often used for searching. If it is left open on its default port without a password, anyone who finds it can read everything inside. Here, the bot stored private chat data in such an open database, so the author could download it.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.