====== ASP.NET MVC Security Check List ====== ===== Threat: Cross-Site Scripting ===== * Use the [[http://wpl.codeplex.com|AntiXSS]] NuGet package - or not as it appears to be very broken and abandoned at the moment. * Review all views and ensure that content is correctly encoded. As the Razor engine HTML encodes by default, look for: * Any use of ''@Html.Raw()'' and ensure that there is no possible way a malicious user could inject anything into it. * Any use of ''@...'' in JavaScript code. This should be encoded with the ''@Encoder.JavaScriptEncode()'' method. ===== Threat: Cross-Site Request Forgery ===== * Review all views ensure that all ''