PHPYUN最新版SQL注入(绕过防御)

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

### 简要描述: PHPYUN最新版(phpyun_v3.1.0604_gbk)SQL注入(绕过防御) ### 详细说明: PHPYUN最新版:phpyun_v3.1.0604_gbk 文件/member/model/index.class.php ``` function resume_ajax_action() { include(PLUS_PATH."user.cache.php"); $table="resume_".$_POST['type']; $id=(int)$_POST['id']; $info=$this->obj->DB_select_once($table,"`id`='".$id."'"); $info['skillval']=$userclass_name[$info['skill']]; $info['ingval']=$userclass_name[$info['ing']]; $info['sdate']=date("Y-m-d",$info['sdate']); $info['edate']=date("Y-m-d",$info['edate']); if(is_array($info)) { foreach($info as $k=>$v) { $arr[$k]=iconv("gbk","utf-8",$v); } } echo json_encode($arr);die; } ``` 这里的$table="resume_".$_POST['type']; 没有过滤,直接进入数据库:$info=$this->obj->DB_select_once($table,"`id`='".$id."'"); 跟进DB_select_once函数: ``` function DB_select_once($tablename, $where = 1, $select = "*") { $cachename=$tablename.$where; if(!$return=$this->Memcache_set($cachename)){ $SQL = "SELECT $select FROM " . $this->def . $tablename . " WHERE $where limit 1"; $query =...

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