Skip to content
IDOR Write-up Intermediate

Zero Click ATO via Systemic Mass Assignment: The Phantom Hand

The backend blindly binds all JSON fields from a profile update request to the user record, allowing an attacker to set fields like email_verified and role. This enables a zero-click account takeover by pre-verifying a victim's email and linking the attacker's session to their account.

medium.com

Published on medium.com

Most researchers? They’re just scrolling.

Jawad Momani, 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 server passes the entire request body directly to the database update function without whitelisting allowed fields or using a data transfer object.

Impact

An attacker could achieve a zero-click account takeover, including admin accounts, by manipulating hidden fields without any user interaction.

What the attacker needed

A valid session token; knowledge of victim's email; ability to send PUT requests

The fix

The fix is to use explicit whitelisting or DTOs to only allow intended fields to be updated.

How it was found

  1. Monitor JSON responses from endpoints like /api/v1/me or /settings to find hidden fields such as role or email_verified.
  2. Perform a bit flip test by updating a benign field and including the target key in the JSON.
  3. Check if the change persisted by making a GET request to the profile endpoint.
  4. Send a PUT request to the profile endpoint with the victim's email, email_verified set to true, and role set to admin.
  5. Observe that the server accepts the changes and links the session to 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.

When you update your profile, the server should only change the fields you're allowed to edit, like your bio. Here, the server takes every field you send and saves it, even ones you shouldn't control, like whether your email is verified or your role. An attacker can abuse this to take over someone else's account without them doing anything.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.