Shopify · Report #124429
Stored XSS via "Free Shipping" option (Discounts)
Validstatus
$500bounty
1upvotes
5 Apr 2016disclosed
How it was found
POC steps:
-
Go to the customers page and add a new search group named as "><img src=x onerror=prompt(7) (see img1.png)
-
Go to the discounts page, create a new discount code and mark the "Free Shipping" option.
-
Open a web proxy (i.e. tamper data) and press the "save discount" button.
-
Through the web proxy (i.e. tamper data) modify the POST request and change the value of "discount%5Bapplies_to_resource%5D" to "customer_saved_search" and the "discount%5Bapplies_to_id%5D" to "1131411463" (the id of the new search group in step 1)(see img2.png).
-
Xssed (img3.png)
Click Save