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

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

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

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

工具目录

分类

查看所有分类
Loading categories
Spring4Shell-POC — Spring4Shell 概念验证以及存在漏洞的应用程序 CVE-2022-22965 | Kitploit
工具/GitHubGitHub/bobtheshoplifter/spring4shell-poc
Payload生成漏洞分析漏洞利用Web应用程序漏洞利用
GitHubbobtheshoplifter/spring4shell-poc

Spring4Shell-POC

Spring4Shell 概念验证以及存在漏洞的应用程序 CVE-2022-22965

查看仓库
3771123年前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Spring4Shell-POC (CVE-2022-22965)

Spring4Shell

Docker Build Docker App Build Stars Docker Run

Spring4Shell (CVE-2022-22965) 概念验证/信息 + 一个自带易受攻击 spring4shell 应用程序的易受攻击 Tomcat 服务器。

今天凌晨,多个消息来源报告了流行的 Java 框架 Spring 中可能存在一个 RCE 漏洞。

该漏洞的命名基于它与臭名昭著的 Log4j LOG4Shell 的相似性。

关于此漏洞的详细信息

  • https://websecured.io/blog/624411cf775ad17d72274d16/spring4shell-poc
  • https://www.springcloud.io/post/2022-03/spring-0day-vulnerability
  • https://spring.io/blog/2022/03/31/spring-framework-rce-early-announcement

POC 用法

用法很简单!你可以运行 docker 镜像,或者直接运行 Python 脚本!

请参阅 vulnerable-tomcat 获取有关设置你自己的 spring4shell 易受攻击应用程序的说明 此处!

要求

  • Python3 或 Docker

Python

root@kitploit:~
pip install -r requirements.txt
poc.py --help

image

Docker

root@kitploit:~
## Dockerhub
docker pull bobtheshoplifter/spring4shell-poc:latest
docker run bobtheshoplifter/spring4shell-poc:latest --url https://example.io/
## Github docker repository
docker pull ghcr.io/bobtheshoplifter/spring4shell-poc:main
docker run ghcr.io/bobtheshoplifter/spring4shell-poc:main --url https://example.io/

image

易受攻击的 Tomcat 服务器

我现在为此制作了一个 docker 镜像,其中包含一个易受攻击的 spring + tomcat 应用程序。

该应用程序应该足以测试此漏洞。

请参阅 (vulnerable-tomcat/README.md)

缓解措施

!!(以下缓解措施仅为理论上的,因为尚未有任何确认)!!

JDK 版本低于 9

Cyberkendra 报告称,低于 JDK 9 的 JDK 版本

你可以通过运行以下命令轻松检查:

root@kitploit:~
java -version

这将显示类似如下的内容:

root@kitploit:~
openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-Ubuntu-120.04)
OpenJDK 64-Bit Server VM (build 17.0.2+8-Ubuntu-120.04, mixed mode, sharing)

如果你的 JDK 版本低于 8,你可能安全,但尚无确认。

以下文章将会更新。

检查你是否在使用 Spring 框架

全局搜索 spring-beans*.jar 和 spring*.jar

root@kitploit:~
find . -name spring-beans*.jar

POC,翻译自该仓库:https://github.com/craig/SpringCore0day/blob/main/exp.py

下载工具