Skip to content
IDOR Write-up Beginner

This Simple Vulnerability In Shopify Earned A 2500 Bug Bounty

The order lookup feature only checked that the email contained an @ symbol, and order numbers were sequential starting from 1000. An attacker could change the email to any domain and increment the order number to retrieve order information for any order on the store.

Roberto Follow

Published on infosecwriteups.com

One of the most common vulnerabilities occur when a user is able to access something to which they are should not have access. If a malicious actor exploits this vulnerability and accesses confidential information of others, this can cause a leak of sensitive data.

Roberto, 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 application did not verify that the email address matched the order's actual customer email, and used predictable sequential order numbers.

Impact

An attacker could retrieve order information for any order on the store, which may include sensitive customer data.

What the attacker needed

Access to the chat app; knowledge of order numbers

How it was found

  1. Click the 'I need an update on my order' button to send a POST request with order_lookup JSON.
  2. Change the email value to any domain like @gmail.com to pass validation.
  3. Change the order_number to another number (e.g., increment by 1) to retrieve a different order's information.

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 look up an order, the website should check that the order belongs to you. Here, it only checked that the email address had an @ sign, and order numbers were easy to guess (1000, 1001, etc.). So anyone could change the email and order number to see other people's orders.

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 Roberto

View all

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