Skip to content
Info disclosure Write-up Beginner

# ️‍♂️ The Day I Uncovered a Hidden Account Enumeration B

The authentication endpoint returned different error messages depending on whether an email address was registered, allowing an attacker to enumerate valid accounts without authentication. This could enable targeted phishing and credential stuffing.

Abdulbar Follow

Published on medium.com

During a routine security assessment of a major platform, I noticed something subtle but significant. While testing authentication endpoints, certain API responses differed based on whether an email address was registered or not.

Abdulbar, 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 authentication endpoint used distinct error messages for non-existent versus existing accounts, rather than a single generic message.

Impact

An attacker could verify email addresses at scale, build targeted user databases, and identify active accounts for phishing or credential stuffing; the text notes no rate limiting or logging of enumeration attempts.

What the attacker needed

None

The fix

The issue was fixed by standardising error messages to a single generic response, and the report also recommends rate limiting, CAPTCHA, and monitoring.

How it was found

  1. Send a request to the authentication endpoint with an email address.
  2. Observe the error message returned.
  3. Compare responses for different email addresses to see if the message changes based on whether the email is registered.

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 try to log in with an email that isn't registered, the system might say 'invalid request', but if the email is registered it says 'invalid credentials'. That small difference lets someone check which emails have accounts, which is useful for phishing or trying stolen 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.