PHPB2B延迟盲注可能导致获取管理员hash

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

### 简要描述: phpB2B延迟盲注,可以获取管理员的hash值 ### 详细说明: 测试版本: 0415更新版 测试权限: 需要注册会员 测试详细: product.php ``` 大概在69行时,判断$id为整形,后续有调用$_GET[‘id’],执行删除操作,导致了sql注入。 if (isset($_GET['do']) || isset($_GET['act'])) { $do = trim($_GET['do']); $action = null; if(isset($_GET['action'])) $action = trim($_GET['action']); if (isset($_GET['id'])) { $id = intval($_GET['id']); } ..... if (($do == "del" || $_GET['act']=="del") && !empty($id)) { $res = $product->read("id",$id); if($res){ if(!$product->del($_GET['id'], $conditions)){ flash(); } }else { flash("data_not_exists");; } } } ``` 跟着del ``` function del($ids, $conditions = null, $table = null) { $del_id = $this->primaryKey; $tmp_ids = $condition = null; if (is_array($ids)) { $tmp_ids = implode(",",$ids); $cond[] = "{$del_id} IN ({$tmp_ids})"; $this->catchIds = serialize($ids); } else { $cond[] = "{$del_id}=".intval($ids); $this->catchIds = $ids; } if (!empty($table)) { $table_name = $this->table_prefix.$table; }else{ $table_name = $this->getTable(); }...

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