A password file left open on the site: what to do in the first hour
If a file with the database and mail passwords downloads from the site address, someone may already have taken it. Rotate the secrets first, then see who managed to sign in.
A settings file often sits next to the site on the host: the database password, a mail key, payment access. The server needs it. A visitor does not. A configuration mistake serves it like an ordinary page. This is not a rare attack. It is a forgotten setting that both robots and people later find.
The first hour matters more than a pretty report. The file is closed to the public. The secrets that were in it count as known and get changed: the database, mail, APIs, the payment key. The old password is not kept "just in case". Then you look at whether it was used to enter the admin panel and whether a stranger appeared as a user. Downloading the file in bulk and forwarding it in a chat is a bad idea: you multiply the secret.
So a deploy does not bring it back
- The settings file does not sit in a folder the web server serves as pages.
- Service folders and old copies of the site do not open by a direct link.
- The build does not publish to production what lived only on a developer's computer.
- After a password change, the backup you restore from is updated too. Otherwise a rollback brings the secret back.
In this situation Lexora works as incident response if the file was already reachable, and as an audit if you want to check whether anything else nearby is exposed. The basic audit is free for new clients, but an open password file is not "basic hygiene for next week". A pentest after the rotation is useful to see whether a way in that the file only hinted at is still there.
Related Lexora services
Does a settings file open from the site?
Close the download and write to us. We will say which secrets to rotate before the review.