Skip to content
Account takeover Disclosed report Beginner

User enumeration via error message

The login page returned different error messages depending on whether the username existed, so an attacker could tell registered accounts apart from unregistered ones. By submitting many usernames, an attacker could build a list of valid users on the site.

zuh4n Follow

Originally disclosed on HackerOne

  • Triaged in 5 hours
  • Fixed in 38 hours
  • Disclosed after 2 days

Hi guys,

Well, the issue is in authentication process, an attacker able to enumerate registered users on the site via brute forcing the login page, in case when user is not exist, system returns the following error message: "User not exist", in case when user exist, but incorrect password: "Password does not match".

Mitigation: handle the above situation correctly, e.g.: "Login failed. Invalid user ID or password". This doesn't inform the attacker on which credential is wrong and make enumeration more difficult

Thanks

The original report as published on HackerOne, by zuh4n. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the authentication code returns a distinct error for an unknown username versus a wrong password, instead of one generic failure message.

Impact

An attacker could confirm which usernames are registered on the site.

What the attacker needed

Access to the login page; no account needed

The fix

The login should return one generic failure message for both an unknown username and a wrong password, so it does not reveal which credential was wrong.

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 report has not been written yet. The Original tab links to the source.

When you log in, the site checks your username and password. Here it replied 'User not exist' for unknown usernames but 'Password does not match' for real usernames with a wrong password. That difference lets someone test many usernames and learn which ones are real accounts.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by zuh4n

View all

9 more disclosed reports, best first.

More from Veris

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.