Skip to content
Info disclosure Disclosed report Beginner

Information disclosure (No rate limting in forgot password & other login)

The forgot-password and login flows returned a distinct error when an email address was not registered, letting an attacker tell whether an address has an account. The reporter also noted there was no rate limiting on these endpoints.

Muhammad Asim Shahzad Follow

Originally disclosed on HackerOne

  • Triaged in 45 hours
  • Fixed in 5 months
  • Paid in 5 months
  • Disclosed after 2.5 years

Hi there, I noticed a small information leak which allows an attacker to check whether an email address is associated with an account.If your account is not associated with website then an error will become raise that "That username or email was not found." 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. Also you should add rate limiting :)

Thanks,

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

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The target is Imgur, and the issue concerns the forgot password and login flows. The researcher, protector47, reported a small information leak: the application lets anyone check whether a given email address is associated with an account.

The mechanism is a difference in the response. When the submitted email is not tied to an account, the site raises an error that reads:

Text
That username or email was not found.

The error appears when the address is not associated with an account, so its presence reveals that the address is not registered. A message that says the address was not found confirms the address is not registered; the absence of that message implies it is.

The researcher's suggested remedy is to make the response identical in both cases, returning a neutral status message such as:

Text
If your email exists in our database, you'll receive a reset link

With that wording, the attacker cannot distinguish between the two cases from the response alone. The researcher also asked for rate limiting to be added.

The report does not give a bounty amount, a severity rating, a CVSS score, a fix date or any detail of how the issue was resolved. It is a short disclosure consisting of the observation and the two recommendations.

Root cause

Impact

The report frames the issue as a small information leak. In practice it allows an attacker to confirm whether a particular email address is registered on the site. It allows an attacker to confirm whether a particular email address is registered on the site. The report does not claim account takeover or any further exploitation, and the impact should be read at that level: enumeration of registered addresses.

How this kind of bug works

Account enumeration through recovery flows is a response-difference problem. A well-built flow treats "address exists" and "address does not exist" as the same event from the client's point of view: it accepts the input, shows a generic confirmation, and only the mailbox owner learns anything further, by receiving (or not receiving) the message.

The same class shows up in registration ("this email is already taken"), login ("no such user" versus "wrong password"), and password reset. Defences are straightforward in principle: a single generic response for both branches, constant-ish processing time, and rate limiting or CAPTCHA on the endpoint so that even a noisy oracle cannot be queried at scale. Rate limiting does not fix the leak, it only makes it expensive; the neutral response is the actual fix.

How to test for it

  1. Identify every endpoint that accepts an email address or username: login, registration, forgot password, resend verification, invite flows, and any JSON API behind them.
  2. Submit an address you know is registered (your own test account) and one you know is not, and compare the full responses: status code, body text, headers, redirect target and response time.
  3. Repeat each submission several times to separate a stable difference from noise, and try variations in case, whitespace and plus-addressing.
  4. Check whether the endpoint throttles you. If you can send dozens of requests without a block, note that alongside the enumeration finding.

A positive result is a consistent, reproducible difference between the two cases: a distinct error string, a different HTTP status, a redirect to a different page, or a measurable timing gap. Common false positives are differences caused by caching, by load balancing across backends, or by client-side validation that fires before the request is sent. Confirm the difference at the HTTP level, not in the rendered page, and make sure it survives repetition.

How it is fixed

The standard fix is to return one generic message for every submission, regardless of whether the identifier exists, and to send the reset mail only when there is a matching account. The same generic handling should apply to registration and login error paths. Processing should be made as uniform as practical so timing does not leak the answer, and the endpoint should be rate limited or protected by a challenge so bulk querying is impractical. Logging and monitoring of enumeration patterns help detect abuse after the fact.

Hunting notes

Enumeration bugs hide in secondary flows that teams forget to harden: password reset, email change, account deletion, invitation and referral forms, and mobile or JSON APIs that mirror the web flow with different error handling. Recon signals include any endpoint that takes an email or username and returns a human-readable error, and any flow where the response differs between a known and unknown identifier. When you find one, demonstrate it with two requests, one for a registered address and one for an unregistered address, and show the differing responses side by side. Pair the finding with evidence about rate limiting on the endpoint. Keep the demonstration to your own accounts and avoid harvesting real addresses.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What happened, in plain words

Imgur is an image hosting site where people upload pictures and share them. To use it, you create an account with an email address and a password. If you forget your password, the site offers a "forgot password" form: you type your email address, and the site sends you a link to reset it.

