Skip to content
IDOR Write-up Beginner

How I Found a Mass Assignment Vulnerability Leading to a Premium

The workspace settings API bound request JSON directly to internal fields, so a free-trial user could add billing and verification parameters to a settings update. The server accepted them, upgrading the workspace to the paid Enterprise Pro tier without any payment.

Sangith Follow

Published on medium.com

A Mass Assignment vulnerability was discovered in the workspace settings API endpoint. Modern backend frameworks often bind HTTP request data directly to internal database objects.

Sangith, 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 backend bound the whole JSON body to the workspace model without an allow-list, so restricted fields such as plan_type and is_verified could be set by any authenticated user.

Impact

A basic user could bypass monetisation controls and grant themselves enterprise-grade permissions or change configurations affecting revenue.

What the attacker needed

A free trial account; an intercepting proxy

How it was found

  1. Create a free trial account and open the workspace settings panel.
  2. Save changes while intercepting the outbound settings request in a proxy.
  3. Add the plan_type and is_verified fields to the JSON body of that request.
  4. Send the modified request and note the success response containing the new plan and verified values.
  5. Reload the web application and see the workspace on the Enterprise Pro tier.

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 a website saves your settings, it usually takes the data you send and copies it into its own records. If it copies every field you send without checking which ones you are allowed to change, you can sneak in extra fields. Here the attacker added fields for the paid plan and a verified flag, and the server saved them as if an administrator had set them.

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 Sangith

View all

1 more disclosed report, 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.