Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2024-38819-lab | Kitploit
Tools/GitHubGitHub/trevorputbrese/cve-2024-38819-lab
Vulnerability AnalysisWeb Application ExploitationWeb SecurityMisconfigurationLearning & EducationLabs & Practice
GitHubtrevorputbrese/cve-2024-38819-lab

cve-2024-38819-lab

View Repository
2 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2024-38819 Customer Vault Lab

This is a Cloud Foundry-ready Spring Boot demo for CVE-2024-38819, a Spring Framework path traversal vulnerability in functional static resource handling.

What Is Patched?

CVE-2024-38819 is patched in Spring Framework, not directly in Spring Boot.

Spring Boot is still important in the demo because it manages the Spring Framework dependency versions used by the application. In other words, a Spring Boot maintenance release can bring in the fixed Framework version for you, but the vulnerable code path and the security fix are in Spring Framework's WebFlux/WebMvc functional static resource handling.

The app presents a small customer document vault UI. Public documents are served from /files/** using WebFlux.fn RouterFunctions.resources(...) with a FileSystemResource, which matches the vulnerable conditions in the Spring advisory. At startup the app creates:

  • a public document directory
  • a fake secret outside that public directory
  • a symlink used by the proof request to demonstrate traversal

The secret is generated by the app and contains no real credentials.

Versions

This lab intentionally keeps Spring Boot at 3.3.4 in both modes and changes only the managed Spring Framework version:

ModeSpring BootSpring Framework

The patched Maven profile sets:

root@kitploit:~
<spring-framework.version>6.1.14</spring-framework.version>

Without that profile, Spring Boot 3.3.4 manages Spring Framework 6.1.13, which is the vulnerable version used for the demo.

Build Artifacts

Build both demo artifacts:

root@kitploit:~
scripts/build-artifacts.sh

This creates two distinct deployable jars:

root@kitploit:~
target/cve-2024-38819-vulnerable.jar
target/cve-2024-38819-patched.jar

Local Run

root@kitploit:~
mvn spring-boot:run

Open:

root@kitploit:~
http://127.0.0.1:8080

Run the constrained proof:

root@kitploit:~
python3 scripts/prove-secret-exposure.py --expect vulnerable

Expected vulnerable result:

root@kitploit:~
RESULT: vulnerable behavior confirmed. The fake secret was served from outside the public file root.

Run patched mode:

root@kitploit:~
mvn -Ppatched spring-boot:run

Then:

root@kitploit:~
python3 scripts/prove-secret-exposure.py --expect patched

Cloud Foundry

Push vulnerable:

root@kitploit:~
scripts/cf-push-vulnerable.sh

This deploys target/cve-2024-38819-vulnerable.jar as patch-your-spring-vulnerable.

Run the proof against your app route:

root@kitploit:~
python3 scripts/prove-secret-exposure.py \
  --target https://YOUR-VULNERABLE-ROUTE \
  --allow-remote-demo \
  --expect vulnerable

Push patched:

root@kitploit:~
scripts/cf-push-patched.sh

This deploys target/cve-2024-38819-patched.jar as patch-your-spring-patched.

Run the same proof:

root@kitploit:~
python3 scripts/prove-secret-exposure.py \
  --target https://YOUR-PATCHED-ROUTE \
  --allow-remote-demo \
  --expect patched

Cleanup:

root@kitploit:~
cf delete patch-your-spring-vulnerable -f -r
cf delete patch-your-spring-patched -f -r

References

  • Spring advisory: https://spring.io/security/cve-2024-38819/
  • Public PoC shape: https://github.com/masa42/CVE-2024-38819-POC
  • GitHub advisory: https://github.com/advisories/GHSA-g5vr-rgqm-vf78
Download Tool
Artifact
Vulnerable3.3.46.1.13target/cve-2024-38819-vulnerable.jar
Patched3.3.46.1.14target/cve-2024-38819-patched.jar