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.
As usual, I will try to release this write-up with two different approaches, which are:
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
- Capture the data update POST request containing id, uuid, email, and data parameters.
- Set the id parameter to 0 and leave the uuid parameter empty.
- Set the email parameter to the target user's email address.
- 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.