Skip to content
IDOR Write-up Beginner

Improper Access Control in APIs Earns $3,900 Bounty(4/30 DAYS)

The order modification API did not verify that the user owned the order being changed. An attacker could add items to another user's order and view their email address and physical address.

medium.com

Published on medium.com

I’m a security researcher, and I’ve taken on the challenge of explaining one bug bounty report every day for the next 30 days — 30 days, 30 reports!

0day stories, 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 add unwanted items to another user's order, potentially causing financial loss, and could view the victim's email address and physical address, raising privacy and safety concerns.

What the attacker needed

Two accounts on the platform; ability to place future-dated orders; knowledge of a victim's order ID

The fix

The order modification endpoint should verify that the authenticated user owns the order before allowing any changes.

How it was found

  1. Create two accounts and place a future-dated order in the same shop with each account.
  2. Intercept the HTTP POST request sent when adding an item to the attacker's order.
  3. Replace the attacker's order ID in the request with the victim's order ID.
  4. Send the modified request; the server adds the item to the victim's order and returns the victim's cart, email and address.

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 change an order online, the website should check that the order belongs to you. Here it did not, so anyone who guessed or found another person's order number could change that order and see private details like their address.

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.