POC详情: 8874fc838dabdd51286a34b3f34752cba7963152

来源
关联漏洞
标题: Apache Log4j 代码问题漏洞 (CVE-2021-44228)
描述:Apache Log4j是美国阿帕奇(Apache)基金会的一款基于Java的开源日志记录工具。 Apache Log4J 存在代码问题漏洞,攻击者可设计一个数据请求发送给使用 Apache Log4j工具的服务器,当该请求被打印成日志时就会触发远程代码执行。
描述
Patch Pulsar Docker images with Log4J 2.17.1 update to mitigate Apache Log4J Security Vulnerabilities including Log4Shell
介绍
# Patch pulsar images with Apache Log4J 2.17.1 upgrade

Covers [CVE-2021-44228](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44228), [CVE-2021-45046](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45046), [CVE-2021-45105](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45105) [CVE-2021-44832](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44832)

See [Log4J Security Vulnerabilities and upgrades](https://logging.apache.org/log4j/2.x/security.html) for more information.


see the [Dockerfile](Dockerfile) for the solution

## Building and pushing patched docker images

example usage:
```
# build and tag image
docker build --build-arg=ORIGINAL_IMAGE=apachepulsar/pulsar-all:2.8.1 . -t lhotari/pulsar-all:2.8.1-log4j-patched
# verify
docker run --rm -it lhotari/pulsar-all:2.8.1-log4j-patched bash -c 'ls /pulsar/lib' | grep log4j
# push image
docker push lhotari/pulsar-all:2.8.1-log4j-patched
```
文件快照

[4.0K] /data/pocs/8874fc838dabdd51286a34b3f34752cba7963152 ├── [ 640] Dockerfile ├── [4.0K] lib │   ├── [203K] org.apache.logging.log4j-log4j-1.2-api-2.17.1.jar │   ├── [295K] org.apache.logging.log4j-log4j-api-2.17.1.jar │   ├── [1.7M] org.apache.logging.log4j-log4j-core-2.17.1.jar │   ├── [ 24K] org.apache.logging.log4j-log4j-slf4j-impl-2.17.1.jar │   └── [ 35K] org.apache.logging.log4j-log4j-web-2.17.1.jar ├── [ 11K] LICENSE └── [ 939] README.md 1 directory, 8 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。