Information disclosure ( Google Sales Channel )
A Shopify endpoint for the Google Sales Channel returned store data, including a channel identifier and the store owner's email address, without checking whether the store was password-protected. An attacker could read this information for any store using the channel, even when the storefront was otherwise private.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 25 days
- Paid in 11 days
- Disclosed after 49 days
In the review on apps.shopify.com the Google sales channel has a review of 5407 but the actual number of shopify stores that use the Google channel I believe is more than that number so I think this vulnerability can have an impact on many shopify stores and here I found a vulnerability where attackers can exploit every shopify store that has a Google Sales channel even though the store is in Password protection
- Install google channel at your-store.myshopify.com
- Enable password protection at your-store.myshopify.com
- Add new product in shopify store
- Now go to this link : google-shopping.shopifycloud.com/shopify/products?shop=your-store.myshopify.com&id=PRODUCT ID&locale=en
Change PRODUCT ID with your shopify product id 5. Now in the response you will see information disclosure in the form of data-channel-id and data-user-email
data-channel-id="70715703461"
data-user-email="[email protected]"
Even though the shopify store which is in a password protected state is very private, but in this vulnerability the attacker can still find out sensitive information from the shopify store which is in a password protected state. Stores that do not have a password protected are easier to exploit because attackers can get the product id of the victim's store
Impact
Vulnerabilities that allow attackers to get sensitive information from victim stores
Context
The target is the Google Sales Channel, one of the apps that Shopify develops and lists on apps.shopify.com. Merchants install it on their Shopify store to connect the store to Google Shopping. The report opens with a scale argument: the app's listing on apps.shopify.com shows 5407 reviews, and the researcher believes the real number of Shopify stores using the Google channel is higher than that, so a flaw here would reach many stores.
The feature involved is the product endpoint on google-shopping.shopifycloud.com, which takes a shop domain and a product id as parameters. The researcher found that this endpoint returns fields that should not be public, specifically data-channel-id and data-user-email, and that it does so even when the store is behind Shopify's password protection.
Setup
The preconditions are simple and need no special tooling beyond a browser and a Shopify store you control:
- A Shopify store at
your-store.myshopify.comwith the Google channel installed. - Password protection enabled on that store, so the storefront is private.
- At least one product in the store, whose product id you know.
The attacker side needs only the victim's shop domain and a product id. The report notes that for stores without password protection, obtaining the product id is easier, because the storefront is publicly browsable.
Finding it
The researcher was looking at the Google Sales Channel and its product endpoint. The endpoint accepts a shop parameter and an id parameter, and the response embeds attributes in the HTML. Two of those attributes, data-channel-id and data-user-email, carry values that belong to the merchant rather than to the public product view. The data comes back even though the store is password protected.
Exploitation
Step 1: Install the Google channel
Install the Google channel on your-store.myshopify.com. This is the setup step that makes the endpoint serve your store's data.
Step 2: Enable password protection
Enable password protection on your-store.myshopify.com. This puts the storefront in the private state that the vulnerability is meant to respect.
Step 3: Add a product
Add a new product in the Shopify store. Its product id is what the next step needs.
Step 4: Request the Google Shopping product endpoint
Go to the following URL, replacing PRODUCT ID with the Shopify product id:
google-shopping.shopifycloud.com/shopify/products?shop=your-store.myshopify.com&id=PRODUCT ID&locale=en
The shop parameter selects the store, id selects the product, and locale=en sets the locale. The request is made directly against the google-shopping.shopifycloud.com host, not against the store's own domain.
Step 5: Read the disclosed fields in the response
The response contains the leaked values as HTML attributes:
data-channel-id="70715703461"
data-user-email="[redacted]"
data-user-email is the merchant's email address. Both are returned for a store that is in password-protected state.
Root cause
The endpoint on google-shopping.shopifycloud.com serves product data for a given shop and product id without enforcing the store's password protection. The endpoint returns merchant-side attributes such as the channel id and the account email for a password-protected store, reachable by anyone who knows the shop domain and a product id. The report does not describe the server-side code, so the exact check that is missing is not stated; The report does not describe the server-side code.
Impact
An attacker who knows a victim store's domain and a product id can retrieve the merchant's email address and channel id from a store that is otherwise private behind password protection. The researcher frames this as sensitive information disclosure from stores that are meant to be very private. For stores without password protection the attack is easier, because the product id can be obtained from the public storefront. The report does not enumerate further consequences beyond the disclosure of these fields.
Fix
The report does not describe a fix or a vendor response.
Variants to test
Hunting notes
The signal is a response that includes attributes about the merchant, such as an email or a channel id, rather than only public product fields. The researcher set up a store, enabled password protection, and showed the merchant email and channel id in the response.
What happened, in plain words
Shopify is a platform that lets anyone run an online shop. Many shop owners add extra apps to their shop, and one of them is the Google Sales Channel, made by Shopify itself. It connects a shop to Google Shopping, so products can appear in Google's shopping results.
A shop owner can put their shop behind a password. This is called password protection: visitors cannot see the shop or its products until they type the password. It is the shop's privacy switch, like a lock on a front door.
The researcher found that a web address used by the Google Sales Channel returns two pieces of information even when the shop is locked with a password. The two pieces are a channel identifier and the owner's email address. Anyone who knows the shop's web address and one product id can ask that server for the page and read those values.
Before going further, two ideas that come up constantly below:
- An endpoint is a specific web address on a server that does one job. Think of a large office building: the building is the server, and each counter inside is an endpoint. You walk to the counter that handles your request.
- An API is a way for one computer program to talk to another over the internet, usually by requesting a web address and getting data back instead of a normal web page. It is like a service window: you pass a request through the window and receive an answer.
Context
The target is the Google Sales Channel, one of the apps that Shopify develops and lists on apps.shopify.com. Shop owners install it on their Shopify shop to connect the shop to Google Shopping.
The report opens with a scale argument: the app's listing on apps.shopify.com shows 5407 reviews, and the researcher believes the real number of Shopify shops using the Google channel is higher than that, so a flaw here would reach many shops.
The feature involved is the product endpoint on google-shopping.shopifycloud.com, which takes a shop domain and a product id as parameters. A parameter is a named value you attach to a web address, usually after a ?, to tell the server what you want. In ?shop=...&id=..., shop and id are parameters and the parts after the equals signs are their values.
The researcher found that this endpoint returns fields that should not be public, specifically data-channel-id and data-user-email, and that it does so even when the shop is behind Shopify's password protection. A field here means one named piece of data inside the response, written as an attribute in the page's HTML. HTML is the language web pages are written in; attributes are extra labels inside HTML tags, such as data-user-email="...", that carry values a program can read.
Setup
The preconditions are simple and need no special tooling beyond a browser and a Shopify shop you control:
- A Shopify shop at
your-store.myshopify.comwith the Google channel installed. - Password protection enabled on that shop, so the shop front is private.
- At least one product in the shop, whose product id you know.
A product id is the internal number Shopify uses to identify one product. It is not the product name; it is a label the system uses behind the scenes, like a barcode on a box.
The attacker side needs only the victim's shop domain and a product id. The report notes that for shops without password protection, obtaining the product id is easier, because the shop front is publicly browsable.
Finding it
The researcher was looking at the Google Sales Channel and its product endpoint. The endpoint accepts a shop parameter and an id parameter, and the response embeds attributes in the HTML. Two of those attributes, data-channel-id and data-user-email, carry values that belong to the shop owner rather than to the public product view.
The data comes back even though the shop is password protected.
Exploitation
Step 1: Install the Google channel
Install the Google channel on your-store.myshopify.com.
Step 2: Enable password protection
Enable password protection on your-store.myshopify.com. This puts the shop front in the private state that the vulnerability is meant to respect.
Step 3: Add a product
Add a new product in the Shopify shop. Its product id is what the next step needs.
Step 4: Request the Google Shopping product endpoint
Go to the following URL, replacing PRODUCT ID with the Shopify product id:
google-shopping.shopifycloud.com/shopify/products?shop=your-store.myshopify.com&id=PRODUCT ID&locale=en
Line by line:
google-shopping.shopifycloud.comis the server being asked. It is the host named in the URL./shopify/productsis the path, the specific counter inside that server that deals with products.?starts the list of parameters.shop=your-store.myshopify.comtells the server which shop you are asking about.&id=PRODUCT IDtells it which product, by its id. The&separates one parameter from the next.locale=ensets the language or regional setting, here English.
The shop parameter selects the shop, id selects the product, and locale=en sets the locale. The request is made directly against the google-shopping.shopifycloud.com host, not against the shop's own domain.
Step 5: Read the disclosed fields in the response
The response contains the leaked values as HTML attributes:
data-channel-id="70715703461"
data-user-email="[redacted]"
Line by line:
data-channel-id="70715703461"is an attribute nameddata-channel-idwhose value is the channel identifier, here the number70715703461.data-user-email="[redacted]"is an attribute nameddata-user-emailwhose value is the shop owner's email address.
data-channel-id is the channel identifier and data-user-email is the shop owner's email address. Both are returned for a shop that is in password-protected state.
Root cause
The endpoint on google-shopping.shopifycloud.com serves product data for a given shop and product id without enforcing the shop's password protection. The endpoint returns shop-owner-side attributes such as the channel id and the account email for a password-protected shop, reachable by anyone who knows the shop domain and a product id.
The report does not describe the server-side code, so the exact check that is missing is not stated; The report does not describe the server-side code.
Impact
An attacker who knows a victim shop's domain and a product id can retrieve the shop owner's email address and channel id from a shop that is otherwise private behind password protection. The researcher frames this as sensitive information disclosure from shops that are meant to be very private.
Information disclosure is the security term for a system revealing data to someone who should not have it. It is not about breaking in or changing anything; it is about reading what should have stayed hidden, like finding that a sealed envelope was actually made of glass.
For shops without password protection the attack is easier, because the product id can be obtained from the public shop front. The report does not enumerate further consequences beyond the disclosure of these fields.
Fix
The report does not describe a fix or a vendor response. Unauthenticated means the requester has not logged in or proven who they are; the server answers anyone.
Variants to test
Hunting notes
The signal is a response that includes attributes about the shop owner, such as an email or a channel id, rather than only public product fields.
The researcher set up a shop, enabled password protection, and showed the shop owner email and channel id in the response. Reproducible means someone else can follow the same steps and see the same result, which is what turns a suspicion into a confirmed bug.
Glossary
- API: a way for one program to request data or actions from another over the internet, usually by calling a web address and receiving data back.
- Attribute: a named value written inside an HTML tag, such as
data-user-email="...", that carries data a program can read. - Channel id: an identifier for a sales channel connection, here the value returned in
data-channel-id. - Endpoint: one specific web address on a server that performs one job.
- Field: one named piece of data inside a response.
- HTML: the language web pages are written in, made of tags and attributes.
- Information disclosure: a flaw where a system reveals data to someone who should not have access to it.
- Locale: a language or regional setting, here
enfor English. - Parameter: a named value attached to a web address after a
?, used to tell the server what you want. - Password protection: a Shopify setting that hides a shop front behind a password so only people with the password can view it.
- Product id: the internal number Shopify uses to identify a single product.
- Recon: reconnaissance, the early phase of gathering information about a target before testing it.
- Reproducible: a result that someone else can obtain by following the same steps.
- Response: what a server sends back after a request.
- Unauthenticated: not logged in and not identified to the server, so the server answers anyone.