admin管理员组文章数量:1023827
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?
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?
Share Improve this question asked May 23, 2012 at 19:39 RoosterRooster 10.1k8 gold badges49 silver badges72 bronze badges 1-
1
They're probably just setting a flag,
document.vulnerable
isn't a native JS property. – Snuffleupagus Commented May 23, 2012 at 19:48
3 Answers
Reset to default 5AFAIK it's just a way of testing if an attack works. You try to inject a script containing document.vulnerable = true
into a page, then you go to the page and see if document.vulnerable is set.
From what I can find it is just a flag set by the XSS vulnerability tests. I am basing this on all the tests I have seen and
...the resulting HTML page sets a specific JavaScript value (document.vulnerable=true) then the tool marks the page as vulnerable to the given XSS...
seen in the documentation for this FF add-on: https://addons.mozilla/en-US/firefox/addon/xss-me/
I don't think it does anything, it just sets a property on the document object called vulnerable
.
When you see HTML code like: <IMG SRC="javascript:document.vulnerable=true;">
when looking at XSS attacks, it's just a way of saying "allowing JavaScript code to be inserted here is dangerous".
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?
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?
Share Improve this question asked May 23, 2012 at 19:39 RoosterRooster 10.1k8 gold badges49 silver badges72 bronze badges 1-
1
They're probably just setting a flag,
document.vulnerable
isn't a native JS property. – Snuffleupagus Commented May 23, 2012 at 19:48
3 Answers
Reset to default 5AFAIK it's just a way of testing if an attack works. You try to inject a script containing document.vulnerable = true
into a page, then you go to the page and see if document.vulnerable is set.
From what I can find it is just a flag set by the XSS vulnerability tests. I am basing this on all the tests I have seen and
...the resulting HTML page sets a specific JavaScript value (document.vulnerable=true) then the tool marks the page as vulnerable to the given XSS...
seen in the documentation for this FF add-on: https://addons.mozilla/en-US/firefox/addon/xss-me/
I don't think it does anything, it just sets a property on the document object called vulnerable
.
When you see HTML code like: <IMG SRC="javascript:document.vulnerable=true;">
when looking at XSS attacks, it's just a way of saying "allowing JavaScript code to be inserted here is dangerous".
本文标签: javascriptWhat does documentvulnerable doStack Overflow
版权声明:本文标题:javascript - What does document.vulnerable do? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745550494a2155609.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论