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


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
- Create a page on a site you control with an image tag whose src value contains an embedded image tag with an error handler.
- Open the Ecommerce Store Grader tool and submit the URL of that page.
- 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.