phpyun某功能对参数处理不严可导致sql注入

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

### 简要描述: 学习中......少装不努力,老大搞IT!!! ### 详细说明: phpyun 个人会员中心 member/model/index.class.php $_COOKIE["usertype"];参数存在注入, 从下面代码中可以看到$data["usertype"] 直接读取COOKIE的值,带入到sql中, sql未对值进行过滤处理 ``` function msg_action(){ if($_GET["del"]){ $nid=$this->obj->DB_delete_all("userid_msg","`id`='".$_GET["del"]."' and `uid`='".$this->uid."'"); isset($nid)?$this->obj->ACT_msg("index.php?C=msg","删除成功"):$this->obj->ACT_msg("index.php?C=msg","删除失败"); } $this->public_action(); $urlarr=array("C"=>"msg","page"=>"{{page}}"); $pageurl=$this->url("index","index",$urlarr); $this->get_page("userid_msg","`uid`='".$this->uid."' and type!='1' order by id desc",$pageurl,"20"); if($_GET["c_uid"]){ $data["c_uid"]=$_GET["c_uid"]; $data["inputtime"]=mktime(); $data["p_uid"]=$_COOKIE["uid"]; $data["usertype"]=$_COOKIE["usertype"]; $data["com_name"]=$_GET["c_name"]; $haves=$this->obj->DB_select_once("blacklist","`p_uid`=".$data["p_uid"]." and `c_uid`=".$data["c_uid"]." and `usertype`=".$data["usertype"]."");...

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