Re:WTFJS?
by est on Friday February 12, 2010 @09:41PM
(#1122427)
I smell a potential DOM injection XSS here.
[ Parent
| on HN ]
How? The only reaon this works is that 'this' in a function that is not called on an object will default to the global object (window for browser js).
So just saying 'this' in an arbitrary function has the same effect.