Skip to content
Account takeover Write-up Intermediate

Account Pre Takeover Bug Bounty

The account update endpoint accepted an account-id and email address from the request body without proper server-side validation, allowing an attacker to change their own email to a victim's email and take over the victim's account. The attacker could also manipulate the account-id parameter to access and modify other users' accounts, leading to a large-scale account takeover.

Thee Eclipse Follow

Published on infosecwriteups.com

Account Pre-takeover is the malicious action of taking over / controlling a victims account and at times before the account even exists. This type of vulnerability can enable an attacker to take control of the victim’s account, potentially allowing them to view sensitive information, perform unauthorized actions, or…

Thee Eclipse, on infosecwriteups.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 server failed to validate that the account-id and email address in the account update request belonged to the authenticated user, allowing mass assignment and IDOR.

Impact

An attacker could take over any user account, view sensitive information, perform unauthorized actions, and potentially take over all accounts on the platform.

What the attacker needed

A free account; victim has an account; attacker can intercept requests

The fix

The server should validate that the account-id and email in the update request belong to the authenticated user and reject any attempt to modify another user's account.

How it was found

  1. Create an attacker account and log in.
  2. Intercept the account update request and note that it includes account-id and email parameters.
  3. Change the email to the victim's email and submit the request, receiving a 200 OK.
  4. Refresh the dashboard to see the new email is now the victim's email.
  5. Try signing up with the victim's email to see that an account already exists, prompting a password reset.
  6. The victim resets their password and logs in, but the attacker's session remains active and can still modify the victim's 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.

This report describes a flaw where a website lets you change your account details, but it does not check that you are only changing your own account. An attacker can trick the system into changing their email to someone else's email, which then lets them control that person's account. They can also change a number in the request to access other people's accounts.

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 Thee Eclipse

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.