Skip to content
XSS Disclosed report Beginner

XSS in myshopify.com Admin site in TAX Overrides

A collection name containing an image tag with an onerror handler was not sanitised when displayed in the tax override deletion confirmation, allowing script execution. An attacker could run arbitrary JavaScript in the admin's browser when the admin deletes the override.

nismo Follow

Originally disclosed on HackerOne

  • Triaged in 24 hours
  • Fixed in 26 days
  • Paid in 26 days
  • Disclosed after 26 days

POC: If you create a collection such as "><IMG SRC=x onerror=prompt(7)> and then go to Settings / Taxes and select "Add a tax override" then on the "Add Tax Override for Rest of World" select the previously created collection of "><IMG SRC=x onerror=prompt(7)> you can see it on the screen (addtax.png).

If you press the recycle bin "Delete Entire Override" (delete.png) then XSS is happening (xss.png)

Thanks

Attachments

addtax.png
addtax.png From the original on HackerOne
xss.png
xss.png

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

Impact

An attacker could execute JavaScript in the admin's browser.

What the attacker needed

Ability to create a collection; admin visits tax override page

How it was found

  1. Create a collection with a name containing an image tag with an onerror handler.
  2. Go to Settings / Taxes and select 'Add a tax override'.
  3. In 'Add Tax Override for Rest of World', select the malicious collection.
  4. Press the recycle bin 'Delete Entire Override' to trigger the XSS.

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 collection name was saved with HTML code in it. When an admin later deleted a tax override for that collection, the page showed the name without cleaning it, so the code ran. This let an attacker run their own script in the admin's browser.

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.