Skip to content
IDOR Disclosed report Beginner

Disclose customer orders details by shopify chat application.

The Shopify chat app's order lookup accepted an email address with the local part removed, so only the domain was checked against the order. An attacker could brute-force sequential order numbers and retrieve other customers' order details.

zambo Follow

Originally disclosed on HackerOne

Bounty$2,500 Medium 6.9 View original
  • Triaged in 14 hours
  • Fixed in 22 hours
  • Paid in 22 hours
  • Disclosed after 21 months

Hello Shopify Security Team!

Bug Summary:

This bug leads to disclose any store orders details ( including sensitive informations), through shopify chat app. the chat app can retrieve the orders details for unauthorized user.

Reproduction steps:

  • install shopify chat applications.

Start Exploit :

  • Go to targeted store :
  • Start a chat using the app.
  • Click on I need an update on my order.
  • fill out the Order ID and Email. ( fill the info randomly if you want to).
  • The bot respond.

█████

Exploit

Remove the first part of the email (keep only @hotmail/gmail/yahoo...). In normal situation the orders IDs start form #1000, and in the verification required the email and ID, So the attacker can brut force on the ID and retrive the order information of that ID with the same email ISP because we removed the first email part.

Request :

POST /api/storefront/conversations/lx9vF-DR31d1ePOOCS0Uw2lFUUBjhNqmMTOdkeM631M/order_lookup HTTP/1.1
Host: shopify-chat.shopifycloud.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0
Accept: /
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://okbay44.myshopify.com/
Content-Type: application/json
X-Shopify-Chat-Shop-Identifier: █████████
Origin: https://okbay44.myshopify.com
Content-Length: 113
DNT: 1
Connection: close

{"order_lookup":{"email":"@gmail.com","order_number":"1005","user_token":"███"}}

Response :

█████

Impact

Retrive any customers data.

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

Shopify Chat is a Shopify-developed application that stores can install to talk to their customers. One of the flows it offers is an order status lookup: a shopper opens a chat, picks the option to get an update on an order, and supplies an order ID together with an email address. The bot then replies with information about that order.

The report describes an information disclosure in that lookup flow. The chat application can retrieve order details for a user who is not authorised to see them, and the details include sensitive information. The affected asset is listed as Shopify Developed Apps, and the weakness is classified as information disclosure.

Setup

The only precondition stated in the report is that the Shopify Chat application is installed on the targeted store. No accounts, roles, tools or versions are described. The researcher works against a storefront and against the chat backend host shopify-chat.shopifycloud.com.

Finding it

The researcher walked the normal order lookup conversation and noticed that the verification step combines two values: the order ID and the email address. The check is presented to the shopper as a pair, and the bot answers once both are supplied. The suspicion is that the email is not validated as a whole, so the pair can be satisfied with a partial email value.

Exploitation

Step 1: install the application

Install the Shopify Chat application on the store. This is the only setup step the report gives.

Step 2: start the order lookup conversation

  1. Go to the targeted store.
  2. Start a chat using the app.
  3. Click on I need an update on my order.
  4. Fill out the Order ID and Email. The report notes that the information can be filled in randomly if desired.
  5. The bot responds.

Step 3: reduce the email to its domain part

Remove the first part of the email and keep only the domain, for example @hotmail, @gmail or @yahoo. The report's reasoning is that order IDs normally start from #1000, and that the verification requires the email and the ID together. If the local part of the email is not checked, an attacker can brute force the ID and retrieve the order information for that ID using the same email ISP, because the first part of the email was removed.

Step 4: send the lookup request

The report shows the lookup request with the truncated email:

HTTP
POST /api/storefront/conversations/lx9vF-[redacted]/order_lookup HTTP/1.1
Host: shopify-chat.shopifycloud.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0
Accept: /
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://okbay44.myshopify.com/
Content-Type: application/json
X-Shopify-Chat-Shop-Identifier: █████████
Origin: https://okbay44.myshopify.com
Content-Length: 113
DNT: 1
Connection: close

