Microsoft AntiXSS wpl using in asp.net mvc3 applicaton
As far as i know asp.net 开发者_运维知识库mvc3
is quite secure but is there any places I can use Microsoft AntiXSS library there to get more security? http://wpl.codeplex.com/
How can I found any places inside my application where i may use this? May be some one may find anything where this library cold be used inside asp.net mvc3 ?
Well, as the owner of AntiXSS I'd obviously say yes. However I'm biased :)
AntiXSS gives you
- More encoding options - including encoding for CSS, JavaScript and LDAP (should you be querying AD from your code)
- A safe list, rather than an unsafe list. This is inherently more secure, but is slower. Whilst the default .NET blacklist is good enough, it does depend on how your systems handle input too.
Now, with AntiXSS 4.1 you can easily get AntiXSS to plug into MVC and be used as the default encoder. That's a beta right now, the code is available for download along with limited instructions on how to swap out the encoder. You should see release within before November.
It depends on how the user entered data you are trying to collect is used and if you've told the application to allow HTML.
Personally, I'd use the AntiXss Library where ever the input allows HTML to be entered and later redisplayed on the site, but otherwise, MVC3 will block HTML fairly well if you've not told it to allow HTML to be entered.
精彩评论