PHP云人才系统最新版1处SQL注入(union select)

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

### 简要描述: PHP云人才系统最新版1处SQL注入(union select),无需登陆,可取任意数据。 官网demo测试。 ### 详细说明: 最新版全局过滤函数修改:config/db.safety.php ``` 27 function gpc2sql($str,$str2) { 28 29 if(preg_match("/select|insert|update|delete|union|load_file|outfile/is", $str)) 30 { 31 exit(safe_pape()); 32 } 33 34 if(preg_match("/select|insert|update|delete|union|load_file|outfile/is", $str2)) 35 { 36 exit(safe_pape()); 37 } 38 39 40 $arr=array("sleep"=>"��leep"," and "=>" an d "," or "=>" ��r ","%20"=>" ","select"=>"��elect","update"=>"��pdate","count"=>"��ount","chr"=>"��hr","truncate"=>"��runcate","union"=>"��nion","delete"=>"��elete","insert"=>"��nsert","<"=>"&lt;",">"=>"&gt;","\""=>"&quot;","'"=>"&acute;","--"=>"- -","\("=>"��","\)"=>"��","00000000"=>""); 41 42 foreach($arr as $key=>$v){ 43 $str = preg_replace('/'.$key.'/isU',$v,$str); 44 } 45 return $str; 46 } ``` 里面把"00000000"直接过滤为了"", 为UNION注入提供了方法。 UNION select写成UNI00000000ON%20sel00000000ect就没问题了,经过gpc2sql后,就又变成了UNION select。 UNI00000000ON%20se00000000lect =>...

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