{"order_lookup":{"email":"@gmail.com","order_number":"1005","user_token":"███"}}

The important parts of the request are:

  • The path identifies a specific conversation (lx9vF-[redacted]) and the order_lookup action on it.
  • X-Shopify-Chat-Shop-Identifier ties the request to the store, and Origin and Referer carry the storefront domain okbay44.myshopify.com.
  • The JSON body carries the three values the lookup uses: email, set to @gmail.com with the local part removed, order_number, set to 1005, and user_token.

The response is not reproduced in the report.

Root cause

The report does not describe the server-side implementation. The report's reasoning is that the email and order ID pair can be satisfied with a domain-only email, so the requester's identity is not established. Because order IDs are sequential from #1000, an attacker who can satisfy the check with any address on a given mail provider can enumerate IDs and read the matching orders.

Impact

An attacker can retrieve any customer's order data from a store running the chat application, including sensitive information, by brute forcing order IDs with a truncated email. The report's own summary of the impact is: retrieve any customers data. The conditions are that the chat application is installed on the store and that the attacker can reach the lookup endpoint for that store's conversation.

Fix

The report does not state what was changed. The fix that follows from the finding is to validate the full email address against the order, rather than accepting a domain-only value, so that the email and order ID pair genuinely identifies the customer before any order details are returned.

Variants to test

  • Truncate the email to the domain on other stores running the chat application and repeat the lookup with sequential order numbers. A positive result is order details returned for an ID that does not belong to the requester.
  • Try other partial email forms, such as an empty local part with different providers, and compare responses. A positive result is any response that discloses order data without a full, matching address.
  • Walk order numbers upward from 1000 and note which ones return data. A positive result is a run of successful lookups across IDs the tester never owned.

Hunting notes

This kind of bug hides in support and chat flows that ask for a low-entropy identifier plus a second value as a soft verification step. During recon, look for storefront chat widgets and capture the requests they make to backend hosts such as shopify-chat.shopifycloud.com, paying attention to lookup actions that take an order number and an email. The signal is a verification step whose inputs are guessable: sequential order IDs and an email check that may only look at part of the address. The report argues that order IDs are sequential from #1000, which makes enumeration practical.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

What happened, in plain words

Shopify Chat is a small application that an online shop can add to its website so that shoppers can talk to the shop through a chat window. One of the things the chat can do is tell a shopper about the status of an order. To do that, the shopper picks an option in the chat, types an order number and an email address, and the chat replies with details about that order.

The report describes a flaw in that order lookup. The chat is supposed to check that the person asking really owns the order, by matching the order number together with the email address. The researcher's reasoning is that the email check may not cover the whole address, so sending only the part after the @ sign, such as @gmail.com, might be enough. Because order numbers normally start from #1000, the report argues that someone could try order number after order number with a partial email and retrieve order details. The report calls this an information disclosure, which simply means that information is shown to someone who should not be allowed to see it.

The pieces involved

Before walking through the steps, here are the parts of the picture in everyday terms.

  • Storefront: the public website of an online shop, the pages a normal shopper sees. In this report the storefront is okbay44.myshopify.com.
  • Shopify Chat: the chat widget the shop installs. It is a Shopify-developed application, which is the asset named in the report.
  • Bot: the automatic responder inside the chat. It is not a human support agent; it follows a script and answers based on what the shopper types.
  • API: the way one piece of software asks another piece of software for something. Think of it as a service counter: you hand over a request in a fixed format and get an answer back. The chat window in your browser is the customer side; the chat backend is the counter behind it.
  • Endpoint: one specific address at that counter, for one specific action. The lookup endpoint in this report is the address that handles order lookups.
  • Request: the message your browser sends to the counter. It has a method (here POST, meaning "I am sending data"), a path (which counter), headers (extra labels about the request) and a body (the actual data).
  • Response: the message the server sends back.
  • JSON: a simple text format for structured data, made of names and values in curly braces. It is how the request body carries the email, order number and token.
  • Token: a short string that acts like a claim ticket. The server hands it out and expects it back so it can tell one conversation from another. It is not a password, but it should be treated as private.
  • Header: a labelled line in a request that carries extra information, such as which website the request came from.
  • Brute force: trying many possibilities one after another until one works. Here it means walking through order numbers in sequence.
  • Information disclosure: a weakness where data is revealed to someone not entitled to it. It is the class this report is filed under.

