程氏CMS v3.5 app/controllers/dance.php SQL注入漏洞

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

### 0x01 漏洞详情 漏洞页面 app/controllers/dance.php ``` public function so() { $data='';$data_content=''; $fid = $this->security->xss_clean($this->uri->segment(3)); //方式 $key = $this->security->xss_clean($this->input->get_post('key', TRUE)); //关键字 $page = intval($this->input->get('p', TRUE)); //页数 if($page==0) $page=1; $key=$this->CsdjSkins->rurlencode($key); if($fid=='zm' && empty($key)){ $key=$this->security->xss_clean($this->uri->segment(4)); } $cache_id ="dance_so_".$fid."_".$key."_".$page; ``` ``` function rurlencode($string) { $key=rawurldecode($string); if($this->is_utf8($key)){ $key=iconv('UTF-8', 'GB2312', $key); } return $key; } ``` 解码一个。 ``` function Safe($arr){ // $getfilter = "'|<[^>]*?>|^\\+\/v(8|9)|\\b(and|or)\\b.+?(>|<|=|\\bin\\b|\\blike\\b)|\\/\\*.+?\\*\\/|<\\s*script\\b|\\bEXEC\\b|UNION.+?SELECT|UPDATE.+?SET|INSERT\\s+INTO.+?VALUES|(SELECT|DELETE).+?FROM|(CREATE|ALTER|DROP|TRUNCATE)\\s+(TABLE|DATABASE)"; $postfilter =...

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