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

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

缺陷编号:wooyun-2015-091052

漏洞标题:中国移动旗下校讯通人人通Getshell含二十多处数据库信息

相关厂商:中国移动通信集团有限公司

漏洞作者: 黄口小儿

提交时间:2015-01-10 16:47

修复时间:2015-02-24 16:48

公开时间:2015-02-24 16:48

漏洞类型:命令执行

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-01-10: 细节已通知厂商并且等待厂商处理中
2015-01-15: 厂商已经确认,细节仅向厂商公开
2015-01-25: 细节向核心白帽子及相关领域专家公开
2015-02-04: 细节向普通白帽子公开
2015-02-14: 细节向实习白帽子公开
2015-02-24: 细节向公众公开

简要描述:

中国移动通信集团有限公旗下的人人通,校讯通。站点Getshell,黑客可利用数据库连接,可导致注册人员学生名单以及个人信息泄露。

详细说明:

http://rrt.m-school.cn
站点存在Struts漏洞,可以获取Getshell
在菜刀里可以执行很大权限,可以获取众多数据库链接信息

ROOT/WEB-INF/classes/db.properties
db_url=jdbc:mysql://192.168.20.105:3306/phpcms_v957?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
db_user=root
db_pass=cdqidi


002:批量数据库链接信息

#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.101:3306/xxt_survey6?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=2
MAX_CONNECTION=100
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.100:3306/xxt3?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
#eBKAUjecu!
MIN_CONNECTION=3
MAX_CONNECTION=300
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.103:3306/smapp?&useUnicode=true&characterEncoding=gbk&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=2
MAX_CONNECTION=20
MAX_CONNECT_TIME=90
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.101:3306/xxt_statistics?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=2
MAX_CONNECTION=50
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.101:3306/xxt_survey4?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=2
MAX_CONNECTION=100
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.100:3306/xxt_center?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=5
MAX_CONNECTION=500
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.101:3306/xxt_survey5?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=2
MAX_CONNECTION=100
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.100:3306/xxt5?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
#eBKAUjecu!
MIN_CONNECTION=3
MAX_CONNECTION=300
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.101:3306/xxt_survey2?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=2
MAX_CONNECTION=100
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.103:3306/smapp_backup?&useUnicode=true&characterEncoding=gbk&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=2
MAX_CONNECTION=20
MAX_CONNECT_TIME=30
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.101:3306/xxt_assi6?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=2
MAX_CONNECTION=100
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.100:3306/xxt6?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
#eBKAUjecu!
MIN_CONNECTION=3
MAX_CONNECTION=300
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.101:3306/xxt_assi4?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=2
MAX_CONNECTION=100
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.100:3306/xxt4?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
#eBKAUjecu!
MIN_CONNECTION=3
MAX_CONNECTION=300
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.101:3306/xxt_survey3?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=2
MAX_CONNECTION=100
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.103:3306/gwapp?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=2
MAX_CONNECTION=10
MAX_CONNECT_TIME=90
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.100:3306/xxt2?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=3
MAX_CONNECTION=300
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.101:3306/xxt_assi5?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=2
MAX_CONNECTION=100
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.101:3306/xxt_att?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=2
MAX_CONNECTION=20
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.101:3306/xxt_assi2?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=2
MAX_CONNECTION=100
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log
#project must have following properties:
LOG=off
TRACE=off
#database properties
DATABASE_TYPE=sqlserver
JDBC_DRIVER=com.mysql.jdbc.Driver
CONNECTION_URL=jdbc:mysql://192.168.20.101:3306/xxt_assi3?&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
LOGIN_ID=root
LOGIN_PASSWORD=cdqidi
MIN_CONNECTION=2
MAX_CONNECTION=100
MAX_CONNECT_TIME=50
IDLETIME=2
DB_LOG_FILE=db.log

漏洞证明:

1.png


数据库连接地址不一样!!!莫以为我发的是同一个。仔细对照。

修复方案:

升级+重新划分配置。

版权声明:转载请注明来源 黄口小儿@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2015-01-15 08:31

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT向中国移动集团公司通报,由其后续协调网站管理单位处置.按通用软件漏洞案例评分,rank 8

最新状态:

暂无


漏洞评价:

评论

  1. 2015-01-10 17:15 | D_in ( 普通白帽子 | Rank:413 漏洞数:62 | 到我嘴里来)

    ccav看这里

  2. 2015-01-10 17:18 | 黄口小儿 ( 普通白帽子 | Rank:163 漏洞数:49 | coffeesafe的号子)

    @D_in 别闹,小漏洞。只是标题写的厉害。。