Skip to content
Info disclosure Disclosed report Beginner

User guessing/enumeration at https://app.c2fo.com/api/password-reset

The password reset endpoint returned different responses depending on whether an email address was registered, allowing an attacker to enumerate valid accounts. An attacker could use this to confirm which email addresses are in use on the service.

internetwache Follow

Originally disclosed on HackerOne

  • Triaged in 17 hours
  • Fixed in 17 days
  • Disclosed after 47 days

Hi there,

I noticed a small information leak which allows an attacker to check whether an email address is associated with an account.

###Steps to reproduce:

  1. Send a POST-Request to the url https://app.c2fo.com/api/password-reset as the following example shows:
POST /api/password-reset HTTP/1.1
Host: app.c2fo.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 37

emailAddress=test%40internetwache.org
  1. I registered an account with the email address, thus the server will respond with {"inReset":true}, which means that the address is in use.

  2. Now resend the request again, but with an invalid address like "[email protected]". The application will tell use the following: {"error":"invalid_email_address"}.

This way I can validate email addresses against your service.

###Suggested fix: You should always return a status message like: "If your email exists in our database, you'll receive a reset link". That way an attacker cannot distinguish between the two cases.

Thanks, Sebastian

The original report as published on HackerOne, by internetwache. 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 password reset endpoint returned distinct responses for registered and unregistered email addresses instead of a uniform message.

Impact

An attacker could determine which email addresses are associated with accounts on the service.

What the attacker needed

None

The fix

The endpoint should always return a generic message such as 'If your email exists in our database, you'll receive a reset link' regardless of whether the address is registered.

How it was found

  1. Send a POST request to the password reset endpoint with a registered email address.
  2. Observe the response indicating the address is in use.
  3. Send the same request with an invalid email address.
  4. Observe the different error response, confirming the address is not 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 report has not been written yet. The Original tab links to the source.

When you ask a website to reset your password, it checks if your email is registered. This report found that the website replied differently for known and unknown emails, so someone could test many emails to see which ones have accounts. That is called user enumeration and can help attackers target real users.

What is Info disclosure?

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

More by internetwache

View all

10 more disclosed reports, best first.

More from C2FO

View all

The newest disclosed reports for this program.

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.