<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.owasp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Max-mccarty</id>
		<title>OWASP - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.owasp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Max-mccarty"/>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php/Special:Contributions/Max-mccarty"/>
		<updated>2026-05-29T15:01:02Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.2</generator>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=.NET_AntiXSS_Library&amp;diff=190027</id>
		<title>.NET AntiXSS Library</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=.NET_AntiXSS_Library&amp;diff=190027"/>
				<updated>2015-02-20T17:18:18Z</updated>
		
		<summary type="html">&lt;p&gt;Max-mccarty: /* XSS References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''NOTE''': This content is a work in progress and all contribution is welcome.  Please contact [[User:Jeff Knutson|Jeff Knutson]] with questions, ideas, corrections, etc.&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
Cross site scripting (XSS) continues to show up on the [[Category:OWASP_Top_Ten_Project|OWASP Top Ten Project]] as a top vulnerability every year.  While very pervasive and dangerous, this vulnerability is possible to mitigate with reasonable developer effort.  This page is dedicated to helping mitigate this vulnerability in regards to the Microsoft .NET Framework.&lt;br /&gt;
&lt;br /&gt;
== Attack Vectors ==&lt;br /&gt;
&lt;br /&gt;
The primary XSS attack vectors are:&lt;br /&gt;
* Reflected XSS&lt;br /&gt;
* Persistent XSS  &lt;br /&gt;
Please see [[Cross-site_Scripting_(XSS)#Stored and Reflected XSS Attacks|Cross-site Scripting (XSS)]] for more detail regarding reflected and persistent XSS attacks.&lt;br /&gt;
    &lt;br /&gt;
== Options ==&lt;br /&gt;
*Microsoft AntiXSS Library&lt;br /&gt;
**Available in ASP.NET 4.5 in the System.Web.Security.AntiXss namespace&lt;br /&gt;
**Available prior to ASP.NET 4.5 via NuGet: (https://www.nuget.org/packages/AntiXSS/)  Install-Package AntiXSS (currently v4.2.1 as of 4/12/2014)&lt;br /&gt;
***Using Microsoft AntiXSS as the default encoder in ASP.NET instructions (Phil Haack has a good link on this already:  http://haacked.com/archive/2010/04/06/using-antixss-as-the-default-encoder-for-asp-net.aspx/)&lt;br /&gt;
*Microsoft Web Protection Library (WPL) - via http://wpl.codeplex.com/workitem/17246&lt;br /&gt;
**there seem to be known issues with this library: http://blog.securityps.com/2012/12/alternatives-to-microsofts-wpl-sanitizer.html&lt;br /&gt;
*OWASP Anti-Samy Library (https://www.owasp.org/index.php/Category:OWASP_AntiSamy_Project_.NET)&lt;br /&gt;
**Not recently maintained (good option for to get it up to date and relevant!!!)&lt;br /&gt;
&lt;br /&gt;
== XSS References ==&lt;br /&gt;
* https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)&lt;br /&gt;
* http://www.troyhunt.com/2010/05/owasp-top-10-for-net-developers-part-2.html&lt;br /&gt;
* http://www.troyhunt.com/2011/12/free-ebook-owasp-top-10-for-net.html&lt;br /&gt;
* http://pluralsight.com/training/Courses/TableOfContents/owasp-top10-aspdotnet-application-security-risks (NOTE: This is a subscription course from PluralSight - I am not advocating any website or product, but found this to be useful and informative)&lt;br /&gt;
* http://devproconnections.com/aspnet/microsoft-adds-antixss-tool-aspnet-45&lt;br /&gt;
* https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet&lt;br /&gt;
* [http://ha.ckers.org/xssAttacks.xml RSnake's XSS Cheatsheet] (in XML format; nice for programatic consumption!)&lt;br /&gt;
* http://lockmedown.com/preventing-xss-in-asp-net-made-easy (A comprehensive guide to cover the full web stack against XSS)&lt;br /&gt;
* TODO add more references here -- Troy Hunt's material is excellent - I'm sure more people in the world have content which would be valuable here to reference...&lt;br /&gt;
&lt;br /&gt;
== TODO ==&lt;br /&gt;
=== Now ===&lt;br /&gt;
* Look at the Microsoft implementations&lt;br /&gt;
* See what work has already been done in the OWASP space for XSS&lt;br /&gt;
* See what other work has been done for XSS (both .NET and other technology stacks)&lt;br /&gt;
* Illustrate vulnerabilities and how to mitigate them (e.g. WebGoat.NET) &lt;br /&gt;
* See if we can get the OWASP Anti-Samy project back into relevance&lt;br /&gt;
&lt;br /&gt;
=== Future ===&lt;br /&gt;
* Dream big here!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- categories --&amp;gt;&lt;br /&gt;
[[Category:OWASP_.NET_Project]]&lt;/div&gt;</summary>
		<author><name>Max-mccarty</name></author>	</entry>

	</feed>