damage to the timeline so that comment fields cannot be displayed or not available to all members in the store
A discount code containing an HTML image tag with an error handler was used as a product name, and when that name was hashtagged in the timeline the comment field failed to display and returned a server error. An attacker could disrupt the shop's timeline comments for all members.
Originally disclosed on HackerOne
- Fixed in 3 days
- Disclosed after 9 days
see https://a-alert-b-y000-b-finda.myshopify.com/admin/discounts/416981811222
I tried to make a discount code with a product name and a discount code like: ± <img src = x onerror = alert (1)> ±
when I havehtag (#) the product name on the timeline (comment) and I get a "server error" reply and it causes crashes to the timeline, so comments are automatically inactive or non-existent.
This can be done by members who want to destroy the shop, so that all members of the shop feel the impact.
step for reproduction
- create a product name and discount code using a payload like: ± <img src = x onerror = alert (1)> ±
- Product name hashtags in the timeline
- The comment field cannot be displayed
Impact
The comment field cannot be displayed
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
The comment field cannot be displayed, disrupting the timeline for all shop members.
What the attacker needed
Access to create products and discount codes; ability to post in the timeline
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 shop lets people name products and discount codes. Someone put special code in a product name that looks like a picture tag. When that name was used in a comment, the comment area broke and showed an error instead of working. This means one person could stop everyone from using comments.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.