Skip to content
Account takeover Write-up Intermediate

Reverse Account Takeover via Email Rebinding Causing Forced Privilege De-Escalation

A low-privileged member could set their own email and primaryemail fields to the workspace owner's email address via a profile update request, because the backend accepted these identity fields without validation or verification. This caused the real owner's account to be demoted to member and lose access to their workspace.

Zeeshan M Follow

Published on z-sec.co

When we talk about account takeover, we usually imagine a familiar story: an attacker steals credentials, hijacks a session, or abuses password reset flows to log in as someone else.

Zeeshan M., on z-sec.co

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

The backend treated email fields as editable profile data, did not enforce uniqueness, and did not verify email ownership before accepting client-supplied values.

Impact

A low-privileged user could force the workspace owner to lose owner privileges and be demoted to member, effectively locking them out of managing their own workspace.

What the attacker needed

A member-level account; knowledge of the owner's email address

The fix

The issue was fixed after responsible disclosure; the fix should ensure email fields are protected identity attributes with uniqueness enforcement and ownership verification.

How it was found

  1. Log in as a member-level user and intercept the profile update request.
  2. Add the owner's email address to the email and primaryemail fields in the request body.
  3. Send the request; the backend accepts it without validation or verification.
  4. Refresh the application; the member's session breaks and the owner is demoted to member.

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.

In a multi-user app, each account is identified by an email address. The server here let any user change their own email to someone else's without checking that they own it. When two accounts shared the same email, the system got confused and gave the original owner the lower role instead.

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 Zeeshan M

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.