XSS at www.woothemes.com
A reflected cross-site scripting flaw existed on a Woothemes page because the search form's action attribute was not properly filtered. An attacker could craft a URL that, when visited in Internet Explorer with its XSS filter disabled or in an old browser, executed script in the context of the site.
Originally disclosed on HackerOne
- Fixed in 42 hours
- Paid in 42 hours
- Disclosed after 32 days
This XSS vulnerability can be used against IE browsers. There is an XSS filter in modern IE browsers, so to reproduce we should turn XSS filter off (http://answers.microsoft.com/en-us/ie/forum/ie9-windows_7/how-do-i-turn-off-cross-site-scripting-i-can-no/f3058b73-4956-e011-8dfc-68b599b31bf5?auth=1), or take an old browser without XSS filter (IE7). Bypassing an XSS filter in IE will not be covered in this report.
Tested with IE11 with XSS filter disabled and with IE7. The redirect is used to bypass query string encoding.
- Visit http://95.213.191.146/r.php?url=http%3A%2F%2Fwww.woothemes.com%2Fproduct-category%2Fwoocommerce-extensions%2F%3F%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E
- It redirects to http://www.woothemes.com/product-category/woocommerce-extensions/?"><script>alert(document.domain)</script>
- the alert is shown on www.woothemes.com
The vulnerable URL: http://www.woothemes.com/product-category/woocommerce-extensions/?"><script>alert(document.domain)</script>
The vulnerability occurs because the 'action' attribute is not properly filtered at the page:
<form class="search" id="productSearchForm" action="/product-category/woocommerce-extensions/?23946\"><script>alert(1)</script>0a7f2=1">
Screenshot is attached.
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
Root cause
Likely the application reflected user-controlled query-string data into the form's action attribute without proper output encoding or filtering.
Impact
An attacker could execute script in the context of www.woothemes.com, but only in Internet Explorer with its XSS filter disabled or in an old browser without a filter.
What the attacker needed
Victim uses IE with XSS filter off or old IE; victim visits a crafted link
How it was found
- Turn off the XSS filter in Internet Explorer or use an old browser without one.
- Visit a redirect URL that points to the vulnerable Woothemes page with a crafted query string.
- The redirect sends the browser to the Woothemes page with the script in the query string.
- The alert is shown on www.woothemes.com.
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.
Cross-site scripting (XSS) lets an attacker run their own JavaScript in another person's browser on a trusted website. Here the page put part of the web address into a form's action attribute without cleaning it, so a crafted link could make the browser run a script. The report only shows it working in Internet Explorer with its built-in XSS filter turned off, or in a very old browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.