A weird bug that leaked PII
The authentication endpoint returned private user information when the password field was omitted from the login request. An attacker could obtain another user's personal data by sending a login request with only the email address.
Published on medium.com
Hello guys, I’m back again with a bug that I want to share with you all. I was working on this program and its functionality when I encountered a bug for the first time.
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 server treated a missing password as a valid login attempt and returned user data without verifying the password.
What the attacker needed
A valid email address of a target user; ability to send a modified login request
How it was found
- Capture the login request that contains both username and password.
- Remove the password field and its value from the JSON body.
- Send the modified request and observe the response containing private user information.
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.
When you log in, the server checks your username and password. Here, if you left out the password entirely, the server still sent back the user's private details instead of refusing the request. That means anyone who knows an email address could see that person's information.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.