Skip to content
IDOR Write-up Beginner

$125 For Unauthorized Campaign Modification via Insecure ID Param

An authenticated user could modify another user's campaign by changing the campaign ID in the request and removing the CSRF token. This allowed unauthorised edits to other users' campaigns.

Tanvir Ahmed Follow

Published on medium.com

A vulnerability was discovered in the campaign management feature that allows one authenticated user to modify another user’s campaign by tampering with the request parameters. This is caused by insufficient access control on the campaign ID parameter in the backend.

Tanvir Ahmed, 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 missing ownership checks on the campaign ID parameter and improper CSRF token validation.

Impact

An attacker could read and modify other users' campaigns, potentially causing defacement or misinformation.

What the attacker needed

Two authenticated accounts; proxy tool to capture and modify requests

The fix

The report recommends implementing proper access control checks, strictly validating CSRF tokens, and using non-sequential identifiers.

How it was found

  1. Log in to Account A and create a public campaign.
  2. Capture the request for creating or modifying the campaign using a proxy tool.
  3. Identify the id parameter associated with the campaign.
  4. Log in to Account B and navigate to the campaign management page.
  5. Initiate an edit action on a campaign under Account B and capture the request.
  6. Replace the campaign id with Account A's campaign ID, remove the CSRF token, and send the request.

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 you edit a campaign, your browser sends a request with the campaign's ID. The server should check that you own that campaign. Here, it did not, so changing the ID let one user edit another user's campaign. Also, the request worked even without a security token (CSRF token) that is meant to stop other sites from making requests for you.

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.