DESTOON 补丁没补好导致的注射

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

### 简要描述: 2014-07-22 .应该对关键的地方打补 ### 详细说明: $post = daddslashes(dstripslashes($post)); 打的补丁只是对 修改资料的$post做了daddslashes的措施 但是 注册的时候还是能注册特殊字符的 .找了一处 可以利用的地方 ``` extract($USER, EXTR_PREFIX_ALL, ''); ``` //common.inc.php中的初始化(登录) /module/quote/price.inc.php 24-28 ``` if($_userid) $post['company'] = $_company;//这里使用了 require DT_ROOT.'/module/'.$module.'/price.class.php'; $do = new price; if($do->pass($post)) { $do->add($post); //进入流程 ``` price.class.php中 ``` function add($post) { global $MOD, $L; $post = $this->set($post); $sqlk = $sqlv = ''; foreach($post as $k=>$v) { if(in_array($k, $this->fields)) { $sqlk .= ','.$k; $sqlv .= ",'$v'"; } // 遍历数据 } $sqlk = substr($sqlk, 1); $sqlv = substr($sqlv, 1); $this->db->query("INSERT INTO {$this->table} ($sqlk) VALUES ($sqlv)");//进入查询流程 $this->itemid = $this->db->insert_id(); $this->update($this->itemid, $post); $this->product($this->itemid, $post['pid']); return $this->itemid; } ``` 由于有个转义符破坏了单引号所以可以注入 再看他的 strip_sql这个 更新了下 加了个+号但是还是可以绕过的 ```...

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