Apache Log4j 远程代码执行漏洞的响应 (CVE-2021-44228)--vCenter Server6.5实践--临时解决方案

简介: Apache Log4j 远程代码执行漏洞的响应 (CVE-2021-44228)核弹级漏洞,在VMware补丁没出之前,根据官方临时缓解办法总结出的方案

0.建议操作前系统做快照

vMON

1.停止vcenter服务

cd "C:\Program Files\VMware\vCenter Server\bin"

执行

.\service-control --stop --all

2.备份vsphere-ui.json和vsphere-client.json到c:\Log4j(环境中没有更改的用例,所以备份可以忽略)

到

C:\ProgramData\VMware\vCenterServer\cfg\vmware-vmon\svcCfgfiles\

执行 :

copy .\vsphere-ui.json ,.\vsphere-client.json C:\Log4j\

 

3.接下来检查两个脚本中的参数,但是在我的环境中一条都没有符合

example of types of lines to remove

// Enable remote debugging

// NOTE: Use this option only when you really need it. Don't keep it on by default.

//       It has the potential to cause memory leaks. For further details, see

//       https://bugs.openjdk.java.net/browse/JDK-8164921 as well as our own

//      observations at PR 1878411, comments 21, 33, 34, and 35

//"-Xdebug",

//"-Xnoagent",

//"-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8002",

// Enable JMX

//"-Dcom.sun.management.jmxremote",

//"-Dcom.sun.management.jmxremote.port=9876",

//"-Dcom.sun.management.jmxremote.local.only=false",

//"-Dcom.sun.management.jmxremote.authenticate=false",

//"-Dcom.sun.management.jmxremote.ssl=false",5-bri

 

C:\ProgramData\VMware\vCenterServer\cfg\vmware-vmon\svcCfgfiles\vsphere-client.json

example of types of lines to remove

// This option will be removed soon. See JIRA VSUIP-180

// Enable remote debugging

// NOTE: Use this option only when you really need it. Don't keep it on by default.

//       It has the potential to cause memory leaks. For further details, see

//       https://bugs.openjdk.java.net/browse/JDK-8164921 as well as our own

//      observations at PR 1878411, comments 21, 33, 34, and 35

//"-Xdebug",

//"-Xnoagent",

//"-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8001",

// Enable JMX

//"-Dcom.sun.management.jmxremote",

//"-Dcom.sun.management.jmxremote.port=9875",

//"-Dcom.sun.management.jmxremote.local.only=false",

//"-Dcom.sun.management.jmxremote.authenticate=false",

//"-Dcom.sun.management.jmxremote.ssl=false",

 

Note: Do not simply uncomment these lines. Remove them completely.

4.执行vMON.py

cd "C:\Program Files\VMware\vCenter Server\python"

.\python.exe vMON.py

5.重启服务(建议最后执行)

 .\service-control --start --all

 .\service-control --status

STS

1.备份wrapper.conf

copy C:\ProgramData\VMware\vCenterServer\runtime\VMwareSTSService\conf\wrapper.conf C:\Log4j

\sts-wrapper.conf

2.在Java Additional Parameters末尾添加

wrapper.java.additional.27="-Dlog4j2.formatMsgNoLookups=true"

image.png

 

PSC

1.备份

c:\ProgramData\VMware\vCenterServer\runtime\vmware-psc-client\conf\wrapper.conf

C:\Program Files\VMware\vCenter Server\bin> copy c:\ProgramData\VMware\vCenterServer\runtime\vmware-psc-client\conf\wrapper.conf C:\Log4

j\psc-client-wrapper.conf

2.编辑wrapper.conf,添加 wrapper.java.additional.23="-Dlog4j2.formatMsgNoLookups=true"到# Java Additional Parameters" 的最后一项

image.png

Identity Management Service

1.备份注册表

2.在此处添加-Dlog4j2.formatMsgNoLookups=true

image.png

Component Manager

1.备份C:\Program Files\VMware\vCenter Server\cm\lib\log4j-core.jar

copy 'C:\Program Files\VMware\vCenter Server\cm\lib\log4j-core.jar' C:\Log4j\log4j-core.jar

 

2.重命名为.zip,解压log4j-core.jar,删除

core.jar.zip\org\apache\logging\log4j\core\lookup\JndiLookup.class

3.去掉.zip后缀

最后重启vcenter服务

C:\Program Files\VMware\vCenter Server\bin> .\service-control --start --all

