Im getting more into preventing xss attacks and one of the ways I’m doing that is by finding and fixing exploits. I noticed that i see document.vulnerable in alot of the attacks I’ve logged.
I can’t seem to find much documentation on this so I’m left wondering what does it do or what is it for?
AFAIK it’s just a way of testing if an attack works. You try to inject a script containing
document.vulnerable = trueinto a page, then you go to the page and see if document.vulnerable is set.