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


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
- Create a collection with a name containing an image tag with an onerror handler.
- Go to Settings / Taxes and select 'Add a tax override'.
- In 'Add Tax Override for Rest of World', select the malicious collection.
- 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.