The site I found an XSS on appears to be using mod_security. Anything with "<script" or "< script" in the URL returns a 403 page. Googling around shows that there are numerous possible workarounds to the filter; however, I'm not sure how I can combine it with bypassing Chrome's filter.
<svg><script>//
alert(1)</script> works with Chrome (due to a current bug in Chrome's XSS filter), but not mod_security, due to mod_security not allowing <script
<img src="x:blah" onerror="alert(1)"> seems to bypass mod_security, but Chrome strips onerror and all other on attributes.
Both these filters are definitely vulnerable, but I don't know how to make something that'll bypass both.
I control the attribute of an <a onclick="">, and there's no escaping or filtering done by the web app itself. So "> does break me out. I only control that one variable though.
Any ideas?
Thanks.
Edited 1 time(s). Last edit at 04/02/2012 09:35PM by serpentine85.
Chrome's XSS filter seems to filter all "on" attributes, including "onload" "onerror" "onmouseover" etc.
However, there is a current bug in Chrome's filter that allows the injection of only <script> tags in combination with some comments. And yet Apache mod_security seems to ONLY filter <script> tags in the URL, while not doing much about filtering attributes. mod_security blocks < script, < sCrIpT, and all derivations of that.
Odds are there's no way to slip in a "<script" past mod_security, and unless I find a new unpatched exploit with Chrome's filter (and I fiddled around with various things for a while, but all the bugs are found within <script> tag parsing and nothing else), this is probably gonna be impossible.