cmseasy 后台缓存配置文件未过滤一个字符导致getshell

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

### 简要描述: cmseasy 管理员身份 后台缓存配置文件,没有过滤一个字符导致getshell ### 详细说明: 啥都不说了 直接看代码: 我们直接到 [<img src="https://images.seebug.org/upload/201409/03203135fa2dcf3697b98e92455002f069d4073b.png" alt="10.png" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201409/03203135fa2dcf3697b98e92455002f069d4073b.png) 然后我们分析一下代码: system.php:(lines:67): ``` if(addslashes($_POST['customer_info'])) { $customer_info='true'; }else{ $customer_info='false'; } $GLOBALS['celsysteminfo']->conf(addslashes($_POST['url']), addslashes($_POST['template']), addslashes($_POST['company']),addslashes($_POST['companyinfos']), addslashes($_POST['language']), $customer_info, addslashes($_POST['tracker_refresh'])); //提交修改后,需自动刷新一次,才能显示修改的内容 echo "<script>window.history.go(-1);</script>"; } ``` 我们跟进到$GLOBALS['celsysteminfo']->conf 这个函数看看,在这里之前他进行了addslashes,分析一下,如果我们提交的一个值为aaa\' 转义之后就是aaa\\\' 那么我们进入: system.class.php:(14): ``` $this->file = preg_replace("/\['company'\] = '.*';/",'[\'company\'] =...

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