目录
相关文章
|
数据采集 分布式计算 Hadoop
开源数据质量解决方案——Apache Griffin入门宝典(上)
开源数据质量解决方案——Apache Griffin入门宝典
3032 0
|
JSON 关系型数据库 Apache
十亿 JSON 秒级响应:Apache Doris vs ClickHouse,Elasticsearch,PostgreSQL
JSONBench 是一个为 JSON 数据而生的数据分析 Benchmark,在默认设置下,Doris 的性能表现是 Elasticsearch 的 2 倍,是 PostgreSQL 的 80 倍。调优后,Doris 查询整体耗时降低了 74%,对比原榜单第一的 ClickHouse 产品实现了 39% 的领先优势。本文详细描述了调优思路与 Doris 调优前后的性能表现,欢迎阅读了解~
1430 0
十亿 JSON 秒级响应:Apache Doris vs ClickHouse,Elasticsearch,PostgreSQL
|
消息中间件 安全 物联网
海量接入、毫秒响应:易易互联基于 Apache RocketMQ + MQTT 构筑高可用物联网消息中枢
易易互联科技有限公司是吉利集团旗下专注于换电生态的全资子公司,致力于打造安全、便捷、便宜的智能换电网络。公司依托吉利GBRC换电平台,基于电池共享与车辆全生命周期运营,已布局超470座换电站,覆盖40多个城市,计划2027年达2000座。面对海量设备高并发连接、高实时性要求及数据洪峰挑战,易易互联采用阿里云MQTT与RocketMQ构建高效物联网通信架构,实现稳定接入、低延迟通信与弹性处理,全面支撑其全国换电网络规模化运营与智能化升级。
866 1
海量接入、毫秒响应:易易互联基于 Apache RocketMQ + MQTT 构筑高可用物联网消息中枢
|
人工智能 运维 监控
智能运维与数据治理:基于 Apache Doris 的 Data Agent 解决方案
本文基于 Apache Doris 数据运维治理 Agent 展开讨论,如何让 AI 成为 Doris 数据运维工程师和数据治理专家的智能助手,并在某些场景下实现对人工操作的全面替代。这种变革不仅仅是技术层面的进步,更是数据运维治理思维方式的根本性转变:从“被动响应”到“主动预防”,从“人工判断”到“智能决策”,从“孤立处理”到“协同治理”。
2019 11
智能运维与数据治理:基于 Apache Doris 的 Data Agent 解决方案
|
存储 SQL BI
毫秒级查询性能优化实践!基于阿里云数据库 SelectDB 版内核:Apache Doris 在极越汽车数字化运营和营销方向的解决方案
毫秒级查询性能优化实践!基于阿里云数据库 SelectDB 版内核:Apache Doris 在极越汽车数字化运营和营销方向的解决方案
2508 1
毫秒级查询性能优化实践!基于阿里云数据库 SelectDB 版内核:Apache Doris 在极越汽车数字化运营和营销方向的解决方案
|
存储 SQL 数据挖掘
数据无界、湖仓无界, Apache Doris 湖仓一体解决方案全面解读(上篇)
湖仓一体架构融合了数据湖的低成本、高扩展性,以及数据仓库的高性能、强数据治理能力,高效应对大数据时代的挑战。为助力企业实现湖仓一体的建设,Apache Doris 提出了数据无界和湖仓无界核心理念,并结合自身特性,助力企业加速从 0 到 1 构建湖仓体系,降低转型过程中的风险和成本。本文将对湖仓一体演进及 Apache Doris 湖仓一体方案进行介绍。
1726 1
数据无界、湖仓无界, Apache Doris 湖仓一体解决方案全面解读(上篇)
|
Java Maven
Maven编译报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile 解决方案
在执行Maven项目中的`install`命令时,遇到编译插件版本不匹配的错误。具体报错为:`maven-compiler-plugin:3.13.0`要求Maven版本至少为3.6.3。解决方案是将Maven版本升级到3.6.3或降低插件版本。本文详细介绍了如何下载、解压并配置Maven 3.6.3,包括环境变量设置和IDEA中的Maven配置,确保项目顺利编译。
18258 5
Maven编译报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile 解决方案
|
存储 消息中间件 人工智能
AI大模型独角兽 MiniMax 基于阿里云数据库 SelectDB 版内核 Apache Doris 升级日志系统,PB 数据秒级查询响应
早期 MiniMax 基于 Grafana Loki 构建了日志系统,在资源消耗、写入性能及系统稳定性上都面临巨大的挑战。为此 MiniMax 开始寻找全新的日志系统方案,并基于阿里云数据库 SelectDB 版内核 Apache Doris 升级了日志系统,新系统已接入 MiniMax 内部所有业务线日志数据,数据规模为 PB 级, 整体可用性达到 99.9% 以上,10 亿级日志数据的检索速度可实现秒级响应。
1401 14
AI大模型独角兽 MiniMax 基于阿里云数据库 SelectDB 版内核 Apache Doris 升级日志系统,PB 数据秒级查询响应
|
存储 运维 5G
基于阿里云数据库 SelectDB 内核 Apache Doris 的实时/离线一体化架构,赋能中国联通 5G 全连接工厂解决方案
数据是 5G 全连接工厂的核心要素,为支持全方位的数据收集、存储、分析等工作的高效进行,联通 5G 全连接工厂从典型的 Lambda 架构演进为 All in [Apache Doris](https://c.d4t.cn/vwDf8R) 的实时/离线一体化架构,并凭借 Doris 联邦查询能力打造统一查询网关,数据处理及查询链路大幅简化,为联通 5G 全连接工厂带来数据时效性、查询响应、存储成本、开发效率全方位的提升。
1616 4
基于阿里云数据库 SelectDB 内核 Apache Doris 的实时/离线一体化架构,赋能中国联通 5G 全连接工厂解决方案
|
安全 Java 网络安全
Apache Struts 2 2.3.14.3 远程代码执行(CVE-2013-2134)
Apache Struts 2 2.3.14.3 远程代码执行(CVE-2013-2134)
Apache Struts 2 2.3.14.3 远程代码执行(CVE-2013-2134)

推荐镜像

更多