Skip to content
Account takeover Write-up Intermediate

Account Takeover Vulnerability :)

The password reset token was a predictable 8-digit number that increased sequentially, and the reset link also exposed the user's email address. An attacker who requested reset links for two accounts at the same time could guess the victim's token and reset their password, leading to account takeover.

Sumit Jain Follow

Published on medium.com

My name is Sumit Jain. I hope you all are good , scoring bounties 😉 Today i want to share one of my findings which i found on a private program.

Sumit Jain, 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 password reset token was generated as a sequential 8-digit number rather than a cryptographically random value, making it predictable.

Impact

An attacker could take over another user's account by predicting the reset token, but only if they could request reset links for both accounts at the same time.

What the attacker needed

Ability to create accounts; ability to request password reset links; timing reset requests for two accounts

How it was found

  1. Create two accounts, User A and User B.
  2. Request a password reset link for User A and observe the token in the URL.
  3. Request a password reset link for User B and observe that its token is one greater than User A's token.
  4. Request reset links for both accounts at the same time to predict the victim's token.
  5. Change the email address in the reset link to the victim's and use the guessed token to reset their password.

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 emails you a special link containing a secret code (token) that proves you own the account. This site used a short number that simply went up by one each time, so if you got your own code you could guess the next person's code. By requesting two reset links at once, the attacker could work out the victim's code and change their password.

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.