When Account Recovery Became Account Delivery : Full Account Takeover
The password reset and account activation links used sequential numeric identifiers encoded only in Base64, so an attacker could guess another user's identifier and take over their account or activate an account without owning the email. No victim interaction was needed.
Published on medium.com
No tools running. No recon.
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
The application used predictable sequential numeric identifiers, merely Base64-encoded, as password reset and activation tokens without verifying ownership or using randomness.
Impact
An attacker could take over any account by knowing the email address and could activate accounts without owning the email, defeating email verification.
What the attacker needed
Knowledge of victim's email; no victim interaction
The fix
The issue was fixed by using random, single-use tokens with expiry and server-side ownership verification instead of sequential IDs.
How it was found
- Trigger a password reset for your own account and note the id in the reset link.
- Decode the Base64 id to see it is a sequential number.
- Trigger a reset for the victim's email without accessing their inbox.
- Increment the decoded id by one and re-encode it.
- Send the reset request directly with the guessed id.
- Log in with the default password to take over the account.
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 ask a site to reset your password, it emails you a link containing a code. Here that code was just a number written in a different format (Base64), and the numbers went up by one each time. So anyone could change the number to the next one and reset someone else's password or activate their account without needing the email.
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.