Setup

The report gives one precondition: the Shopify Chat application must be installed on the targeted store. Nothing else is described, no accounts, no special roles, no particular tools or versions. The researcher works against a storefront on one side and against the chat backend host shopify-chat.shopifycloud.com on the other.

Finding it

The researcher went through the normal order lookup conversation, the same one any shopper would use, and looked at what the verification step actually asks for. The check combines two values: the order number and the email address. The shopper is asked for both, and the bot answers once both are supplied.

The suspicion that follows is that the email is not checked as a whole. If the server only looks at part of the address, then the pair can be satisfied with a partial email value, and the identity of the person asking is never really established.

Exploitation

Step 1: install the application

Install the Shopify Chat application on the store. This is the only setup step the report gives.

Step 2: start the order lookup conversation

  1. Go to the targeted store.
  2. Start a chat using the app.
  3. Click on I need an update on my order.
  4. Fill out the Order ID and Email. The report notes that the information can be filled in randomly if desired.
  5. The bot responds.

Why do this at all? Because the chat window is the easiest way to see the conversation the application expects, and to make the browser send the lookup request once, so that the same request can be examined and then repeated with a changed email.

Step 3: reduce the email to its domain part

Remove the first part of the email and keep only the domain, for example @hotmail, @gmail or @yahoo. The reasoning in the report is that order numbers normally start from #1000, and that the verification requires the email and the ID together. If the first part of the email is not checked, an attacker can brute force the ID and retrieve the order information for that ID using the same email ISP, because the first part of the email was removed.

In plain terms: an email address has two halves, the part before the @ (the local part, which is personal) and the part after it (the domain, which is shared by everyone using that mail provider). If the check only cares about the domain, then anyone with a Gmail address passes the check for any order, as long as they guess the order number.

Step 4: send the lookup request

The report shows the lookup request with the truncated email:

HTTP
POST /api/storefront/conversations/lx9vF-[redacted]/order_lookup HTTP/1.1
Host: shopify-chat.shopifycloud.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0
Accept: /
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://okbay44.myshopify.com/
Content-Type: application/json
X-Shopify-Chat-Shop-Identifier: █████████
Origin: https://okbay44.myshopify.com
Content-Length: 113
DNT: 1
Connection: close

{"order_lookup":{"email":"@gmail.com","order_number":"1005","user_token":"███"}}

Line by line, in plain words:

  • POST /api/storefront/conversations/lx9vF-[redacted]/order_lookup HTTP/1.1 is the first line of the request. POST says data is being sent. The path names one specific conversation, identified by the long string lx9vF-[redacted], and the action order_lookup on it. HTTP/1.1 is the version of the request format.
  • Host: shopify-chat.shopifycloud.com says which server the request is addressed to: the chat backend, not the shop website.
  • User-Agent: ... identifies the browser that sent the request. Here it is Firefox 79 on a Mac.
  • Accept: / is a header about which response formats are acceptable. It appears in the report exactly as shown.
  • Accept-Language: en-US,en;q=0.5 says the sender prefers English.
  • Accept-Encoding: gzip, deflate says the sender can accept compressed responses.
  • Referer: https://okbay44.myshopify.com/ says which page the request came from: the storefront.
  • Content-Type: application/json says the body is JSON, so the server knows how to read it.
  • X-Shopify-Chat-Shop-Identifier: █████████ ties the request to a particular shop. The value is redacted in the report.
  • Origin: https://okbay44.myshopify.com says which site the request originates from. Browsers add this automatically, and servers often use it as a cross-check.
  • Content-Length: 113 is the size of the body in bytes.
  • DNT: 1 is the Do Not Track preference.
  • Connection: close asks the server to close the connection after answering.
  • The blank line separates the headers from the body.
  • {"order_lookup":{"email":"@gmail.com","order_number":"1005","user_token":"███"}} is the body. It is a JSON object named order_lookup holding three values: email, set to @gmail.com with the local part removed, order_number, set to 1005, and user_token, which is redacted in the report.

