齐博cmsV7整站系统sql注入

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

### 简要描述: 应该逻辑有点小错误? ### 详细说明: http://down.qibosoft.com/down.php?v=v7 刚下载来测试的 发现点问题。 ``` function Add_S($array){ foreach($array as $key=>$value){ if(!is_array($value)){ @eregi("['\\\"&]+",$key) && die('ERROR KEY!'); $value=str_replace("&#x","& # x",$value);//过滤一些不安全字符 $value=preg_replace("/eval/i","eva l",$value);//过滤不安全函数 !get_magic_quotes_gpc() && $value=addslashes($value); $array[$key]=$value; }else{ $array[$key]=Add_S($array[$key]); } } return $array; } ``` @eregi("['\\\"&]+",$key) && die('ERROR KEY!'); 这个对数组中的key并没有过滤得很完善。 如果提交[1'][2] 这样的数组 那么进入这个匹配的就会是2 不会被匹配出 退出。 __ inc/label_module.php中 ``` if($jobs=='show') { if(!$_COOKIE[Admin]&&!$web_admin) { showerr("你无权查看"); } //获取头与尾的标签 preg_replace('/\$label\[([\'a-zA-Z0-9\_]+)\]/eis',"label_array_hf('\\1')",read_file(getTpl("head",$head_tpl))); preg_replace('/\$label\[([\'a-zA-Z0-9\_]+)\]/eis',"label_array_hf('\\1')",read_file(getTpl("foot",$foot_tpl))); //$label_hf为头部的检索数组,检查头部有多少个标签 is_array($label_hf) || $label_hf=array();...

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