Skip to content
Account takeover Write-up Intermediate

Chaining bugs for Account Takeover

The password update endpoint allowed changing a user's password without a valid token, and the user identifier could be obtained by inviting the victim's email to an attacker's workspace. By locking the victim's account and forcing a password reset, the attacker could link the two identifiers and take over the account.

hbenja47 Follow

Published on medium.com

I’m going to share with you my second account takeover for which I was rewarded in the wonderful world of bug bounty hunting. I want to emphasize that what allowed me to find this Account TakeOver was chaining together two specific bugs combined with the account lockout policy after failed authentication attempts.

Benja (bronxi), 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 update endpoint failed to validate the token and relied only on a user identifier that could be obtained through workspace invitations, with the identifier linking to the victim's account after a password reset.

Impact

An attacker could take over a victim's account and lock them out, and could change the password again without repeating the steps.

What the attacker needed

Attacker has a workspace; victim's email address known; victim resets password after lockout

How it was found

  1. The attacker creates a workspace and invites the victim's email address as a user of the workspace (Victim’s acceptance of the invitation is not required).
  2. The attacker attempts to access the victim’s account six times with any password to lock the victim out.
  3. When the victim attempts to access their account, they receive a message stating it is locked and proceeds to perform the password recovery action. They receive the email and reset their password.
  4. The attacker copies the victim’s UUID found in their workspace.
  5. The attacker uses this UUID in the request shown below to change the victim user’s password:
  6. The attacker can then access the victim’s account with the new password. The victim has lost access.

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 feature should require a secret token to prove the request is legitimate. Here, the token could be removed and the password still changed. The attacker also needed the victim's internal user ID, which they got by inviting the victim's email to their own workspace. Then they locked the victim out so the victim would reset their password, which linked the IDs and let the attacker set a new 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.

More by hbenja47

View all

2 more disclosed reports, 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.