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

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

缺陷编号:wooyun-2013-034670

漏洞标题:某保险客户分析系统struts2命令执行漏洞

相关厂商:cncert国家互联网应急中心

漏洞作者: YY-2012

提交时间:2013-08-21 11:27

修复时间:2013-10-05 11:27

公开时间:2013-10-05 11:27

漏洞类型:命令执行

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2013-08-21: 细节已通知厂商并且等待厂商处理中
2013-08-26: 厂商已经确认,细节仅向厂商公开
2013-09-05: 细节向核心白帽子及相关领域专家公开
2013-09-15: 细节向普通白帽子公开
2013-09-25: 细节向实习白帽子公开
2013-10-05: 细节向公众公开

简要描述:

某保险客户分析系统struts2命令执行漏洞,导致多个数据库密码泄漏

详细说明:

上海保险客户分析系统
http://114.80.84.105/fna/login.action
已上传的shell密码ninty
http://114.80.84.105/fna/guige.jsp

漏洞证明:

1.jpg


2.jpg


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/>

<!-- Oracle DataSource ��������������� -->
<!-- <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"></property>

<property name="url" value="jdbc:oracle:thin:@192.168.21.86:1521:DEXTRYS"></property>
<property name="username" value="ebofna"></property>
<property name="password" value="admin"></property>
-->
<!--
<property name="url" value="jdbc:oracle:thin:@114.80.84.106:15210:ora220"></property>
<property name="username" value="fna_prod"></property>
<property name="password" value="fna_prodpwd"></property>
-->
<!--
<property name="url" value="jdbc:oracle:thin:@114.80.84.106:15210:ora220"></property>
<property name="username" value="fna_uat"></property>
<property name="password" value="fna_uat"></property>
-->
<!--
<property name="url" value="jdbc:oracle:thin:@192.168.21.147:1521:DEXTRYS"></property>
<property name="username" value="ebofnatest"></property>
<property name="password" value="ebofnatest"></property>

</bean>
-->
<!-- MySql Datasource ���������������
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://localhost:3306/ebaofna"/>
<property name="username" value="root"/>
<property name="password" value="admin"/>
</bean>
-->

<!-- Microsoft SQL Server DataSource ���������������
<bean id="datasource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="net.sourceforge.jtds.jdbc.Driver"/>
<property name="url" value="jdbc:jtds:sqlserver://localhost:1433/������������"/>
<property name="username" value="sa" />
<property name="password" value="sa" />
</bean>
-->
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="classpath:/db.properties"/>
</bean>
<!-- JNDI DataSource ��������������� FNA_fna���������������������Datasource��������������� -->
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>${iam.jndi.name}</value>
</property>
<property name="resourceRef">
<value>false</value>
</property>
<property name="jndiEnvironment">
<props>
<prop key="java.naming.provider.url">${java.naming.provider.url}</prop>
<prop key="java.naming.factory.initial">${java.naming.factory.initial}</prop>
</props>
</property>
</bean>

<!-- JNDI DataSource ��������������� (FNA_uat���������������Datasource ���������������)
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>ebaoDs</value>
</property>
<property name="resourceRef">
<value>false</value>
</property>
<property name="jndiEnvironment">
<props>
<prop key="java.naming.provider.url">t3://192.168.154.225:7001</prop>
<prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
</props>
</property>
</bean>
-->
<!-- JPA EntityManagerFactoryBean for EntityManager -->
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence.xml" />
<property name="persistenceUnitName" value="HibernateJPAPU" />
<property name="dataSource" ref="dataSource" />
</bean>

<!-- Transaction manager for JPA -->
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory">
<ref bean="entityManagerFactory" />
</property>
</bean>

<!-- ��������������������� -->
<tx:annotation-driven transaction-manager="transactionManager"/>

</beans>

修复方案:

补丁
修改数据库连接密码

版权声明:转载请注明来源 YY-2012@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2013-08-26 00:07

厂商回复:

最新状态:

暂无


漏洞评价:

评论