OK, I was reading this article http://www.gnucitizen.org/blog/one-drop-on-a-spider-web where
pdp talks about an interesting use of the "name" DOM window property to perform a stealth XSS, similar to the classic URL fragment one where the payload is stored in
location.hash, but when you're limited to just /[a-z0-9\(\)]/ (no dots).
The limitation of this vector, though, is that you need to control the name of the window, either using the target attribute of the originating link or the name attribute of an iframe.
So I thought, is it possible to make an equally stealth attack with the same allowed characters constrains, but self-contained in the URL like the original
eval(location.hash.substring(1))?
It took 1 minute to figure out this:
with(location)with(hash)eval(substring(1))
Can I have my place in the XSS cheat sheet? ;)
--
*
hackademix.net*
There's a browser safer than Firefox... Firefox, with NoScript
Edited 1 time(s). Last edit at 06/25/2007 11:45AM by ma1.