Vul Code:
//搜索词预处理
$searchword = empty($searchword) ? ” : cutstr(trim($searchword),50,”);
$_da['searchword'] = $searchword;
if($searchword){
$filterstr .= ($filterstr ? ‘&’ : ”).’searchword=’.rawurlencode(stripslashes($searchword));
}
//预处理搜索模式:标题subject、关键词keywords、内容fulltxt、会员mname
$searchmode = empty($searchmode) ? ‘subject’ : trim($searchmode);
if(!in_array($searchmode,array(‘subject’,'keywords’,'fulltxt’,'mname’))) $searchmode = ‘subject’;
08CMS小说搜索型注入
if(!$chid){
$nochids = empty($nochids) ? ” : trim($nochids);
if($nochids){//排除的模型
$_da['nochids'] = $nochids;
$filterstr .= ($filterstr ? ‘&’ : ”).”nochids=”.$nochids;
$nochids = explode(‘,’,$nochids);
if($nochids) $wherestr .= ” AND a.chid “.multi_str($nochids,1);
}
POC:
出现搜索型注入。
08CMS小说搜索型注入
在searchword这出现问题
08CMS小说搜索型注入