Category:OWASP AntiSamy Project .NET
|Project Name||OWASP AntiSamy .NET Project|
|Short Project Description||This project is API for validating rich HTML/CSS input from users without exposure to cross-site scripting and phishing attacks.|
|Key Project Information||Project Leader
New BSD License
OWASP SoC 08
|Release Status||Main Links||Related Projects|
What is AntiSamy .NET?
Philosophically, AntiSamy .NET is a departure from all contemporary security mechanisms. Generally, the security mechanism and user have a communication that is virtually one way, for good reason. Letting the potential attacker know details about the validation is considered unwise as it allows the attacker to "learn" and "recon" the mechanism for weaknesses. These types of information leaks can also hurt in ways you don't expect. A login mechanism that tells the user, "Username invalid" leaks the fact that a user by that name does not exist. A user could use a dictionary or phone book or both to remotely come up with a list of valid usernames. Using this information, an attacker could launch a brute force attack or massive account lock denial-of-service. So, we get that.
Unfortunately, that's just not very usable in this situation. Typical Internet users are largely ineffective when it comes to writing HTML/CSS, so where do they get their HTML from? Usually they copy it from somewhere out on the web. Simply rejecting their input without any clue as to why is jolting and annoying. Annoyed users go somewhere else to do their social networking.
Socioeconomically, AntiSamy .NET is a have-not enabler. Private companies like Google, MySpace, eBay, etc. have come up with proprietary solutions for solving this problem. This introduces two problems. One is that proprietary solutions are not usually all that good, and even if they are, well - naturally they're reluctant to share this hard-earned IP for free. Fortunately, we just don't care. We don't see any reason why only these private companies should have this functionality, so we are releasing this for free.
The OWASP licensing policy (further explained in the membership FAQ) allows OWASP projects to be released under any approved open source license. Under these guidelines, AntiSamy .NET is distributed under a BSD license.
There's 4 steps in the process of integrating AntiSamy. Each step is detailed in the next section, but the high level overview follows:
1. Download AntiSamy from its home on Google Code 2. Choose one of the standard policy files that matches as close to the functionality you need: * antisamy-slashdot.xml (more to come in the near future) 3. Tailor the policy file according to your site's rules 4. Call the API from the code
Tailoring the policy file
OWASP AntiSamy mailing list
Emailing the project lead
=== Issue tracking ===
This category currently contains no pages or media.