Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
The "getLocalePrefix" function in "ResourceManager.java" in Eclipse Mojarra 2.4.0 and prior to 2.3.7 is affected by Directory Traversal via the "loc" parameter. A remote attacker can download configuration files or Java bytecodes from applications. Note: version 2.4.0 is vulnerable because it is an old version that represents the latest state of the master branch as it was during the transfer from Oracle to Eclipse. It should not be used as it does not represent the actual master branch state and new releases are happening in the 2.3.x versions.
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.