Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐:
搜索:
您的位置: Linux安全网 > Linux安全 > » 正文

中易广告联盟系统(ZYADS) 漏洞

来源: 未知 分享至:

作者:q1ur3n

中易广告联盟系统(ZYADS) sql注入和本地包含漏洞解析

在index/news.php 1-31行

  1. <?  
  2. include_once("top.php");  
  3.  
  4.       $newsid = intval($_GET['id']);  
  5.         
  6.       $to_type = addslashes($_GET['type']);  
  7.         
  8.       if ($to_type=='index')  
  9.       {  
  10.           $to_type_s =" and to_type=1";  
  11.       }  
  12.         
  13.        if ($to_type=='webuser')  
  14.       {  
  15.           $to_type_s =" and to_type!=3";  
  16.       }  
  17.         
  18.        if ($to_type=='webadver')  
  19.       {  
  20.           $to_type_s =" and to_type!=2";  
  21.       }  
  22.         
  23.       $newssql = 'select * from zyads_news WHERE `id` =\'' . $newsid . '\'   
  24.  
  25. '.$to_type_s.'';  
  26.       
  27.       $newsre=$db->query($newssql);  
  28.       $newsrow = $db->fetch_array($newsre);  
  29.       if (emptyempty($newsrow)){  
  30.  
  31.         zyads_message('zyads_news');  
  32.       }  
  33. ?> 


可以看到$to_type没定义或者不等于index,webuser,webadver的话 那么$to_type_s是没有定义的

这时候我们就可以提交一个$to_type_s变量来进行sql注入。简单的注入,呵呵。

 

在/code/adview_cpa_html.php 1-46行

  1. <?php  
  2. /*********************/ 
  3. /*                   */ 
  4. /*  Version : 5.1.0  */ 
  5. /*  Author  : RM     */ 
  6. /*  Comment : 071223 */ 
  7. /*                   */ 
  8. /*********************/ 
  9.  
  10. _obfuscate_JQYdYn1jfBI

最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史