So, in a section of an ASP.NET MVC2 app, I have to allow HTML input from a typical rich textbox. So, I added an attribute on the controller method to turn off MVC's brute-force input validation.
But, now what do I do to prevent XSS attacks. So far, I have looked and found:
- AntiXSS: looks good, but the whitelist seems to not be editable. Also, I am having issues getting it to work, for some reason. After adding the reference to the dll, the compiler still sees a missing assembly.
- Antisamy: allows configuration of a whitelist, but the last time the .NET was updated was in 2009. That doesn't inspire confidence in security software.
What else? Are there other libraries for cleaning up HTML-containing input such that it is easy to configure allowable tags?