Skip to content
XSS Disclosed report Beginner

Bulk Discount App in myshopify.com exposes http://bulkdiscounts.shopifyapps.com vulnerable to XSS

A Shopify app for bulk discounts did not sanitise product and collection names, so a name containing HTML markup was rendered as code on the app's own domain. An attacker who could set such a name could run script in the context of the app's domain.

nismo Follow

Originally disclosed on HackerOne

  • Triaged in 22 days
  • Fixed in 2 months
  • Paid in 22 days
  • Disclosed after 2 months

Installing the Bulk Discount App in *.myshopify.com (which requires a paid basic plan) makes the bulkdiscounts.shopifyapps.com vulnerable to XSS due to non sanitized input in products and collections.

POC:

  1. Enter a product name or a collection such as "><img src=x onerror=prompt(document.domain)> and save it.
  2. Install the Shopify BulkDiscounts App
  3. Go to Apps -> Shopify BulkDiscounts
  4. Click on "Create One now" or "New Discount Set"

Due to improper sanitization XSS occurs in the shopifyapps.com domain !!

Thanks

Attachments

appxss.png
appxss.png From the original on HackerOne

The original report as published on HackerOne, by nismo. 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 app inserted product and collection names into its pages without escaping them, so markup in a name was treated as HTML.

Impact

Script could run in the shopifyapps.com origin, which could let an attacker act as the app on that domain; the report does not show a concrete attack beyond a prompt.

What the attacker needed

A paid Shopify basic plan; ability to set a product or collection name

How it was found

  1. Save a product or collection whose name contains HTML markup.
  2. Install the Bulk Discounts app on the store.
  3. Open the app from the Apps menu.
  4. Start creating a new discount set.

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.

When a website shows text you typed, it should treat it as plain text. Here the app put the product name into the page as if it were part of the page's code, so a name crafted to look like code ran as code. That lets an attacker run their own script in a victim's browser on the app's domain.

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 nismo

View all

11 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.