S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
high·Product Based Web Vulnerabilities·Updated Oct 8, 2024

CVE-2024-38816 Scanner

CVE-2024-38816 Scanner - Path Traversal vulnerability in WebMvc.fn/WebFlux.fn

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsurl
CostFree
3.3k
Times Used
continuous scan runs
5.8k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2024-38816
7.5
CVSShigh
Exploitable remotely over the internet · no authentication required.

Applications serving static resources through the functional web frameworks WebMvc.fn or WebFlux.fn are vulnerable to path traversal attacks. An attacker can craft malicious HTTP requests and obtain any file on the file system that is also accessible to the process in which the Spring application is running. Specifically, an application is vulnerable when both of the following are true: * the web application uses RouterFunctions to serve static resources * resource handling is explicitly configured with a FileSystemResource location However, malicious requests are blocked and rejected when any of the following is true: * the Spring Security HTTP Firewall https://docs.spring.io/spring-security/reference/servlet/exploits/firewall.html  is in use * the application runs on Tomcat or Jetty

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
Springby Spring
AFFECTED< 5.3.40SAFE ✓≥ 5.3.40
spring_frameworkby spring_by_vmware_tanzu
AFFECTED< 5.3.40SAFE ✓≥ 5.3.40
spring_frameworkby spring_by_vmware_tanzu
AFFECTED< 6.0.24SAFE ✓≥ 6.0.24
spring_frameworkby spring_by_vmware_tanzu
AFFECTED< 6.1.13SAFE ✓≥ 6.1.13
Updated Aug 22, 2026View on NVD →
Detail

WebMvc.fn and WebFlux.fn are functional web frameworks primarily used in Java-based applications. They cater to developers looking for more declarative approaches to defining routes. These frameworks are commonly employed in enterprise-level applications and microservices. Their purpose is to handle requests and serve resources efficiently with great flexibility and control. However, security configurations need careful attention to prevent unauthorized access to resources. They are often integrated into applications using the Spring ecosystem, benefiting from Spring's extensive community and support.

Path Traversal vulnerabilities are security issues that allow attackers to gain unauthorized access to files within a system. The vulnerability permits malicious users to send specially crafted requests to navigate directories and access files stored outside the intended web directories. This can result in serious data breaches, exposing sensitive information stored on the server. Attackers can exploit this to access configuration files, password files, or even execute specific files. The vulnerability may impact data integrity and confidentiality if not addressed promptly.

The WebMvc.fn and WebFlux.fn vulnerability involve the frameworks' handling of static resource serving. The vulnerable endpoint allows users to access files via unintended directory paths. Specifically, requests using "../" sequences within URLs can navigate and expose files that should remain protected. The interceptor or controller responsible for resource mappings does not sufficiently sanitize incoming requests. This lapse makes it essential for developers to ensure adequate control over resource access. Various proof-of-concepts exist demonstrating this flaw, affecting applications that do not adhere to secure serving practices.

When exploited, Path Traversal vulnerabilities can lead to severe security breaches. Attackers may access sensitive files such as system configurations and user data. The exposure of these files can compromise the application's security posture. Data leaks could result in reputational damage and financial loss. Furthermore, attackers might modify or delete files, affecting the availability of resources. Overall, the effects threaten the integrity, confidentiality, and availability of data.

REFERENCES

Solution Advice
  • Implement input validation by sanitizing incoming route parameters.
  • Employ security middleware to assess and filter potentially harmful requests.
  • Restrict the file permissions of directories being served, ensuring only necessary access is granted.
  • Regularly update the Spring framework and other dependencies to the latest versions with security patches.
  • Conduct periodic security assessments to identify and rectify potential vulnerabilities.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

CVE-2024-38816 Scanner - Path Traversal vulnerability in WebMvc.fn/WebFlux.fn | S4E