Skip to content
Access control Write-up Intermediate

Account Deletion — Password Confirmation Bypass — bug bounty

The account deletion endpoint enforced the password confirmation only when an id parameter was present; removing the id caused the site to delete the currently authenticated user without asking for a password. An attacker with a stolen session cookie could therefore delete the victim's account without knowing the password.

sovode17 Follow

Published on medium.com

We noticed that the account deletion feature sometimes requires a password before allowing the deletion, as a protection mechanism. For example, if an attacker steals a victim’s session cookie and tries to delete their account, they should hit a password prompt and fail to complete the deletion.

so vode, 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 check was only enforced on the code path that handled requests containing the id parameter, so omitting the id routed the request to a deletion path that skipped the check.

Impact

An attacker who has stolen a victim's session cookie could delete the victim's account without knowing the password, though the team claimed a five-minute post-login window limited this.

What the attacker needed

Victim's session cookie; account deletion feature

How it was found

  1. Send an account deletion request that includes the id parameter and a session token.
  2. Remove the id parameter from the request while keeping the session cookie.
  3. Observe that the currently authenticated account is deleted without a password prompt.

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 delete your account, a website often asks for your password again to make sure it is really you. Here, that check was skipped if the request left out a certain identifier, so anyone holding a stolen login cookie could delete the account without the password.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.