Skip to content
XSS Disclosed report Beginner

Xss At Shopify Email App

An XSS flaw in the Shopify Email app editor executed when content containing a payload was copied, rather than immediately.

shaktiranjan867 Follow

Originally disclosed on HackerOne

  • Triaged in 29 hours
  • Fixed in 35 days
  • Paid in 9 days
  • Disclosed after 3 months

Hello Team, i have found a Xss on the Shopify email app, but it's a bit wired, it's not executing directly but when i am coping the code it is getting executed.

step-1: Navigate to https://s1-aug.myshopify.com/admin/apps/shopify-email/editor/3694417 step-2: Add the xss pay load anywhere like subject, preview text or in the selection body section. "/><img src=x onerror=alert(document.domain)> step-3: copy the written code

Xss will be fired.

Impact

Code injection leads to xss

Attachments

recording-1631624647311.webm From the original on HackerOne

The original report as published on HackerOne, by shaktiranjan867. 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 editor failed to sanitise or encode user-supplied content before rendering it, and the copy action triggered rendering of the stored markup.

Impact

An attacker could run script in the context of the Shopify Email editor, which could lead to actions being taken on behalf of the victim, though the report only states code injection leads to XSS.

What the attacker needed

Access to the Shopify Email app editor

How it was found

  1. Open the Shopify Email app editor for a store.
  2. Enter a payload containing an image tag with an error handler in the subject, preview text or body.
  3. Copy the entered content.
  4. The script executes.

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.

Cross-site scripting, or XSS, is when a website lets someone insert code that then runs in another person's browser. Here, the email editor accepted a snippet containing an image tag with an error handler, and that code only ran when the text was copied. This matters because code running in a victim's browser can act as that user.

What is XSS?

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

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.