Skip to content
Business logic Write-up Beginner

Rate Limit Bypass in Password Reset Functionality

The password reset endpoint applied its rate limit per client IP taken from the X-Forwarded-For header, so a client could vary that header to appear as many different sources. An attacker could then send unlimited reset requests for one victim, flooding their inbox with reset emails.

medium.com

Published on medium.com

Rate limiting is a crucial security measure that prevents excessive requests from a single user or IP address. However, improper implementation can lead to bypasses, allowing attackers to exploit the system.

Fuzzyy Duck, 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 rate limiter keyed on the client-supplied X-Forwarded-For value instead of a trusted source address or a per-account counter.

Impact

This enables email bombing of a chosen user, which the author says could also support social engineering or denial-of-service against specific accounts.

What the attacker needed

No account needed; victim's email address known; proxy tool to edit headers

The fix

The rate limit should be based on a trusted client identity, such as the real connection address or a per-account counter, rather than a header the client controls.

How it was found

  1. Open the target site and go to the login page, then choose the reset password option.
  2. Submit the victim's email address in the reset form.
  3. Intercept the resulting request in a proxy tool.
  4. Add an X-Forwarded-For header and mark the last part of the address as an injection point.
  5. Run an intruder-style attack with a numeric payload range.
  6. The victim receives a large number of reset emails.

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.

A rate limit is a cap on how many requests you can make in a period, meant to stop abuse like spamming someone's email. Here the site decided who was asking by reading a header the client itself can set, so the attacker simply claimed to be a new address each time and the cap never triggered. The result is a flood of password reset emails to one person.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.