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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-22262 PoC — CVE-2024-22262: Spring Framework URL Parsing with Host Validation

Source
Associated Vulnerability
Title:CVE-2024-22262: Spring Framework URL Parsing with Host Validation (CVE-2024-22262)
Description:Applications that use UriComponentsBuilder to parse an externally provided URL (e.g. through a query parameter) AND perform validation checks on the host of the parsed URL may be vulnerable to a open redirect https://cwe.mitre.org/data/definitions/601.html  attack or to a SSRF attack if the URL is used after passing validation checks. This is the same as CVE-2024-22259 https://spring.io/security/cve-2024-22259  and CVE-2024-22243 https://spring.io/security/cve-2024-22243 , but with different input.
Readme
# Spring CVE-2024-22262

## Proof of Concept

This repo contains a Development Container environment and Spring application of the correct version specifically to explore this CVE. 

### Setup Instructions
Clone the repo to your machine and use Docker and your favorite IDE.

OR

Use GitPod online with `https://gitpod.io/#<URL to this repo>`

OR

Use GitPod Desktop:

1. [Download GitPod Desktop](https://www.gitpod.io/gitpod-desktop/download) and install it.
1. Click Projects.
1. Click New Environment.
1. Provide the URL of this repo.

Within the development environment you've chosen above:
1. Run the app:
<pre>
cd spring-cve-harness
mvn spring-boot:run
</pre>
2. Perform the exploit.

Don't forget to commit your changes back to this repo.

## Useful URLs
Development Containers Project Page
- https://containers.dev

Development Containers Images
- https://github.com/devcontainers/images

Developing inside a container
- https://code.visualstudio.com/docs/devcontainers/containers

Container Guides
- https://containers.dev/guides
 



File Snapshot

[4.0K] /data/pocs/a6fba0eddadef27511eb80ccbd070594dd3f27c2 ├── [1.0K] README.md └── [4.0K] spring-cve-harness ├── [1.9K] pom.xml └── [4.0K] src ├── [4.0K] main │   ├── [4.0K] java │   │   └── [4.0K] com │   │   └── [4.0K] example │   │   └── [3.0K] App.java │   └── [4.0K] resources │   └── [4.0K] static │   └── [ 11K] HeroDevsLogo.jpg └── [4.0K] test └── [4.0K] java └── [4.0K] com └── [4.0K] example └── [ 259] AppTest.java 12 directories, 5 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 →