Skip to content
IDOR Write-up Beginner

IDOR in Purchase Order Cancellation Allows Unauthorized Users to

The purchase order cancellation endpoint did not check whether the requesting user owned the order, so an authenticated attacker could cancel another user's purchase order by changing the order ID in the request. This allowed unauthorised cancellation of orders, causing business disruption.

Abu Idris Al-Muhaqqiq Follow

Published on infosecwriteups.com

An Insecure Direct Object Reference (IDOR) vulnerability exists in the Purchase Order cancellation endpoint at service-goauth.mokapos.com. An authenticated user can cancel another user’s Purchase Order by replacing the PO ID in the cancellation request.

Abu Idris Al-Muhaqqiq, on infosecwriteups.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 did not verify that the authenticated user owned the purchase order before processing the cancellation.

Impact

An authenticated attacker could cancel other users' purchase orders, causing business disruption and potential financial loss.

What the attacker needed

Attacker has a valid account; victim has a purchase order; attacker knows victim's PO ID

How it was found

  1. User A logs in and creates a purchase order, noting its ID.
  2. User B logs in and creates their own purchase order.
  3. User B opens their order and clicks Cancel while intercepting the request.
  4. User B replaces their own order ID with User A's order ID in the request.
  5. User B sends the modified request and receives a 200 OK response.
  6. User A refreshes the page and sees the order status changed to Cancelled.

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 cancel a purchase order, the website sends a request containing the order's ID. The server should check that the order belongs to you before cancelling it. Here it did not, so anyone logged in could cancel someone else's order by simply changing the ID.

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 Abu Idris Al-Muhaqqiq

View all

4 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.