当前位置: 代码网 > 服务器>网络安全>企业安全 > phpcms2008注射0day

phpcms2008注射0day

2008年10月08日 企业安全 我要评论
phpcms2008注射0day 中秋节到了,这里我送上phpcms2008的一枚注射漏洞!!希望各位朋友多多支持本站啊~~漏洞存在于ask/search.php文件,以下是漏洞代码:if($keywords){ $where .= &qu... 08-10-08
中秋节到了,这里我送上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

(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2025  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com