Skip to content
Info disclosure Write-up Beginner

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.

banertheinrich Follow

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?

Adham Heinrich, on medium.com

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

  1. Open the forgot password function.
  2. Enter a username instead of an email.
  3. Inspect the request and response in an intercepting proxy.
  4. Observe the account's email reflected in the response.
  5. 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.

More by banertheinrich

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.