HDWIKI鸡肋SQL注入(PHP弱类型实例)

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

### 简要描述: 见drops中@小飞发了一篇文章:http://drops.wooyun.org/tips/4483 我一直认为没有实例的文章不是好文章,于是来帮他加个实例,由PHP弱类型造成的SQL注入,非常典型。 为了不拉低大号的平均rank,小号交起~~嘿 ### 详细说明: /control/list.php 109行 ``` function dofocus(){ $doctype = $this->get[2]; switch($doctype){ case 2: $type = 'hot'; $navtitle = $this->view->lang['hotDoc']; break; case 3: $type = 'champion'; $navtitle = $this->view->lang['wonderDoc']; break; default: $doctype = 1; $navtitle = $this->view->lang['focusDoc']; $type = 'focus'; } $url = 'list-focus-'.$doctype; $this->get[3] = empty($this->get[3]) ? NULL : $this->get[3]; $page = max(1, intval($this->get[3])); $start_limit = ($page - 1) * $this->setting['list_focus']; $total=100; $num=10; $count=$this->db->fetch_total('focus',"type=$doctype"); $count=($count<$total)?$count:$total; $list=$_ENV['doc']->get_focus_list($start_limit,$this->setting['list_focus'],$doctype); $departstr=$this->multi($count, $this->setting['list_focus'], $page,$url); $this->view->assign('navtitle',$navtitle);...

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