discuz!6.x/7.x存在sql注入
問題出在 editpost.inc.php的281行,對用戶提交的polloption數(shù)組直接解析出來帶入SQL語句,因為默認(rèn)只對數(shù)組值過濾,而不過濾鍵,所以會導(dǎo)致一個DELETE注入。
$pollarray['options']=$polloption;
if($pollarray['options']){
if(count($pollarray['options'])>$maxpolloptions)
{showmessage('post_poll_option_toomany');}
foreach($pollarray['options']as$key=>$value){//這里直接解析出來沒處理$key
if(!trim($value)){
$db->query("DELETE FROM {$tablepre}polloptions WHERE polloptionid='$key' AND tid='$tid'");unset($pollarray['options'][$key]);}}
DELETE注入:
可以利用updatexml報錯注入,如:


利用extractvalue報錯
