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

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

缺陷编号:wooyun-2015-0157807

漏洞标题:网易又一站弱口令导致Getshell

相关厂商:网易

漏洞作者: 卡卡

提交时间:2015-12-03 10:21

修复时间:2016-01-17 11:40

公开时间:2016-01-17 11:40

漏洞类型:基础设施弱口令

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-12-03: 细节已通知厂商并且等待厂商处理中
2015-12-03: 厂商已经确认,细节仅向厂商公开
2015-12-13: 细节向核心白帽子及相关领域专家公开
2015-12-23: 细节向普通白帽子公开
2016-01-02: 细节向实习白帽子公开
2016-01-17: 细节向公众公开

简要描述:

简简单单,一个弱口令,简单又粗暴。

详细说明:

http://123.58.179.79/


whois查询一下,证明此ip所属于网易

whois.png


一个LNMP安装完成的界面
phpinfo和phpmyadmin界面被删除或被改名了,但是lnmp安装会有个pureftpd的选项。
访问看看

http://123.58.179.79/ftp


ftp.png


果然没删。
根据经验,这种一键安装的环境,大多都存在弱口令,遂尝试对pureftpd进行爆破。
果不其然,不出1分钟,密码出来了

qwer1234


后来发现此密码通杀mysql和ssh。

ftplgin.png


接下来就简单了,添加一个ftp帐号,通过ftp连接,上传shell。

test.png


ftplianjie.png


整个服务器的目录文件一目了然
很快找到web目录,上传webshell

shell.png


由于php安全模式,不允许直接执行命令,但是还有办法。
不过没那个必要,通过webshell查到mysql的密码,mysql密码与ssh密码相同,都是悲剧的qwer1234,通过此密码直接连接ssh。
ssh端口为8822

root@hz-10-39:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:1f:49:9e
inet addr:123.58.179.79 Bcast:123.58.179.255 Mask:255.255.255.0
inet6 addr: fe80::216:3eff:fe1f:499e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:43826199 errors:0 dropped:0 overruns:0 frame:0
TX packets:12728656 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2927723085 (2.7 GiB) TX bytes:22349112694 (20.8 GiB)
Interrupt:23
eth1 Link encap:Ethernet HWaddr 00:16:3e:07:6c:e3
inet addr:10.130.10.39 Bcast:10.130.10.255 Mask:255.255.255.0
inet6 addr: fe80::216:3eff:fe07:6ce3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40729827 errors:0 dropped:0 overruns:0 frame:0
TX packets:5274253 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1992192046 (1.8 GiB) TX bytes:285304962 (272.0 MiB)
Interrupt:22
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1328959 errors:0 dropped:0 overruns:0 frame:0
TX packets:1328959 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:197728577 (188.5 MiB) TX bytes:197728577 (188.5 MiB)


妥妥的内网

root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:99:99:nobody:/nonexistent:/bin/sh
libuuid:x:100:101::/var/lib/libuuid:/bin/sh
sshd:x:101:65534::/var/run/sshd:/usr/sbin/nologin
strong:x:1000:4::/home/strong:/bin/sh
xiongx:x:1002:4::/home/xiongx:/bin/sh
xgtai:x:1003:4::/home/xgtai:/bin/sh
ntp:x:102:104::/home/ntp:/bin/false
Debian-exim:x:103:105::/var/spool/exim4:/bin/false
messagebus:x:104:106::/var/run/dbus:/bin/false
nagios:x:1006:1006::/home/nrpe:/sbin/nologin
bjzhangxin:x:1009:100::/home/bjzhangxin:/bin/sh
bjanduo:x:1011:4::/home/bjanduo:/bin/sh
fabric:x:1012:100::/home/fabric:/bin/sh
mysql:x:1013:1007::/home/mysql:/sbin/nologin
www:x:1014:1008::/home/www:/sbin/nologin
bjzhangfeng:x:1015:4::/home/bjzhangfeng:/bin/sh


内网就不扫了

漏洞证明:

test.png


ftplianjie.png


整个服务器的目录文件一目了然
很快找到web目录,上传webshell

shell.png


root@hz-10-39:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:1f:49:9e
inet addr:123.58.179.79 Bcast:123.58.179.255 Mask:255.255.255.0
inet6 addr: fe80::216:3eff:fe1f:499e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:43826199 errors:0 dropped:0 overruns:0 frame:0
TX packets:12728656 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2927723085 (2.7 GiB) TX bytes:22349112694 (20.8 GiB)
Interrupt:23
eth1 Link encap:Ethernet HWaddr 00:16:3e:07:6c:e3
inet addr:10.130.10.39 Bcast:10.130.10.255 Mask:255.255.255.0
inet6 addr: fe80::216:3eff:fe07:6ce3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40729827 errors:0 dropped:0 overruns:0 frame:0
TX packets:5274253 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1992192046 (1.8 GiB) TX bytes:285304962 (272.0 MiB)
Interrupt:22
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1328959 errors:0 dropped:0 overruns:0 frame:0
TX packets:1328959 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:197728577 (188.5 MiB) TX bytes:197728577 (188.5 MiB)


妥妥的内网

root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:99:99:nobody:/nonexistent:/bin/sh
libuuid:x:100:101::/var/lib/libuuid:/bin/sh
sshd:x:101:65534::/var/run/sshd:/usr/sbin/nologin
strong:x:1000:4::/home/strong:/bin/sh
xiongx:x:1002:4::/home/xiongx:/bin/sh
xgtai:x:1003:4::/home/xgtai:/bin/sh
ntp:x:102:104::/home/ntp:/bin/false
Debian-exim:x:103:105::/var/spool/exim4:/bin/false
messagebus:x:104:106::/var/run/dbus:/bin/false
nagios:x:1006:1006::/home/nrpe:/sbin/nologin
bjzhangxin:x:1009:100::/home/bjzhangxin:/bin/sh
bjanduo:x:1011:4::/home/bjanduo:/bin/sh
fabric:x:1012:100::/home/fabric:/bin/sh
mysql:x:1013:1007::/home/mysql:/sbin/nologin
www:x:1014:1008::/home/www:/sbin/nologin
bjzhangfeng:x:1015:4::/home/bjzhangfeng:/bin/sh

修复方案:

你们懂得

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


漏洞回应

厂商回应:

危害等级:低

漏洞Rank:1

确认时间:2015-12-03 11:38

厂商回复:

经审核,该IP运行非网易公司业务,此为网易合作方项目,感谢您的关注与支持。

最新状态:

暂无