Skip to content
Access control Write-up Intermediate

The Unexpected 0 Master Id For Account Data Manipulation

The application's data update feature accepted a POST request with an ID parameter set to 0, which acted as a master ID, allowing modification of any user's data when combined with the target's email and an empty UUID. An attacker could change another user's account data.

YoKo Kho Follow

Published on infosecwriteups.com

As usual, I will try to release this write-up with two different approaches, which are:

YoKo Kho, 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

Impact

An attacker could modify the data of any user account, potentially leading to account takeover or data manipulation.

What the attacker needed

A valid user account; knowledge of target's email

How it was found

  1. Capture the data update POST request containing id, uuid, email, and data parameters.
  2. Set the id parameter to 0 and leave the uuid parameter empty.
  3. Set the email parameter to the target user's email address.
  4. Send the request; the target user's data is modified.

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 is a broken access control bug where the application trusted a special value (0) in an identifier field to mean 'all users'. By sending a request with that value and the victim's email, the attacker could update the victim's data without authorisation.

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.

More by YoKo Kho

View all

3 more disclosed reports, best first.

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.