Skip to content
XSS Disclosed report Intermediate

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.

reactors08 Follow

Originally disclosed on HackerOne

Bounty$1,000 View original
  • 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

currency_formatting.jpg
currency_formatting.jpg From the original on HackerOne
fb_channel.jpg
fb_channel.jpg
twitter_channel.jpg
twitter_channel.jpg

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

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

  1. Remove the Pinterest, Twitter, Buy Button and Facebook sales channels from the store admin.
  2. Open the general settings page.
  3. Change the currency formatting to the value shown in the attached image.
  4. Add the Pinterest, Twitter, Buy Button and Facebook sales channels back.
  5. Check the Pinterest, Twitter and Buy Button tabs.
  6. 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.

More by reactors08

View all

5 more disclosed reports, 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.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.