Skip to content
IDOR Write-up Beginner

IDOR lead to Restriction Bypass!!

The application allowed deletion of customer profiles with active subscriptions by changing the customer ID in the delete request, bypassing the restriction that such profiles cannot be deleted. An attacker could delete any customer profile, including those with active subscriptions, by manipulating the ID parameter.

medium.com

Published on medium.com

Hello, I was hunting for bugs in a SAAS application which has many features and Role based access controls. We can Create/Delete/Edit customers, generate invoices, manage subscriptions and has many other functionalities.

Mohan Kumar N, 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

Impact

An attacker could delete any customer profile, including those with active subscriptions, bypassing the intended restriction.

What the attacker needed

Authenticated user with access to customer management; ability to intercept and modify requests

How it was found

  1. Create three customer profiles with IDs 101, 102, and 103.
  2. Ensure Customer A and B have active subscriptions, while Customer C does not.
  3. Intercept the delete request for Customer C.
  4. Change the customer ID in the request to Customer A's ID (101).
  5. Send the modified request, which deletes Customer A's profile despite the active subscription restriction.

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 an IDOR (Insecure Direct Object Reference) bug, where a user can access or modify resources they shouldn't by changing an identifier like a customer ID. The application checked if a customer had an active subscription before allowing deletion, but it didn't verify that the user making the request was authorised to delete that specific customer. So by simply changing the ID number in the request, the attacker could delete any customer's profile.

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.