Skip to content
IDOR Write-up Intermediate

Mass Assignment: How a Simple Maintenance Role Gained Admin Control Over Cloud Backups [P2]

A maintenance user could send extra fields in a service update request to change settings they should not control, such as disabling backups, deleting snapshots, and opening the IP filter to all addresses. The server accepted these changes and returned a success message.

0xmostafa Follow

Published on 0xmostafa.medium.com

The target is a modern SaaS Cloud Management Platform providing managed database instances Their RBAC model is structured into:

Mostafa Muhammed, on 0xmostafa.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 accepted and applied any field present in the request body without checking whether the user's role was allowed to change that field.

Impact

The maintenance user could disable backups, delete snapshots, open the database firewall to all addresses, and change contact emails, which could lead to data loss and full takeover.

What the attacker needed

A maintenance user account

How it was found

  1. As a maintenance user, update the maintenance schedule and capture the request.
  2. Notice the response includes sensitive fields such as backups, IP filters, and credentials.
  3. Modify the request to include those sensitive fields with new values.
  4. Send the modified request and receive a 200 OK with an 'updated' message.
  5. Send a GET request to verify the changes took effect.

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.

A maintenance user is only meant to schedule updates, but the server also accepted other settings they sent in the same request. This let them turn off backups and open the database to the whole internet.

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.

More by 0xmostafa

View all

2 more disclosed reports, best first.

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.