cmseasy 修复不当前台无限制select union注射(绕过webscan)

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

### 简要描述: cmseasy 修复不当前台无限制select union注射 ### 详细说明: 下载最新版本: ballot_act.php: ``` function index_action() { if (front::post('submit')) { if (!front::post('ballot')) { front::alert(lang('Please_select_vote')); return false; } if (config::get('checkip')) { $time=cookie::get('vttime'); if (time() -$time <config::get('timer') * 60) { front::alert(lang('You_have_voted')); return false; } } $bid=front::$post['bid']; if (is_array(front::$post['ballot'])) { $ids=implode(',',front::$post['ballot']); } else { $ids=front::$post['ballot']; } if(preg_match('/(select|union|and|\'|"|\))/i',$ids)){ exit('非法参数'); } if(preg_match('/(select|union|and|\'|"|\))/i',$bid)){ exit('非法参数'); } $where="id in($ids)"; $data='num=num+1'; $option=new option(); $option->rec_update($data,$where); $this->_table->rec_update($data,$bid); ``` 这里初步对bid 和 ids 变量做了过滤 经过分析ids变量存在缺陷,但是比较鸡肋,无从下手,我们砖头看看bid 如果bid是一个数组会发生什么事情 rec_update: ``` function rec_update($row,$where) { $tbname=$this->name;...

0%
暂无可用Exp或PoC
当前有0条受影响产品信息