Easy logic bug that leaks the email for every user
The password reset function accepted a username and returned the account's email address in the response. An attacker could submit any username and read back the associated email, leaking addresses for every user.
Published on medium.com
After understanding the website , I tried the forget password function , it asks me for email or username (focus on username because the trick is here) , when I enter the email , the forget password link comes to me easily , but If I enter the username?
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 reset endpoint echoed the looked-up account email back in the response instead of only sending the reset link by email.
Impact
An attacker could disclose the email address linked to any username, which aids phishing and account enumeration.
What the attacker needed
Knowledge of a username; access to the reset form
The fix
The reset endpoint should not return the account email in its response; it should give a generic confirmation regardless of input.
How it was found
- Open the forgot password function.
- Enter a username instead of an email.
- Inspect the request and response in an intercepting proxy.
- Observe the account's email reflected in the response.
- Try another username and see its email reflected too.
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 password reset form usually asks for an email or username so it can send a reset link. Here, when you typed a username, the server's reply included that person's email address. Because anyone can type any username, anyone could look up the email behind any account.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.