Skip to content
XSS Disclosed report Beginner

XSS on ecommerce.shopify.com

The Shopify Ecommerce Store Grader tool displayed image src attribute values from a tested website without filtering them, so a crafted src value containing an image tag with an error handler executed script in the grader page. An attacker could run JavaScript in the context of ecommerce.shopify.com when a victim loaded a link to the grader with a malicious site URL.

abze Follow

Originally disclosed on HackerOne

  • Triaged in 6 days
  • Fixed in 5 months
  • Paid in 5 months
  • Disclosed after 5 months

Hello! I would like to report about XSS on ecommerce.shopify.com domain.

Here is a PoC that gives You alert box with "123" content: https://ecommerce.shopify.com/grader?url=imdb.jurgens.lv

This Ecommerce Store Grader Tool gives You a list of sources of image tags that should have "alt" attribute on tested website (screenshot "where.png"). So, on Your website (imdb.jurgens.lv in my case), You can create <img> tag with the "src" attribute value "111<img src=1 onerror=alert(123)>". Then put link to Your website to this Grader Tool and after that it will show You error block "Some of the images on your homepage are missing ALT tags." which will contain Your <img> tag "src" attribute with embed <img> tag there.

You can see full example of source on http://imdb.jurgens.lv

Generally, this vulnerability exists because of no filtering in shown "src" attributes.

Thanks!

Attachments

poc_ecommerce.png
poc_ecommerce.png From the original on HackerOne
where.png
where.png

The original report as published on HackerOne, by abze. 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 grader inserted untrusted image src attribute values into its HTML output without encoding or filtering them, allowing injected markup to be rendered.

Impact

An attacker could execute script in the ecommerce.shopify.com origin when a victim opened a crafted grader link, though the report does not demonstrate any action beyond an alert box.

What the attacker needed

Attacker controls a website; victim opens a crafted grader link

How it was found

  1. Create a page on a site you control with an image tag whose src value contains an embedded image tag with an error handler.
  2. Open the Ecommerce Store Grader tool and submit the URL of that page.
  3. The tool lists image sources missing alt attributes and renders the crafted src value, triggering the script.

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 website can include pictures from other sites by naming their address in an image tag. This tool looked at a site you give it and then printed those picture addresses back on its own page without cleaning them. Because the printed text could itself contain a new image tag with a script that runs on error, the script ran on the Shopify page instead of just being shown as text.

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 abze

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.