Skip to content
Account takeover Write-up Intermediate

Race Condition to Bypass Rate-Limiting: A new technique made by Nillsx

The password reset mechanism allowed an old reset link to remain valid even after the account's email address was changed, enabling an attacker to take over the account. The author also found a way to bypass rate limiting on reset requests using a race condition combined with host header injection, though the takeover was possible without it.

infosecwriteups.com

Published on infosecwriteups.com

First of all, I hope you’re doing well today. In this article, I’ll walk you through how I chained multiple vulnerabilities (Rate-limiting bypass with race condition and host header injection, and non-expiring password reset link) to create a powerful exploit.

Snillx 🇧🇷, on infosecwriteups.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 password reset token was not invalidated after the account's email address was changed, and the token had no expiry.

Impact

An attacker with access to an old reset link could take over the account even after the victim changed their email and password; the race condition and host header injection bypassed rate limiting but were not essential for the takeover.

What the attacker needed

A free account; access to the victim's email inbox; victim clicks a link

How it was found

  1. Create an account and request a password reset.
  2. Intercept the reset request and duplicate it, modifying the Host header in each copy.
  3. Send the grouped requests in parallel to bypass rate limiting.
  4. Receive two reset emails and use the latest link to change the password.
  5. Log in and change the account email to a new address.
  6. Use the older, unused reset link to change the password again, achieving takeover.

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.

When you forget your password, a website sends a special link to your email to reset it. Normally, that link should stop working after you use it or change your email. Here, the link kept working, so someone who still had an old link could change the password even after the real owner changed their email, taking over the account.

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.

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.