Skip to content
IDOR Disclosed report Intermediate

Order lookup features of Shopify Chat Application leads to customer orders enumeration due to lack of user input validation

The Shopify Chat order lookup feature accepted unvalidated order numbers, allowing an attacker to retrieve any customer's first order by supplying a crafted value and to enumerate multiple orders by providing several numbers in one request. This exposed order status page links for other customers' orders.

imgnotfound Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 4 days
  • Paid in 7 days
  • Disclosed after 27 days

It came to my attention that the Shopify Chat application allows a customer to retrieve its order status by only providing the order email and number.

Noticing that it results in being provided the order status page link, I started playing a bit with both parameters and I found out that it is possible to:

  1. Access any customer first order without having to provide any actual order number
  2. Provide multiple order number within the same payload resulting in orders "enumeration"

As it stands, I'm not sure if it has to do with SQL injection. I'll keep digging.

Steps to reproduce

  1. Having a shop with Shopify Chat application installed (with OrderLookup feature), open up https://{shop}.myshopify.com/?chat
  2. Within the Shopify Chat Widget, click on I need an update on my order
  3. Click on Enter order information and fill in the form by entering any customer email and order number
  4. Using Burp Client and/or any other way to intercept the request that is being made to https://shopify-chat.shopifycloud.com/api/storefront/conversations/{id}/order_lookup and copy its content so it can be replayed

The intercepted payload should looks like this:

{
	"order_lookup":
	{
		"email": "[email protected]",
		"order_number":"1000"
	}
}

As mentioned earlier, there's two different exploit.

First one: Access any customer's first order details

From the above payload:

  1. Update email value to the targeted customer email address
  2. Update order_number value to 1 OR 2

If the targeted customer email address have made any order, you'll be given the link to access his first order details.

Second one: Enumerate orders by providing multiple order numbers at once

From the above payload:

  1. Update email value to the targeted customer email address
  2. Update order_number value to 1000 OR 1001 OR 1002 OR 1003 OR 1004 OR 1005.

Given that the customer does have any order having a number between 1000 and 1005, you'll be given the link to access the first matching one. If any, all you have to do to get the next one is to remove that specific order number from the payload and resend the request once again.

While testing, I used a payload with around 50 different numbers and it did work. My assumption there is that we can input a big payload but didn't go much deeper just in case it ends up being evaluated in SQL.

On a site note, I think that order lookup should have some kind of rate-limiting to prevent any abuse.

Demo

██████████

Impact

Retrieve customers orders informations

The original report as published on HackerOne, by imgnotfound. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the order number input was passed directly into a backend query without validation or parameterisation, allowing logical operators to alter the lookup.

Impact

An attacker could retrieve customers' order information, including links to order status pages, by guessing email addresses and using crafted order numbers.

What the attacker needed

A shop with Shopify Chat and OrderLookup enabled; knowledge of a customer's email address; ability to intercept and replay HTTP requests

The fix

The report suggests adding rate limiting to the order lookup to prevent abuse.

How it was found

  1. Open the shop's chat page and start the order lookup flow.
  2. Click 'I need an update on my order' and then 'Enter order information'.
  3. Fill the form with any customer email and order number.
  4. Intercept the request to the order lookup API endpoint and copy its content for replay.
  5. Modify the email to the target customer and set the order number to a logical expression to retrieve the first order.
  6. Modify the order number to a list of numbers to enumerate matching orders.

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 report has not been written yet. The Original tab links to the source.

The chat widget that lets customers check their order status did not properly check the order number they typed. By entering special text instead of a real order number, someone could see other people's order details. This is like a guard who accepts any password because they never actually check it.

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 imgnotfound

View all

15 more disclosed reports, best first.

More from Shopify

View all

The newest disclosed reports for this program.

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.