When a Debug Log Hands Out Every Password You Type
The login route logged submitted passwords in plaintext, and a hidden SIEM dashboard with default credentials exposed those logs. An attacker could read every password typed into the login form.
Published on medium.com
You’re going to chain two sloppy mistakes: a login route that logs passwords in plaintext, and a hidden SIEM dashboard still running on default credentials. Put them together and you can read every password users submit.
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 a debug logging statement wrote credentials in cleartext, and the log viewer was protected only by default credentials and obscurity.
Impact
Every password typed into the login form could be read by anyone who found the dashboard.
What the attacker needed
Local instance of the app; network access to the app; directory brute-forcing tool
The fix
The text recommends never logging credentials, redacting sensitive fields, treating logs as sensitive data, and putting real authentication on internal tools.
How it was found
- Submit a login attempt and observe the POST request to the login API.
- Brute-force directories to find hidden pages.
- Discover the monitoring path and then the SIEM subpath.
- Open the SIEM dashboard and log in with default credentials.
- Trigger a login attempt to generate a log entry.
- Read the log entry on the dashboard to see the plaintext password.
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.
A login page was quietly writing down every password people typed into a log file. A separate monitoring page, meant only for staff, was left with a default username and password and could be found by guessing web addresses. Anyone who found that page could read all the passwords.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.