Skip to content
Account takeover Write-up Beginner

My first and last crit of 2020 on Hackerone

The password reset used a four-digit PIN with no rate limiting, so an attacker could brute-force it to take over any account. A separate endpoint exposed user details by user ID, and chaining both let an attacker take over accounts quickly.

takester Follow

Published on takester.medium.com

In the month of December 2020 I picked some VDP’s on hackerone. When I was scrolling down this particular target seems interesting to me as it has various wild scope domains and has high crowd of researchers and if I report bugs on top level domains only, then there are maximum chances of getting it duplicate, so to…

Takester, on takester.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 PIN had no attempt limit, and the user details page relied on a user ID in the URL without checking who was asking.

Impact

An attacker could take over any user account by brute-forcing the reset PIN and could view other users' names, emails and mobile numbers; chaining both made takeover fast.

What the attacker needed

A valid email address of the victim; ability to make many reset attempts; a user ID to view details

How it was found

  1. Register a normal user account and use the password reset feature.
  2. Notice the reset sends a four-digit PIN to the email and try many PIN guesses.
  3. Observe there is no rate limit, allowing account takeover with a valid email.
  4. Find a user details endpoint that includes the user ID in the URL.
  5. Open the link in incognito mode and see the submitted name, email and mobile number.
  6. Change the user ID to view other users' details.

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.

A password reset usually sends a short code to your email. If the website lets someone try that code over and over without slowing them down, a person can guess it and get into your account. Separately, a page that shows your details should check that you are allowed to see them, not just trust a number in the link.

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 takester

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.