When ‘Just a Config Issue’ Becomes a Full Data Breach
An unauthenticated decrypt endpoint returned sensitive personal and health data, and exposed .git and configuration files revealed hardcoded database credentials. An attacker could read, modify or delete all stored data and delete users via another unauthenticated endpoint.
medium.com
Published on medium.com
You don’t need a highly technical exploit to cause real damage. Misconfigurations - like exposed .git directories, public decrypt endpoints, or open databases - can expose sensitive health data and source code in minutes.
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 missing authentication and access restrictions on sensitive endpoints, combined with exposed source and configuration files and hardcoded secrets.
Impact
The issues could expose personal and health information, allow full read/write/delete access to the database, leak source code, and enable data tampering or public leaks.
What the attacker needed
None
The fix
The text recommends rotating all exposed credentials, blocking public decrypt endpoints, denying HTTP access to .git and .env files, disabling directory listing, and restricting database access by IP or VPC.
How it was found
- Find a public endpoint that decrypts and returns user data without authentication.
- Use a user ID from that endpoint to call a delete-user endpoint.
- Access exposed .git and configuration files through directory listing.
- Download the source repository and extract hardcoded credentials.
- Connect to the publicly reachable database using those credentials.
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.
Some parts of this website were left open to anyone on the internet. One page handed back private user details, including health information, without asking for a password. The site also let people download its own source code, which contained the passwords to its database, so anyone could reach all the stored data.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.