Skip to content
Info disclosure Write-up Beginner

Email Enumeration melalui Endpoint POST /api/passwordReset/?h=

The password reset endpoint returned different responses for registered and unregistered email addresses, letting an outsider confirm whether an email is in the system. An attacker could use this to build a list of valid accounts for phishing or credential stuffing.

medium.com

Published on medium.com

Email enumeration merupakan celah keamanan yang memungkinkan pihak luar mengetahui apakah sebuah alamat email terdaftar pada sistem, hanya dengan mengamati perbedaan respons dari server. Meskipun sering dianggap sebagai temuan minor, celah ini tetap berpotensi dimanfaatkan untuk serangan lanjutan seperti phishing…

MostReal, 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 looked up the email and returned a not-found error when no account matched, instead of always returning the same generic message.

What the attacker needed

No account needed; ability to send HTTP requests

The fix

The reset endpoint should return one uniform message for every request, whether or not the email is registered.

How it was found

  1. Send a password reset request with an email address that is not registered.
  2. Observe the not-found error response returned by the server.
  3. Send the same request with an email address that is registered.
  4. Observe that the response has no error, showing the address exists.

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 ask a website to reset your password, it should not reveal whether an email address has an account. Here, the server replied with an error for unknown emails but a normal empty response for known ones, so anyone could check addresses one by one. That list can then be used to target people with fake login pages or to try leaked passwords.

What is Info disclosure?

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

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.