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

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

缺陷编号:wooyun-2015-0112761

漏洞标题:蓝港某站命令执行getshell直入内网(二)

相关厂商:linekong.com

漏洞作者: fuckadmin

提交时间:2015-05-08 10:23

修复时间:2015-05-12 11:17

公开时间:2015-05-12 11:17

漏洞类型:系统/服务补丁不及时

危害等级:高

自评Rank:13

漏洞状态:厂商已经修复

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-05-08: 细节已通知厂商并且等待厂商处理中
2015-05-08: 厂商已经确认,细节仅向厂商公开
2015-05-12: 厂商已经修复漏洞并主动公开,细节向公众公开

简要描述:

再来一发。

详细说明:

1.基本信息
站点名称:蓝港在线手游开放平台
URL:http://mp.linekong.com/login/login.do
2.存在的问题 配置不当存在invoker/JMXInvokerServlet,可远程部署war来getshell。
3.深入内网
/etc/hosts

# HEADER: This file was autogenerated at Mon Jan 30 14:47:16 +0800 2012
# HEADER: by puppet. While it can still be managed manually, it
# HEADER: is definitely not recommended.
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 lhrating.linekong.com lhrating localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
172.16.8.113 hbase10
172.16.8.114 hbase11
172.16.8.115 hbase12
172.16.8.116 hbase13
172.16.4.46 puppetmaster.linekong.com puppetmaster


/etc/passwd
root:x:0:0:root:/root:/usr/local/bash/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
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
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
avahi:x:70:70:Avahi daemon:/:/sbin/nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/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
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
avahi-autoipd:x:100:103:avahi-autoipd:/var/lib/avahi-autoipd:/sbin/nologin
euosmonitor:x:500:500::/home/euosmonitor:/usr/local/bash/bin/bash
gm:x:501:501::/home/gm:/usr/local/bash/bin/bash
jboss:x:502:502::/home/jboss:/usr/local/bash/bin/bash
msvr:x:503:503::/home/msvr:/usr/local/bash/bin/bash
rating:x:504:504::/home/rating:/usr/local/bash/bin/bash
rating4lh:x:505:505::/home/rating4lh:/usr/local/bash/bin/bash
yyecharging:x:506:506::/home/yyecharging:/usr/local/bash/bin/bash
puppet:x:52:52:Puppet:/var/lib/puppet:/sbin/nologin
zabbix:x:507:507::/:/sbin/nologin
eadmobile:x:508:508::/home/eadmobile:/usr/local/bash/bin/bash
发现部分知名企业的营业执照图片副本

3.jpg


4.jpg


4.通用的配置文件linekong-config.xml

?<?xml version="1.0" encoding="UTF-8"?>
<linekong>
<project name="epassportmid">
<property name="url">http://passportm.linekong.com/epassport_mid/xmlRpcServerServlet</property>
<property name="key">linekongline</property>
<property name="phpkey">linekongkong</property>
<property name="refreshTime">10</property>
<property name="refreshCount">10000000</property>
</project>

<project name = "eADMobile">
<property name = "loginAddress">http://mp.linekong.com</property>
<property name = "adDownloadAddress">http://tdl01.8864.com/lkcps/</property>
<property name = "saveAddress">/server/default/userInfo/</property>
<property name = "sendMessageAddress">http://passportm.linekong.com/epassport_mid/xmlRpcServerServlet</property>
<property name = "mailServerPort">25</property>
<property name = "fromAddress">lkshouyou@8864.com</property>
<property name = "userName">lkshouyou</property>
<property name = "password">abc123</property>
<property name = "mailServerHost">mail.8864.com</property>

</project>
</linekong>


数据库配置

?<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- -->
<!-- ===================================================================== -->
<!-- $Id: oracle-ds.xml,v 1.6 2004/09/15 14:37:40 loubyansky Exp $ -->
<!-- ==================================================================== -->
<!-- Datasource config for Oracle originally from Steven Coy -->
<!-- ==================================================================== -->
<datasources>

<local-tx-datasource>
<jndi-name>eadmobile</jndi-name>
<connection-url>jdbc:oracle:oci:@DB_BI</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<security-domain>eadmobileDB</security-domain>
<min-pool-size>5</min-pool-size>
<max-pool-size>100</max-pool-size>
<idle-timeout-minutes>5</idle-timeout-minutes>
<valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<new-connection-sql>select 1 from dual</new-connection-sql>
<check-valid-connection-sql>select 1 from dual</check-valid-connection-sql>
<metadata>
<type-mapping>Oracle10g</type-mapping>
</metadata>
</local-tx-datasource>
<local-tx-datasource>
<jndi-name>ereport2.0</jndi-name>
<connection-url>jdbc:oracle:oci:@DB_BI</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<security-domain>ereportDB</security-domain>
<min-pool-size>5</min-pool-size>
<max-pool-size>100</max-pool-size>
<idle-timeout-minutes>5</idle-timeout-minutes>
<valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<new-connection-sql>select 1 from dual</new-connection-sql>
<check-valid-connection-sql>select 1 from dual</check-valid-connection-sql>
<metadata>
<type-mapping>Oracle10g</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>


