User enumeration through forget password
The forgot password feature returns a different error message when an email address is not registered, revealing whether an account exists. An attacker could use this to enumerate valid user emails.
Originally disclosed on HackerOne
- Triaged in 26 hours
- Fixed in 29 days
- Disclosed after 30 days
Vulnerability:- ->User enumeration is possible through forgot password feature. steps to reproduce:- ->Go to the above selected domain and go to forgot password. ->submit random email and then intercept request by burp suit ->in response you will get { HTTP/1.1 500 Internal Server Error with {{"err":"No account with that id found."} }
Remediation:- ->It should display like "if that mail address exists in our system, then we will send password reset link." I hope that you will consider this issue as you also welcome the reports of best practices. Thank you
Impact
Leaking users' emails. / Information Disclosure.
What the report shows
The target is the UPchieve web application at app.upchieve.org, and the feature under examination is the forgot password flow. The researcher reports that this flow allows user enumeration: by submitting an address and inspecting the server's response, an attacker can learn whether an account exists for that address.
The reproduction steps are short and direct:
- Go to the selected domain and open the forgot password feature.
- Submit a random email address and intercept the resulting request in Burp Suite.
- Observe the response. For an address with no account, the server returns an HTTP 500 error whose body contains a JSON error message.
The response the report gives is:
HTTP/1.1 500 Internal Server Error
with the body:
{"err":"No account with that id found."}
The report does not include the request itself, the parameter names, or the response for an address that does have an account. The contrast that makes enumeration possible is therefore implied rather than shown: a valid address presumably produces a different status or body, while an unknown one produces the 500 above.
The report describes the impact as leaking users' emails and information disclosure. The report does not describe a fix having been applied.
Root cause
A plausible cause is that the password reset endpoint treats "no such account" as an exceptional condition rather than a normal outcome. Instead of returning the same generic acknowledgement for every submitted address, the backend raises an error that surfaces to the client as a 500 with a descriptive message. Any difference in status code or body text between a known and an unknown address gives the attacker an oracle.
Impact
As the report frames it, the consequence is information disclosure: an attacker can confirm which email addresses are registered, leaking users' emails. Enumeration on its own does not grant access to accounts, but it turns a blind guessing problem into a targeted one, because the attacker can build a verified list of addresses before attempting credential attacks or phishing. The report does not claim any further exploitation.
How this kind of bug works
Account enumeration through a recovery flow is a response-differential bug. The server holds a set of registered addresses and must decide, for each submitted address, whether to send a reset message. If the code path for "registered" differs from the code path for "not registered" in any observable way, the client can distinguish the two cases.
Observable differences include:
- Status codes. A 200 for one case and a 404 or 500 for the other.
- Body content. Distinct error strings, different field names, or a message that names the condition.
- Redirects and headers. A redirect to a confirmation page versus an inline error.
- Timing. A registered address triggers a database lookup plus an outbound email, while an unknown one returns immediately, producing a measurable gap.
- Side effects. Rate limiting or CAPTCHA appearing only after a valid address is submitted.
The same class appears in registration ("this email is already taken"), login ("no such user" versus "wrong password"), and invitation or referral flows. The defence is uniform behaviour: identical status, identical body, and comparable timing for every input, with the actual outcome communicated only out of band, by email.
How to test for it
- Identify every endpoint that accepts an email address or username: password reset, registration, login, resend verification, invite, and any API variants behind the web form.
- Collect a known-registered address (your own test account) and several addresses that are certainly unregistered, on a domain you control where possible.
- Send the same request with each address, changing only that value, and capture the full response: status line, headers, body, and response time.
- Compare the responses pairwise. A positive result is any consistent, reproducible difference that correlates with registration state: a different status code, a different message, a redirect, or a timing gap that survives repetition.
- Repeat each case several times to separate signal from noise, and test both the HTML form and the underlying JSON or form-encoded API call, since the front end may normalise responses that the API does not.
Common false positives:
- Differences caused by input validation (malformed versus well-formed address) rather than registration state.
- Timing differences that vanish when the request is repeated or when the server is under variable load.
- Caching or CDN behaviour that changes headers between requests.
- Front-end only differences, where the API returns identical responses and the page renders them differently.
How it is fixed
The standard fix is to make the recovery endpoint state-independent. For every submitted address, valid or not, return the same status code and the same generic message, for example that a reset link will be sent if the address exists in the system. Perform the account lookup and the email send asynchronously so that the response time does not depend on whether the account exists. Avoid descriptive error strings such as the one in this report, and ensure that unexpected exceptions are caught and mapped to the generic response rather than surfacing as 500s. Apply the same uniform-response principle to registration, login, and resend-verification endpoints, and consider rate limiting to slow down bulk enumeration even when responses are identical.
Hunting notes
Enumeration bugs cluster in older or secondary flows: password reset, resend verification, account deletion, email change, and API endpoints that mirror the web forms but were written separately. Recon signals worth following are multiple authentication-related endpoints on the same host, GraphQL or JSON APIs behind a single-page front end, and error messages that name internal conditions. When you find a differential, demonstrate it with a small table of requests and responses for one registered and one unregistered address, note whether the difference is in status, body, or timing, and state the impact in terms of what the verified list enables. Programs tend to accept reports that show a clean, reproducible oracle and reject ones that rest on a single unrepeated timing measurement.
What happened, in plain words
UPchieve is a website with user accounts. Like most websites with user accounts, it has a "forgot password" feature: you type your email address, and the site sends you a link to choose a new password. The researcher looked at this feature on app.upchieve.org and found that the site answers differently depending on whether the email address you typed belongs to a real account. That difference lets anyone check, one address at a time, which email addresses are registered. This is called user enumeration: using the site's own replies to build a list of who has an account.
The report describes the impact as leaking users' emails and information disclosure. It does not say whether a fix was applied.
The steps in the report
- Go to the domain and open the forgot password feature.
- Submit a random email address and intercept the request with Burp Suite.
- Look at the response. For an address with no account, the server returns an HTTP 500 error whose body contains a JSON error message.
A request is the message your browser sends to a server when you do something on a page, such as submitting a form. A response is the server's reply. Burp Suite is a tool that sits between your browser and the server so you can read and change those messages; the report uses it to capture the request and see the raw reply.
The response the report gives is:
HTTP/1.1 500 Internal Server Error
with the body:
{"err":"No account with that id found."}
Line by line: HTTP/1.1 is the version of the protocol used for the reply. 500 Internal Server Error is a status code, a three-digit number where 500 means the server hit an unexpected problem. The body is in JSON, a text format for structured data; here it is one field, err, whose value is the message No account with that id found. In plain terms, the server is saying out loud that the address you typed is not registered.
The report does not include the request itself, the names of the fields sent, or the response for an address that does have an account. The contrast that makes enumeration possible is therefore implied rather than shown: a registered address presumably produces a different status or body, while an unknown one produces the 500 above.
Why the steps matter
Submitting a random address is the control case: it shows what the server says when no account exists. Intercepting the request matters because the page in your browser may hide or soften the server's real answer; the raw response is what an attacker actually sees. And the 500 with a descriptive message is the giveaway: the server has told the client which of two cases it is in, registered or not.
Root cause
A plausible cause is that the password reset endpoint treats "no such account" as an exceptional condition rather than a normal outcome. Instead of returning the same generic acknowledgement for every submitted address, the backend raises an error that surfaces to the client as a 500 with a descriptive message. Any difference in status code or body text between a known and an unknown address gives the attacker an oracle: a yes/no signal they can query at will.
Impact
As the report frames it, the consequence is information disclosure: an attacker can confirm which email addresses are registered, leaking users' emails. Enumeration on its own does not grant access to accounts, but it turns blind guessing into a targeted problem, because the attacker can build a verified list of addresses before attempting credential attacks or phishing. The report does not claim any further exploitation.
In general, how this kind of bug works
Account enumeration through a recovery flow is a response-differential bug. The server holds a set of registered addresses and must decide, for each submitted address, whether to send a reset message. If the code path for "registered" differs from the code path for "not registered" in any observable way, the client can distinguish the two cases. A useful comparison is a receptionist who, asked whether someone works there, says "yes, I'll call them" for staff and "never heard of them" for everyone else: the answer itself reveals the list.
Observable differences include:
- Status codes. A 200 for one case and a 404 or 500 for the other.
- Body content. Distinct error strings, different field names, or a message that names the condition.
- Redirects and headers. A redirect to a confirmation page versus an inline error.
- Timing. A registered address triggers a database lookup plus an outbound email, while an unknown one returns immediately, producing a measurable gap.
- Side effects. Rate limiting or CAPTCHA appearing only after a valid address is submitted.
The same class appears in registration ("this email is already taken"), login ("no such user" versus "wrong password"), and invitation or referral flows. The defence is uniform behaviour: identical status, identical body, and comparable timing for every input, with the actual outcome communicated only out of band, by email.
How to test for it
- Identify every endpoint that accepts an email address or username: password reset, registration, login, resend verification, invite, and any API variants behind the web form.
- Collect a known-registered address (your own test account) and several addresses that are certainly unregistered, on a domain you control where possible.
- Send the same request with each address, changing only that value, and capture the full response: status line, headers, body, and response time.
- Compare the responses pairwise. A positive result is any consistent, reproducible difference that correlates with registration state: a different status code, a different message, a redirect, or a timing gap that survives repetition.
- Repeat each case several times to separate signal from noise, and test both the HTML form and the underlying JSON or form-encoded API call, since the front end may normalise responses that the API does not.
Common false positives:
- Differences caused by input validation (malformed versus well-formed address) rather than registration state.
- Timing differences that vanish when the request is repeated or when the server is under variable load.
- Caching or CDN behaviour that changes headers between requests.
- Front-end only differences, where the API returns identical responses and the page renders them differently.
How it is fixed
The standard fix is to make the recovery endpoint state-independent. For every submitted address, valid or not, return the same status code and the same generic message, for example that a reset link will be sent if the address exists in the system. Perform the account lookup and the email send asynchronously so that the response time does not depend on whether the account exists. Avoid descriptive error strings such as the one in this report, and ensure that unexpected exceptions are caught and mapped to the generic response rather than surfacing as 500s. Apply the same uniform-response principle to registration, login, and resend-verification endpoints, and consider rate limiting to slow down bulk enumeration even when responses are identical.
Hunting notes
Enumeration bugs cluster in older or secondary flows: password reset, resend verification, account deletion, email change, and API endpoints that mirror the web forms but were written separately. Recon signals worth following are multiple authentication-related endpoints on the same host, GraphQL or JSON APIs behind a single-page front end, and error messages that name internal conditions. When you find a differential, demonstrate it with a small table of requests and responses for one registered and one unregistered address, note whether the difference is in status, body, or timing, and state the impact in terms of what the verified list enables. Programs tend to accept reports that show a clean, reproducible oracle and reject ones that rest on a single unrepeated timing measurement.
Glossary
- User enumeration: using a site's replies to work out which accounts or email addresses exist.
- Forgot password flow: the feature where you enter an email address and the site sends a reset link if an account exists.
- Request: the message a browser sends to a server when you do something on a page.
- Response: the server's reply to a request, including a status code, headers and a body.
- Burp Suite: a tool that sits between browser and server so you can read and modify requests and responses.
- HTTP: the protocol browsers and servers use to exchange requests and responses.
- Status code: a three-digit number in a response; 500 means the server hit an unexpected problem.
- JSON: a text format for structured data, made of fields and values.
- Endpoint: a specific address on a server that accepts requests, such as the password reset handler.
- Oracle: any observable signal that answers a yes/no question, here whether an account exists.
- Response differential: a difference in status, body, headers or timing between two cases that reveals which case occurred.
- Information disclosure: leaking information the site did not intend to reveal.
- CVSS: a scoring system for the severity of a vulnerability.
- Rate limiting: restricting how many requests a client can make in a period of time.
- CAPTCHA: a challenge meant to prove a human, not a script, is submitting a form.
- Asynchronous: doing work in the background so the reply does not wait for it.
- CDN: a network of servers that cache and deliver content, which can change response headers.