PT-2020-5517 · Junit+4 · Junit4+4
Published
2020-10-12
·
Updated
2022-06-11
·
CVE-2020-15250
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
JUnit4 versions 4.7 through 4.13.1
Description
The issue is related to a local information disclosure vulnerability in the test rule TemporaryFolder of JUnit4. On Unix-like systems, the system's temporary directory is shared between all users, making files and directories written into this directory readable by other users on the same system. This vulnerability impacts JUnit tests that write sensitive information, such as API keys or passwords, into the temporary folder and execute in an environment with other untrusted users.
Recommendations
For Java 1.7 and higher users: update to version 4.13.1 to fix the vulnerability.
For Java 1.6 and lower users: no patch is available, specify the
java.io.tmpdir system environment variable to a directory that is exclusively owned by the executing user as a workaround.
As a temporary workaround, consider restricting access to the temporary folder to minimize the risk of exploitation.Exploit
Fix
Information Disclosure
Incorrect Permission
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Astra Linux
Junit4
Linuxmint
Ubuntu