espcms最新版本CSRF直接getshell

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

### 简要描述: espcms 最新版本csrf 直接getshell ### 详细说明: 这里我们首先看看,存在的代码问题 management.php:(lines:711-741): ``` function onsetsave() { $db_table = db_prefix . 'config'; $commandfile = admin_ROOT . 'datacache/command.php'; if (!$this->fun->filemode($commandfile)) { exit('false'); } $old_ishtml = $this->CON['is_html']; $sql = 'SELECT * FROM ' . $db_table . ' WHERE groupid<=8 AND isline=0 ORDER BY groupid'; $rs = $this->db->query($sql); while ($rsList = $this->db->fetch_assoc($rs)) { if ($rsList['groupid'] == 5 && !$this->get_app_view('bbs', 'isetup')) { continue; } if ($rsList['groupid'] == 7 && !$this->get_app_view('touch', 'isetup')) { continue; } if ($rsList['groupid'] == 8 && !$this->get_app_view('im', 'isetup')) { continue; } $db_set = "value='" . $this->fun->accept($rsList['valname'], 'P') . "'"; $db_where = 'id=' . $rsList['id']; $this->db->query('UPDATE ' . $db_table . ' SET ' . $db_set . ' WHERE ' . $db_where); } $this->db->query("UPDATE $db_table SET value='" . admin_URL . "' WHERE...

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