The researcher, protector47, found that these forms answer differently depending on whether the email address you type belongs to a real account. If the address is not registered, the site shows this error:

Text
That username or email was not found.

The error appears when the address is not associated with an account. That difference is the whole bug. Anyone can type an address into the form and learn, from the reply alone, whether that address has an Imgur account. Security people call this account enumeration: working out which accounts exist by asking the system one guess at a time.

Why does it matter? Knowing which email addresses are real accounts is useful to someone preparing a phishing campaign (fake emails that pretend to come from Imgur) or a credential stuffing attack (trying leaked passwords against many accounts). The report itself calls it a small information leak and does not claim anyone could take over an account with it.

The suggested fix

The researcher proposed that the site always give the same answer, whatever you type. Instead of the error above, the form should say something neutral, such as:

Text
If your email exists in our database, you'll receive a reset link

Read that sentence carefully. It tells you what will happen next (you may get an email) without confirming whether the address is registered. Someone who owns the address finds out by checking their inbox; someone who does not own it learns nothing. The attacker's question, "does this account exist?", is no longer answered by the page.

The researcher also asked for rate limiting. That means putting a cap on how often the same action can be repeated in a period of time, for example a limited number of password reset requests per minute from one person. Rate limiting would make repeated submissions slower.

The report does not include a bounty amount, a severity rating or a CVSS score.

In general, how this kind of bug works

This is a response-difference problem. The server (the computer that runs the website) receives your input and replies. If the reply for "address exists" differs from the reply for "address does not exist", in wording, status code, redirect or even response time, the reply itself becomes a way to ask the server questions.

A useful comparison is a receptionist who is asked whether a guest is staying at the hotel. A good receptionist says "I will pass your message on" whether or not the guest is there. A careless one says "no such guest", and now the caller knows who is and is not in the building.

The same pattern appears in several places:

  1. Registration: "this email is already taken" confirms an account exists.
  2. Login: "no such user" versus "wrong password" tells an attacker which half of the credentials was wrong.
  3. Password reset: the case in this report.
  4. Resend verification, invitations, email change: any form that accepts an address can leak the same way.

The fix is a single generic message for both cases, sending the email only when an account really matches, and keeping processing time similar so timing does not give the answer away either. Rate limiting or a CAPTCHA (a challenge that is hard for automated tools) makes bulk guessing impractical. Rate limiting alone does not fix the leak; the neutral message is the real fix.

How to test for it yourself

You only need a browser and two email addresses: one you have registered on the site, and one you have not.

  1. Open the forgot password page and submit your registered address. Note exactly what the page says, and what the address bar shows afterwards.
  2. Submit an address that is definitely not registered. Compare the two replies word for word, including any error text.
  3. Repeat each submission a few times, in case the site behaves inconsistently, and try small variations such as different capitalisation.
  4. Try submitting many times in a row. If nothing slows you down or blocks you, the form is not rate limited.

A real finding is a difference you can reproduce every time: a distinct error message, a different page, or a noticeably different response. Be careful with false alarms: a page that looks different because of caching, or because your browser checked the address before sending it, is not the same thing. Confirm the difference comes from the server's reply, not from the page layout. Only test with your own addresses and do not collect other people's.

Glossary

  • Account enumeration: discovering which accounts exist on a site by observing how it responds to guesses.
  • Forgot password flow: the feature that emails a reset link when you cannot log in.
  • Information leak (information disclosure): any behaviour that reveals something about the system or its users that should stay private.
  • Response: what the server sends back after you submit a form or load a page, including the page content and a status code.
  • Status code: a number in the server's reply, such as 200 for success or 404 for not found, that tells the browser what happened.
  • Oracle: any observable signal, here an error message, that lets someone test a guess and learn the answer.
  • Rate limiting: a cap on how many requests can be made in a given time, used to slow down automated abuse.
  • CAPTCHA: a challenge designed to be easy for a person and hard for a script.
  • Phishing: fraudulent messages that impersonate a trusted service to trick people into giving up credentials or clicking links.
  • Credential stuffing: trying lists of leaked email and password pairs against a site to find working logins.
  • Server: the computer that stores the site and answers requests from browsers.
  • Request: the message your browser sends to a server when you submit a form or open a page.
  • CVSS: a standard scoring system for rating the severity of a vulnerability.

More by Muhammad Asim Shahzad

View all

4 more disclosed reports, best first.

More from Imgur

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.