3 ms·
It's the DOM element to upvote this whole post at the top of the page. I agree that polluting JavaScript's global space is bad. I wonder if this could be a vec
by pmontra 12y ago
It's the DOM element to upvote this whole post at the top of the page.
I agree that polluting JavaScript's global space is bad. I wonder if this could be a vector for some attack. Probably not because it would be well known for a long while (but I didn't know about it untile 5 minutes ago, thanks).
- Lambdanaut 12y agoIt seems like you'd need to inject malicious Javascript into the page before you could run an attack like this. General XSS attacks would be the larger, encompassing vulnerability.
- nitrogen 12y agoIt seems malicious HTML could do it, too, if the global element variable replaces some other global object of the same name.
- Ded7xSEoPKYNsDd 12y agoJust recently I saw this used to make a script fail at a very specific point. A script running later expected the first one to have run successfully, opening up an attack vector that works even with CSP in place. The full story is here: https://github.com/ctfs/write-ups/tree/master/hack-lu-ctf-2014/hotcows-dating https://github.com/ctfs/write-ups/tree/master/hack-lu-ctf-20...