
DO NOT USE FOR ANYTHING REAL. Simple springboot sample app with vulnerability CVE-2021-44228 aka "Log4Shell"
针对 CVE-2021-44228 的漏洞容器构建示例。
除了高度受控的安全测试外,请勿用于任何其他目的。 此仓库包含一个示例应用程序,该程序故意使用了含有危险远程代码执行漏洞的依赖项。即使在受控环境中,也不应将此软件暴露于公共网络。
存在漏洞 CVE-2021-44228(又名 "Log4Shell")的简单 Spring Boot 示例应用程序
要构建 Spring Boot 示例应用的 Java WAR 文件:
./mvnw package
要为 x86/amd64 构建容器镜像:
podman build --platform linux/amd64 -t log4shell:0.1 . -f ./Dockerfile.amd64
要为 OS390 构建容器镜像:
podman build --platform s390x -t log4shell:os390 ./ -f ./Dockerfile.os390