Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2022-22965 PoC — Spring Framework 代码注入漏洞

Source
Associated Vulnerability
Title:Spring Framework 代码注入漏洞 (CVE-2022-22965)
Description:A Spring MVC or Spring WebFlux application running on JDK 9+ may be vulnerable to remote code execution (RCE) via data binding. The specific exploit requires the application to run on Tomcat as a WAR deployment. If the application is deployed as a Spring Boot executable jar, i.e. the default, it is not vulnerable to the exploit. However, the nature of the vulnerability is more general, and there may be other ways to exploit it.
Description
CVE-2022-22965
Readme
# spring-framework-rce
CVE-2022-22965

## 环境需求

1. tomcat8 <=8.5.77, tomcat9 <=9.0.60
2. jdk > 8

## 使用方法

1. 下载 [spring_framework_rce-0.0.1-SNAPSHOT.zip](https://github.com/wshon/spring-framework-rce/files/8398277/spring_framework_rce-0.0.1-SNAPSHOT.zip) 解压后,修改名称为 ROOT.war。
2. 替换掉 tomcat 内的 webapps 文件夹下的 ROOT 文件夹或 ROOT.war。
3. 切换到 tomcat 内的 bin 路径下,执行 .\catalina.bat run。

## 测试方法

略

## 结果

|jdk|tomcat|结果|
|---|------|----|
|jdk8u322-b06|apache-tomcat-8.5.77|安全|
|jdk8u322-b06|apache-tomcat-8.5.78|安全|
|jdk8u322-b06|apache-tomcat-9.0.60|安全|
|jdk-9.0.4+11|apache-tomcat-8.5.77|存在漏洞|
|jdk-9.0.4+11|apache-tomcat-8.5.78|安全(日志报错)|
|jdk-9.0.4+11|apache-tomcat-9.0.60|存在漏洞|
|jdk-11.0.14.1+1|apache-tomcat-8.5.77|存在漏洞|
|jdk-11.0.14.1+1|apache-tomcat-8.5.78|安全(日志报错)|
|jdk-11.0.14.1+1|apache-tomcat-9.0.60|存在漏洞|
File Snapshot

[4.0K] /data/pocs/08237322379e53df146c2e2ef96b9fa1d0fefb0c ├── [ 10K] mvnw ├── [6.6K] mvnw.cmd ├── [1.6K] pom.xml ├── [ 997] README.md └── [4.0K] src ├── [4.0K] main │   ├── [4.0K] java │   │   └── [4.0K] com │   │   └── [4.0K] wshon │   │   └── [4.0K] spring │   │   └── [4.0K] framework │   │   └── [4.0K] rce │   │   ├── [ 447] ServletInitializer.java │   │   ├── [ 593] SpringFrameworkRceApplication.java │   │   └── [ 246] User.java │   └── [4.0K] resources │   └── [ 1] application.properties └── [4.0K] test └── [4.0K] java └── [4.0K] com └── [4.0K] wshon └── [4.0K] spring └── [4.0K] framework └── [4.0K] rce └── [ 243] SpringFrameworkRceApplicationTests.java 16 directories, 9 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →