Skip to content
IDOR Write-up Intermediate

The Hidden Weapon: How I Turn Mass Assignment into Bounties

The author describes two bug bounty findings where hidden parameters allowed mass assignment. In the first, a hidden userId parameter on a manager endpoint leaked PII of millions of users; in the second, a hidden name parameter let him overwrite his OAuth-locked profile name and inject HTML into invite emails.

0xuserm9 Follow

Published on medium.com

In the modern bug bounty landscape, the “low-hanging fruit” is a myth. The attack surface has evolved.

@0xuserm9, 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 request parameters directly to database objects without an allow-list of updatable fields.

Impact

The first flaw could expose PII of millions of users, and the second could inject HTML into invite emails sent to victims.

What the attacker needed

A free account; victim receives an invite email

The fix

The text says the developer should have used an allow-list of specific fields that can be updated.

How it was found

  1. Map the application and populate Burp history with endpoints and parameters.
  2. Build a target-specific wordlist with GAP-Burp-Extension from JSON parameters in requests and responses.
  3. Fuzz endpoints with Param Miner using the custom wordlist.
  4. For the manager endpoint, add the discovered userId parameter to the request.
  5. For the profile endpoint, add the discovered name parameter to the PUT JSON body with an HTML payload.
  6. Send an invite email to trigger the injected HTML in the victim's inbox.

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.

Mass assignment is when a website takes all the fields you send in a request and saves them without checking which ones you are allowed to change. If the database has a field like 'role' or 'name', an attacker can add it to the request and the server will update it anyway. Here, hidden fields let the author read other users' data and change his own locked profile name.

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.