Skip to content
IDOR Write-up Beginner

IDOR in Multinational Retail Company Leading to Unauthorized Access and Modifications

The 'My Lists' wishlist feature did not check that a list belonged to the requesting user, so changing the list identifier in requests let an attacker view, rename, delete and modify other users' wishlists. The author states this gave full permissions over another user's list.

kamalinux Follow

Published on medium.com

In this write-up, we will discuss a high vulnerability I identified in a multinational retail company’s web application, which allows users to exploit an Insecure Direct Object Reference (IDOR) to edit and delete other users’ lists. This vulnerability can be particularly damaging as it allows unauthorized users to…

Kamal, 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 wishlist endpoints looked up the list by the supplied identifier and acted on it without verifying that the list belonged to the logged-in customer.

Impact

An attacker could view, rename, delete and change the contents of other users' wishlists, though the author notes the identifier is not numeric, which makes exploitation harder.

What the attacker needed

Two accounts; knowledge of victim's list identifier; proxy for adding products

The fix

The author recommends adding a server-side check that the wishlist belongs to the current customer before any operation, plus CSRF tokens on modifying requests; the text does not say whether it was fixed.

How it was found

  1. Log in as two different users in two browsers and have each create a wishlist.
  2. Note the list identifier from the response when a list is created.
  3. Capture the edit or delete request for a list in an intercepting proxy.
  4. Replace the list identifier in the request with the other user's identifier and send it.
  5. Observe that the other user's list is renamed or deleted; adding a product needs the proxy, while other actions also work through the browser URL.

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.

A wishlist is stored under a long random-looking identifier. The site trusted whatever identifier the browser sent and never checked who owned that list. So anyone who learned or guessed another person's identifier could open and change that person's list as if it were their own.

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.