|
Saud
This code works on htmlpurifierMay 19, 2009 12:57AM |
i got it from http://ha.ckers.org/xss.html and it works on my form.
|
Saud
Re: This code works on htmlpurifierMay 19, 2009 12:58AM |
<IMG SRC="javascript:alert('XSS');">
i got it from http://ha.ckers.org/xss.html and it works on my form.
|
Saud
Re: This code works on htmlpurifierMay 19, 2009 01:07AM |
|
Re: This code works on htmlpurifier May 19, 2009 01:11AM |
Admin Registered: 6 years ago Posts: 2,632 |
|
Re: This code works on htmlpurifier May 19, 2009 01:12AM |
Admin Registered: 6 years ago Posts: 2,632 |
|
Woogie
Re: This code works on htmlpurifierFebruary 04, 2010 09:25PM |
|
Woogie
Re: This code works on htmlpurifierFebruary 04, 2010 09:27PM |
|
Woogie
Re: This code works on htmlpurifierFebruary 04, 2010 09:29PM |
|
Woogie
Re: This code works on htmlpurifierFebruary 04, 2010 09:33PM |
|
Woogie
Re: This code works on htmlpurifierFebruary 04, 2010 09:33PM |
|
aeno
Re: This code works on htmlpurifierJuly 15, 2010 02:06PM |
<a href="http://aeno.co.cc/abc/" target="_blank">aeno.co.cc/abc/</a>
|
aeno
Re: This code works on htmlpurifierJuly 15, 2010 02:07PM |
|
Philip
Re: This code works on htmlpurifierAugust 30, 2011 07:27AM |
|
Brian
Re: This code works on htmlpurifierSeptember 14, 2011 12:36AM |
|
al
Re: This code works on htmlpurifierNovember 05, 2011 08:39AM |
|
electrocity
Re: This code works on htmlpurifierNovember 26, 2011 07:50AM |
" onclick='alert(50)' "
But i can't test it here, it's only in a hmtl input field. saved to database and rerender
THe code with tags are filtered correctly. i cannont proove it here, but all my tests are working.
i used this to prevent all javascript .
$value = preg_replace('@<[\/\!]*?[^<>]*?>@si','',$value);//remove all html tags
$value = (string)preg_replace('#on[a-z](.+?)\)#si','',$value);//replace start of script onclick() onload()...
$value = trim(str_replace('"', ' ', $value),"'") ;
$value = (string)preg_replace('#^\'#si','',$value);//replace ' at start
BUt it's not perfect because this can remove unwanted chars.