易思espcms某处sql注入漏洞,附详细分析与POC代码

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

### 简要描述: 小菜刚学代码审核 ### 详细说明: 文件 /interface/forummain.php中$userid未过滤进入sql语句 第17行到32行 ``` function in_list() { parent::start_pagetemplate(); parent::member_purview(0, $this->mlink['orderlist']); include_once admin_ROOT . 'public/class_pagebotton.php'; $lng = (admin_LNG == 'big5') ? $this->CON['is_lancode'] : admin_LNG; $page = $this->fun->accept('page', 'G'); $page = isset($page) ? intval($page) : 1; $pagesylte = 1; $pagemax = intval($this->CON['bbs_max_list']); $userid = $this->ec_member_username_id; if (empty($userid)) { $this->callmessage($this->lng['db_err'], $_SERVER['HTTP_REFERER'], $this->lng['gobackurlbotton']); } $db_table = db_prefix . 'bbs'; $db_where = " WHERE userid=$userid"; $countnum = $this->db_numrows($db_table, $db_where); ``` parent::member_purview的定义了如何获取$this->ec_member_username_id在文件/public/class_connector.php第415行 ``` function member_purview($userrank = false, $url = null, $upurl = false) { $this->ec_member_username =...

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