Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
log4j-test — CVE-2021-44228 的演示及可能的战略性修复。 | Kitploit
工具/GitHubGitHub/strawhatasif/log4j-test
漏洞分析漏洞利用Web应用程序漏洞利用供应链安全学习与教育
GitHubstrawhatasif/log4j-test

log4j-test

CVE-2021-44228 的演示及可能的战略性修复。

查看仓库
4年前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

展示 CVE-2021-44228 的简单示例

说明

  • 为了重现此问题,我从 SpringBoot 中移除了日志传递依赖。
  • 取而代之,我引入了 spring-boot-starter-log4j2
  • spring-boot-starter-log4j2 引入了 log4j-core,它存在远程代码执行(RCE)漏洞。

运行 API

  • 在终端中运行命令 ./gradlew clean build bootRun 或者
  • 右键点击 Log4TestApplication.java 并选择 运行。

传入 JNDI 值会发生什么?

  • 由于我们解析到一个不存在的站点,我们会得到一个 ConnectException。
  • 但是,想象一下如果这是一个真实的恶意服务器会怎么样!

img.png

可能的修复?

  • 如果你使用 MAVEN - https://github.com/strawhatasif/log4j-test/tree/maven-variant
  • 位于 https://github.com/strawhatasif/log4j-test/tree/strategic-fix。

参考资料:

  • https://www.lunasec.io/docs/blog/log4j-zero-day/
  • https://www.bleepingcomputer.com/news/security/new-zero-day-exploit-for-log4j-java-library-is-an-enterprise-nightmare/
  • https://www.fastly.com/blog/digging-deeper-into-log4shell-0day-rce-exploit-found-in-log4j
下载工具