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.
Published on 0xebn-taimia.medium.com
بِسْ� ِ اللَّـهِ الرَّحْ� َـٰنِ الرَّحِي� ِ | In the name of God, the most gracious, the most merciful
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
- Create an account, log out, and capture the forgot-password request.
- Send the forgot-password request for the victim to obtain a reset link with a token.
- Capture the confirm-new-password request.
- Send many forgot-password requests to keep fresh tokens valid within the five-minute window.
- Brute-force the confirm request with a large list of generated tokens until one returns success.
- 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.