Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a definitive anti-XSS library for PHP?

Tags:

I already know how XSS works, but finding out all the many different ways to inject malicious input is not an option.

I saw a couple libraries out there, but most of them are very incomplete, ineficient, or GPL licensed (when will you guys learn that GPL is not good to share little libraries! Use MIT)

like image 759
HappyDeveloper Avatar asked Oct 20 '10 02:10

HappyDeveloper


1 Answers

OWASP offers an encoding library, on which time has been spent to handle the various cases.

Obsolete: http://www.owasp.org/index.php/Category:OWASP_Encoding_Project

Now at http://code.google.com/p/reform/
and OWASP's antiXSS specific library is at: http://code.google.com/p/php-antixss/

like image 82
atk Avatar answered Oct 21 '22 21:10

atk