Skip to content
Account takeover Write-up Beginner

This Profile Page Gave Me More Power Than It Should Have

The profile edit form allowed a logged-in user to change their account email to any already-registered address without verification, and the cancel account button deleted the account with no re-authentication. An attacker could take over another user's account by setting their email, then silently delete it.

infosecwriteups.com

Published on infosecwriteups.com

I was inside a random members portal — nothing fancy. The kind where users log in, manage profiles, maybe participate in a contest or two.

LordofHeaven, 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 application did not verify email ownership or enforce uniqueness checks when updating the profile email, and the account deletion action lacked re-authentication.

What the attacker needed

A valid user account; victim's email address known

The fix

The application should verify email ownership before accepting a change and require re-authentication before deleting an account.

How it was found

  1. Log in to the members portal and open the Edit Profile section.
  2. Change the email field to an email address already registered to another account.
  3. Save the form; the system updates the account without any warning or confirmation.
  4. Click the Cancel Account button at the bottom of the page.
  5. Observe immediate logout and, later, an email confirming account deletion.

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 website should check that you own an email address before letting you use it as your login name. Here, the profile form accepted any email already used by someone else, so the attacker's account became linked to that person's identity. The delete button also worked without asking for a password again, so the attacker could wipe the victim's account.

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.