This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit

CRV2 InputValMicrosoftWebProtectionLibrary

Revision as of 16:34, 19 April 2014 by Michael Hidalgo (talk | contribs)

Jump to: navigation, search

Microsoft Web Protection Library

Microsoft Web Protection Library or MWPL for short, provides a set of Microsoft .NET assemblies that help you to protect Web applications against Cross Site Scripting (XSS) and SQL Injection attacks. At the heart of MVPL, there are two built-in mechanisms to protect your applications. In one hand there is a library to protect against XSS called AntiXSS Library and in the other hand there is Security Engine Runtime that protects against XSS and SQL Injection attacks.

AntiXSS Library V4.2.1

Microsoft AntiXSS Library helps you to protect against Cross Site Scripting. This library provides encoding functions for input, including HTML attributes, CSS and JavaScript. AntiXSS implements a whitelisting approach, which means that any character that is not part of the white list,is going to be encoded using rules based on the encoding type. Namely, AntiXSS provides two interesting approaches : 1. It works as an encoding library for the following types:

  • HTMLEncode
  • URLEncode
  • JavaScriptEncode
  • VisualBasicScriptEncode
  • XMLEncode

2. It works as a HTML Sanitization library by :

  • Providing a white-list based sanitization
  • It sanitizes HTML pages or fragments