CVE Catalog
EnglishPolski(English translation not available - showing Polish)

CVE-2024-38816

High
Published: Translated: NVD NIST

Summary

Aplikacje serwujące statyczne zasoby za pomocą frameworków WebMvc.fn lub WebFlux.fn są podatne na ataki typu path traversal. Atakujący może skonstruować złośliwe żądania HTTP, aby uzyskać dostęp do dowolnego pliku w systemie plików, który jest dostępny dla procesu, w którym działa aplikacja Spring.

Risk Assessment

Organizacja narażona jest na nieautoryzowany dostęp do wrażliwych plików, co może prowadzić do ujawnienia danych lub kompromitacji systemu. Ryzyko wzrasta, gdy aplikacja nie korzysta z zabezpieczeń takich jak Spring Security HTTP Firewall lub działa na serwerach Tomcat lub Jetty.

Recommendation

Zaleca się wdrożenie Spring Security HTTP Firewall oraz unikanie konfiguracji zasobów z użyciem FileSystemResource, aby zminimalizować ryzyko ataków typu path traversal. Dodatkowo, warto rozważyć uruchomienie aplikacji na serwerach Tomcat lub Jetty.

Related vulnerabilities

Original NVD description (English source)

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

Vulnerability data from NVD (NIST) · CISA KEV · EPSS