You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Security scan reported problem with com.google.common.io.FileBackedOutputStream #2575
We are using google commons APIs in our project and security scan on our code has reported following problem. Could you please let me know if this is of any concern or it can be fixed in new version of this API.
Problem: Creating and using insecure temporary files can leave application and system data vulnerable to attack. In particular,file names created by the tmpnam family of functions can be easily guessed by an attacker. If an attacker can predictthe filename and create a malicious collision, he may be able to manipulate the behavior of the application.
Recommendations (Generated by tool)
Ensure that unpredictable names are used for temporary files and that files are created in a secure directory with appropriate permissions. Using mkstemp() is a reasonably safe way to create temporary files. It will attempt to create and open a unique file based on a filename template provided by the user, combined with a series of randomly generated characters. Note that mkstemp() is safe if only the descriptor is used and the returned filename is not used in a subsequent function call with extra privileges. Using mkstemp() does not completely eliminate race conditions but does provide better protection than other methods
I have not used the class FileBackedOutputStream directly. However I am not sure if the classes that we have used from the API internally use FileBackedOutputStream.
Activity
lowasser commentedon Sep 26, 2016
This seems like it could at least conceivably be a problem if, and only if, you used FileBackedOutputStream. Do you?
abhisheksharma43 commentedon Sep 27, 2016
I have not used the class FileBackedOutputStream directly. However I am not sure if the classes that we have used from the API internally use FileBackedOutputStream.
Restrict permissions when creating temporary files and directories, o…
Restrict permissions when creating temporary files and directories, o…
34 remaining items
Bump guava from 30.1.1-jre to 32.1.2-jre
Bump guava from 30.1.1-jre to 32.1.2-jre
Bump guava from 30.1.1-jre to 32.1.2-jre
CVE-2023-2976
fix: version up for patch vulnerability google/guava#2575
fix: version up for patch vulnerability google/guava#2575
Restrict permissions when creating temporary files and directories, o…
Restrict permissions when creating temporary files and directories, o…
Restrict permissions when creating temporary files and directories, o…
Restrict permissions when creating temporary files and directories, o…
Restrict permissions when creating temporary files and directories, o…
Restrict permissions when creating temporary files and directories, o…
Restrict permissions when creating temporary files and directories, o…
Warn that `Files.createTempDir` and `FileBackedOutputStream` don't wo…
Fix `Files.createTempDir` and `FileBackedOutputStream` under Windows.