还是发现某黑阔后门
http://mp.linekong.com/myname/m.jsp

漏洞证明:

1.基本信息
站点名称:蓝港在线手游开放平台
URL:http://mp.linekong.com/login/login.do
2.存在的问题 配置不当存在invoker/JMXInvokerServlet,可远程部署war来getshell。
3.深入内网
/etc/hosts

# HEADER: This file was autogenerated at Mon Jan 30 14:47:16 +0800 2012
# HEADER: by puppet. While it can still be managed manually, it
# HEADER: is definitely not recommended.
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 lhrating.linekong.com lhrating localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
172.16.8.113 hbase10
172.16.8.114 hbase11
172.16.8.115 hbase12
172.16.8.116 hbase13
172.16.4.46 puppetmaster.linekong.com puppetmaster


/etc/passwd
root:x:0:0:root:/root:/usr/local/bash/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
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
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
avahi:x:70:70:Avahi daemon:/:/sbin/nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/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
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
avahi-autoipd:x:100:103:avahi-autoipd:/var/lib/avahi-autoipd:/sbin/nologin
euosmonitor:x:500:500::/home/euosmonitor:/usr/local/bash/bin/bash
gm:x:501:501::/home/gm:/usr/local/bash/bin/bash
jboss:x:502:502::/home/jboss:/usr/local/bash/bin/bash
msvr:x:503:503::/home/msvr:/usr/local/bash/bin/bash
rating:x:504:504::/home/rating:/usr/local/bash/bin/bash
rating4lh:x:505:505::/home/rating4lh:/usr/local/bash/bin/bash
yyecharging:x:506:506::/home/yyecharging:/usr/local/bash/bin/bash
puppet:x:52:52:Puppet:/var/lib/puppet:/sbin/nologin
zabbix:x:507:507::/:/sbin/nologin
eadmobile:x:508:508::/home/eadmobile:/usr/local/bash/bin/bash
发现部分知名企业的营业执照图片副本

3.jpg


4.jpg


4.通用的配置文件linekong-config.xml

?<?xml version="1.0" encoding="UTF-8"?>
<linekong>
<project name="epassportmid">
<property name="url">http://passportm.linekong.com/epassport_mid/xmlRpcServerServlet</property>
<property name="key">linekongline</property>
<property name="phpkey">linekongkong</property>
<property name="refreshTime">10</property>
<property name="refreshCount">10000000</property>
</project>

<project name = "eADMobile">
<property name = "loginAddress">http://mp.linekong.com</property>
<property name = "adDownloadAddress">http://tdl01.8864.com/lkcps/</property>
<property name = "saveAddress">/server/default/userInfo/</property>
<property name = "sendMessageAddress">http://passportm.linekong.com/epassport_mid/xmlRpcServerServlet</property>
<property name = "mailServerPort">25</property>
<property name = "fromAddress">lkshouyou@8864.com</property>
<property name = "userName">lkshouyou</property>
<property name = "password">abc123</property>
<property name = "mailServerHost">mail.8864.com</property>

</project>
</linekong>


数据库配置

?<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- -->
<!-- ===================================================================== -->
<!-- $Id: oracle-ds.xml,v 1.6 2004/09/15 14:37:40 loubyansky Exp $ -->
<!-- ==================================================================== -->
<!-- Datasource config for Oracle originally from Steven Coy -->
<!-- ==================================================================== -->
<datasources>

<local-tx-datasource>
<jndi-name>eadmobile</jndi-name>
<connection-url>jdbc:oracle:oci:@DB_BI</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<security-domain>eadmobileDB</security-domain>
<min-pool-size>5</min-pool-size>
<max-pool-size>100</max-pool-size>
<idle-timeout-minutes>5</idle-timeout-minutes>
<valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<new-connection-sql>select 1 from dual</new-connection-sql>
<check-valid-connection-sql>select 1 from dual</check-valid-connection-sql>
<metadata>
<type-mapping>Oracle10g</type-mapping>
</metadata>
</local-tx-datasource>
<local-tx-datasource>
<jndi-name>ereport2.0</jndi-name>
<connection-url>jdbc:oracle:oci:@DB_BI</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<security-domain>ereportDB</security-domain>
<min-pool-size>5</min-pool-size>
<max-pool-size>100</max-pool-size>
<idle-timeout-minutes>5</idle-timeout-minutes>
<valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<new-connection-sql>select 1 from dual</new-connection-sql>
<check-valid-connection-sql>select 1 from dual</check-valid-connection-sql>
<metadata>
<type-mapping>Oracle10g</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>


还是发现某黑阔后门
http://mp.linekong.com/myname/m.jsp

修复方案:

1.删除接口
2.限制访问

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-05-08 14:26

厂商回复:

感谢作者,已经处理。

最新状态:

2015-05-12:已修复