The important parts of the request are:

  • The path identifies a specific conversation and the order_lookup action on it.
  • X-Shopify-Chat-Shop-Identifier ties the request to the store, and Origin and Referer carry the storefront domain okbay44.myshopify.com.
  • The JSON body carries the three values the lookup uses: email, set to @gmail.com with the local part removed, order_number, set to 1005, and user_token.

The response is not reproduced in the report.

Root cause

The report does not describe the server-side implementation. The report's reasoning is that the email and order number pair can be satisfied with a domain-only email, so the requester's identity is not established. Because order numbers are sequential from #1000, an attacker who can satisfy the check with any address on a given mail provider can enumerate numbers and read the matching orders.

Impact

An attacker can retrieve any customer's order data from a store running the chat application, including sensitive information, by brute forcing order numbers with a truncated email. The report's own summary of the impact is: retrieve any customers data. The conditions are that the chat application is installed on the store and that the attacker can reach the lookup endpoint for that store's conversation.

Fix

The report does not state what was changed. The fix that follows from the finding is to validate the full email address against the order, rather than accepting a domain-only value, so that the email and order number pair genuinely identifies the customer before any order details are returned.

Variants to test

  • Truncate the email to the domain on other stores running the chat application and repeat the lookup with sequential order numbers. A positive result is order details returned for a number that does not belong to the requester.
  • Try other partial email forms, such as an empty local part with different providers, and compare responses. A positive result is any response that discloses order data without a full, matching address.
  • Walk order numbers upward from 1000 and note which ones return data. A positive result is a run of successful lookups across numbers the tester never owned.

Hunting notes

This kind of bug hides in support and chat flows that ask for a low-entropy identifier plus a second value as a soft verification step. During recon, look for storefront chat widgets and capture the requests they make to backend hosts such as shopify-chat.shopifycloud.com, paying attention to lookup actions that take an order number and an email. The signal is a verification step whose inputs are guessable: sequential order numbers and an email check that may only look at part of the address. The report argues that order numbers are sequential from #1000, which makes enumeration practical.

Glossary

  • API: the agreed way for one piece of software to ask another for something, like a service counter with a fixed request format.
  • Bot: an automatic responder in a chat that follows a script instead of a human agent.
  • Brute force: trying many possibilities in sequence until one succeeds, here walking through order numbers.
  • Content-Type: a header that says what format the body of a request is in, such as JSON.
  • Domain: the part of an email address after the @, shared by everyone using that mail provider, for example gmail.com.
  • Endpoint: one specific address at an API that performs one specific action.
  • Header: a labelled line in a request carrying extra information, such as the origin or the content type.
  • Host: the server name a request is addressed to.
  • Information disclosure: a weakness where data is shown to someone not entitled to see it.
  • JSON: a text format for structured data made of names and values in curly braces.
  • Local part: the part of an email address before the @, which is personal to the account holder.
  • Order number: the identifier a shop gives to an order, here sequential starting from #1000.
  • Origin: a header saying which site a request originates from.
  • POST: an HTTP method meaning data is being sent to the server.
  • Referer: a header saying which page a request came from.
  • Request: the message a browser sends to a server, made of a method, a path, headers and a body.
  • Response: the message a server sends back.
  • Storefront: the public website of an online shop.
  • Token: a short string acting like a claim ticket, handed out by the server and expected back to identify a conversation.
  • User-Agent: a header identifying the browser and system that sent the request.
  • Verification step: the part of a flow that is meant to confirm the requester is entitled to the information.

More by zambo

View all

1 more disclosed report, 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.