Skip to main content

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CVE-2023-24815

Severity Medium
Score 5.3/10

Summary

Vert.x-Web is a set of building blocks for building web applications in the Java programming language. When running vertx-web applications that serve files using "StaticHandler" on Windows Operating Systems and Windows File Systems, if the mount point is a wildcard (`*`), then an attacker can exfiltrate any class path resource. When computing the relative path to locate the resource, in the case of wildcards, the code: "return "/" + rest;" from "Utils.java" returns the user input (without validation) as the segment to lookup. Even though checks are performed to avoid escaping the sandbox, given that the input was not sanitized. Since "\" is not properly handled and an attacker can build a path that is valid within the classpath. This issue only affects users deploying in windows environments and upgrading is the advised remediation path. This vulnerability affects version 4.0.0.CR1 through 4.3.7.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • LOW
  • NONE

CWE-22 - Path Traversal

Path traversal (or directory traversal), is a vulnerability that allows malicious users to traverse the server's root directory, gaining access to arbitrary files and folders such as application code & data, back-end credentials, and sensitive operating system files. In the worst-case scenario, an attacker could potentially execute arbitrary files on the server, resulting in a denial of service attack. Such an exploit may severely impact the integrity, confidentiality, and availability of an application.

References

Advisory Timeline

  • Published