已采纳回答 / 依然c
你这样想,假如在这个页面中,我对你进行了评论,而这个评论肯定是被服务器解析的,而且这条评论会加到数据库的。如果我在这个里面加了个广告,那么每个看到这个问题的人是不是可以看到我在这里面插入的广告。我攻击的目的是不是达到了,我是不是让别人看到了我的广告
2017-03-25
最赞回答 / jxsqlzfd
domParse.js=>https://github.com/blowsie/Pure-JavaScript-HTML5-Parserencode.js=>https://github.com/mathiasbynens/he
2017-03-25
最赞回答 / kris_wwx
项目git地址:https://github.com/ickedesign/XSS_WebSecurityencode.js:可以使用https://github.com/mathiasbynens/he 中的he.jsdomParse:可以用楼上说的 https://github.com/blowsie/Pure-JavaScript-HTML5-Parser 中的htmlparser.js
2017-03-21
最新回答 / kris_wwx
项目地址:https://github.com/ickedesign/XSS_WebSecurityencode.js:可以使用 https://github.com/mathiasbynens/he 中的he.jsdomParse:可以使用 https://github.com/blowsie/Pure-JavaScript-HTML5-Parser 中的htmlparser.js
2017-03-19