xss in the all widgets of shopifyapps.com
The padding parameter on widgets.shopifyapps.com was vulnerable to XSS via a crafted URL that runs script in Internet Explorer, but only in older versions or compatibility mode.
- Triaged in 35 hours
- Fixed in 11 days
- Paid in 17 days
- Disclosed after 17 days
i found xss in all widgets.shopifyapps.com/* (google dork:site:widgets.shopifyapps.com) the parameter "padding" is vulnerable,xss payload - }%0a{}*{x:expression(alert(1))}%0a{
xss does work in inetrnet explorer browsers( for ie10,ie11 in compatibility mode) , for ie5,ie6,ie7
for ie8,ie9 javascript is disabled, the content of page to have a strings:
<!--[if IE 8]><html class="ie ie8 no-js" lang="en"> <![endif]--> <!--[if IE 9 ]><html class="ie ie9 no-js"> <![endif]--> <!--[if gt IE 9 ]><html class="ie gt-ie9 no-js"> <![endif]-->how to reproduce:
- to use ineternet explorer browser 10, for example
- go to the page:
https://widgets.shopifyapps.com/products/a-luv-u-pet-pink-geordie-card?shop=the-mag-shop.myshopify.com&style=artgallery&image-size=medium&border-color=%23af4fcc&padding=}%0a{}*{x:expression(alert(1))}%0a{&button-text=Buy+Now+in+The+Mag+shop&destination=product
- to use compatibility mode in ie10 (to use ie7 mode by default)
- to see alert box with 1
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 padding parameter was inserted directly into a CSS style block without sanitisation, allowing CSS expression syntax to execute script in Internet Explorer.
Impact
An attacker could trigger script execution via the crafted URL, but only for users of Internet Explorer 10 or 11 in compatibility mode, or older IE versions; IE8 and IE9 had JavaScript disabled in this context.
What the attacker needed
Victim uses an affected Internet Explorer version (IE5…; victim visits a crafted URL
How it was found
- Use Internet Explorer 10 (or another affected version).
- Open the crafted URL containing the malicious padding value.
- Enable compatibility mode in IE10 so it behaves like IE7.
- Observe the alert box with '1'.
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.
XSS is a flaw where a site puts user input into a page without cleaning it, so an attacker can make the page run their own code. Here, a crafted padding value caused an alert box, but only in old Internet Explorer or when newer versions mimicked old ones.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.