Thinksaas SQL注入漏洞

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

### 简要描述: Thinksaas SQL注入#5 ### 详细说明: Thinksaas SQL注入#5 积分兑换——物品编辑处,sql注入。 第一处:/app/redeem/action/edit.php ``` case "do": $goodsid = intval($_POST['goodsid']); $cateid = intval($_POST['cateid']); $title = trim($_POST['title']);//问题在这里 $content = trim($_POST['content']);//问题在这里 $nums = intval($_POST['nums']); $scores = intval($_POST['scores']); $return = intval($_POST['return']); $new['redeem']->update('redeem_goods',array( 'goodsid'=>$goodsid, ),array( 'cateid'=>$cateid, 'title'=>$title,//问题在这里 'content'=>$content,//问题在这里 'nums'=>$nums, 'scores'=>$scores, 'return'=>$return, )); ``` 这里没有过滤,进入update: ``` public function update($table, $conditions, $row) { $where = ""; if (empty ( $row )) return FALSE; if (is_array ( $conditions )) { $join = array (); foreach ( $conditions as $key => $condition ) { $condition = $this->escape ( $condition ); $join [] = "{$key} = {$condition}"; } $where = "WHERE " . join ( " AND ", $join ); } else { if (null != $conditions) $where = "WHERE " ....

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