PHPCMS_V9 (get_linkage.php) 本地文件包含漏洞

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

由于文件get_linkage.php对于用户提交的变量未过滤,导致本地文件包含漏洞的产生。 相关代码如下: /api/ get_linkage.php <code>case 'ajax_select': $parent_id = $_GET['parent_id'] ? intval($_GET['parent_id']) : 0; $keyid = $_GET['keyid']; ajax_select($parent_id,$keyid); 函数ajax_select在相同文件中有定义 function ajax_select($parentid,$keyid) { $datas = getcache($keyid,'linkage'); $infos = $datas['data']; $json_str = "["; $json = array(); foreach($infos AS $k=>$v) { if($v['parentid'] == $parentid) { $r = array('region_id' => $v['linkageid'], 'region_name' => $v['name']); $json[] = JSON($r); } } $json_str .= implode(',',$json); $json_str .= "]"; echo $json_str; }</code> 变量$keyid未经过滤进入到函数getcache中 Getcache函数在文件/ phpcms/libs/functions/ global.func.php中 <code>function getcache($name, $filepath='', $type='file', $config='') { pc_base::load_sys_class('cache_factory','',0); if($config) { $cacheconfig = pc_base::load_config('cache'); $cache =...

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