Skip to content
Account takeover Write-up Intermediate

Zero-Click account Take-over

The password reset flow used a short, guessable token, had no rate limit on requesting new reset links, and kept older tokens valid for five minutes. By flooding reset requests and brute-forcing the token space, an attacker could guess a valid token and change a victim's password.

0xebn-taimia Follow

Published on 0xebn-taimia.medium.com

بِسْ� ِ اللَّـهِ الرَّحْ� َـٰنِ الرَّحِي� ِ | In the name of God, the most gracious, the most merciful

0xEbn-Taimia, on 0xebn-taimia.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 reset token was too short and predictable, the reset endpoint had no rate limiting, and previously issued tokens were not invalidated when new ones were created.

Impact

An attacker could take over a victim's account by guessing the reset token, though the report notes the triager closed it as informative because the request volume needed could amount to a denial-of-service, which was out of scope.

What the attacker needed

Victim has an account; attacker can send many requests; no rate limiting present

The fix

The reset token should be long and random, the reset endpoints should be rate limited, and older tokens should be invalidated when a new one is issued.

How it was found

  1. Create an account, log out, and capture the forgot-password request.
  2. Send the forgot-password request for the victim to obtain a reset link with a token.
  3. Capture the confirm-new-password request.
  4. Send many forgot-password requests to keep fresh tokens valid within the five-minute window.
  5. Brute-force the confirm request with a large list of generated tokens until one returns success.
  6. The victim's password is changed.

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 a password, a site emails you a link containing a secret code. If that code is short and the site lets you try unlimited guesses, someone can guess it and take over the account. Here the code was short, guessing was unlimited, and old codes stayed usable for a while.

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.

More by 0xebn-taimia

View all

1 more disclosed report, best first.

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.