Struts2命令执行漏洞--(升级struts至struts-2.3.28.1版本)

本文介绍了如何修复Struts2命令执行漏洞,主要措施包括替换相关jar包并更新到指定版本,修改struts.xml配置文件以禁用动态方法调用,以及更新web.xml中的Struts2核心控制器。通过这些步骤,可以增强系统安全性和防止潜在攻击。
摘要由CSDN通过智能技术生成

一、替换jar包
     将下列jar包
commons-beanutils-1.6.jar

commons-beanutils-1.7.jar

commons-collections-2.1.jar

commons-logging-1.0.4.jar

commons-fileupload-1.2.jar
commons-io-1.3.2.jar
commons-logging-1.1.1.jar

freemarker-2.3.8.jar

log4j-1.2.14.jar

ognl-2.6.11.jar

struts2-core-2.0.11.jar

xwork-2.0.4.jar


  替换成

commons-fileupload-1.3.1.jar

commons-io-2.2.jar
commons-logging-1.1.3.jar

freemarker-2.3.22.jar

struts2-core-2.3.28.1.jar

ognl-3.0.14.jar

asm-3.3.jar(新增)

asm-commons-3.3.jar(新增)

commons-lang3-3.2.jar(新增)

javassist-3.11.0.GA.jar

Struts2漏洞检查工具2019版 警告: 本工具为漏洞自查工具,请勿非法攻击他人网站! ==漏洞编号==============影响版本=========================官方公告==========================================影响范围===== S2-057 CVE-2018-11776 Struts 2.3 to 2.3.34,Struts 2.5 to 2.5.16 https://cwiki.apache.org/confluence/display/WW/S2-057 影响范围非常小 S2-048 CVE-2017-9791 Struts 2.3.X http://127.0.0.1:8090/struts2-showcase/integration/saveGangster.action 影响范围非常小 S2-046 CVE-2017-5638 Struts 2.3.5-2.3.31,Struts 2.5-2.5.10 http://struts.apache.org/docs/s2-046.html 和S2-045一样 S2-045 CVE-2017-5638 Struts 2.3.5-2.3.31,Struts 2.5-2.5.10 http://struts.apache.org/docs/s2-045.html 影响范围较大 S2-037 CVE-2016-4438 Struts 2.3.20-2.3.28.1 http://struts.apache.org/docs/s2-037.html 影响范围小 S2-032 CVE-2016-3081 Struts 2.3.18-2.3.28 http://struts.apache.org/release/2.3.x/docs/s2-032.html 影响范围小 S2-020 CVE-2014-0094 Struts 2.0.0-2.3.16 http://struts.apache.org/release/2.3.x/docs/s2-020.html 影响范围小 S2-019 CVE-2013-4316 Struts 2.0.0-2.3.15.1 http://struts.apache.org/release/2.3.x/docs/s2-019.html 影响范围一般 S2-016 CVE-2013-2251 Struts 2.0.0-2.3.15 http://struts.apache.org/release/2.3.x/docs/s2-016.html 影响范围非常大 S2-013 CVE-2013-1966 Struts 2.0.0-2.3.14 http://struts.apache.org/release/2.3.x/docs/s2-013.html 未添加,S2-016范围内 S2-009 CVE-2011-3923 Struts 2.0.0-2.3.1.1 http://struts.apache.org/release/2.3.x/docs/s2-009.html 未添加,S2-016范围内 S2-005 CVE-2010-1870 Struts 2.0.0-2.1.8.1 http://struts.apache.org/release/2.2.x/docs/s2-005.html 未添加,S2-016范围内
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值