shopifyapps.com XSS on sales channels via currency formatting
The currency formatting setting on a Shopify store could be used to inject script that executed in the admin interface of several sales channel apps.
Originally disclosed on HackerOne
- Triaged in 2 hours
- Fixed in 30 hours
- Paid in 5 days
- Disclosed after 5 days
pinterest, twitter, buy button and facebook sales channels vulnerable to xss via currency formatting.
steps to reproduce:
- remove pinterest, twitter, buy button and facebook sales channels at *.myshopify.com/admin/channels
- go to *.myshopify.com/admin/settings/general
- change currency formating as shown at the
currency_formatting.jpg(check attachment) - add pinterest, twitter, buy button and facebook sales channels at *.myshopify.com/admin/channels
- check pinterest, twitter and buy button tabs
- create collection and add a product to it (skip this step if you already have collection with product)
- go to facebook tab --> shop (
*.myshopify.com/admin/apps/shopify-facebook/collections)
Attachments



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 currency formatting value was rendered into the sales channel admin pages without proper output encoding or sanitisation.
What the attacker needed
Access to store admin settings
How it was found
- Remove the Pinterest, Twitter, Buy Button and Facebook sales channels from the store admin.
- Open the general settings page.
- Change the currency formatting to the value shown in the attached image.
- Add the Pinterest, Twitter, Buy Button and Facebook sales channels back.
- Check the Pinterest, Twitter and Buy Button tabs.
- Create a collection with a product, then open the Facebook shop collections page.
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.
A shop owner can change how prices look. The report says this setting could be used to inject code that ran in the sales channel admin pages.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.