Golang TempFile On APredictablePath
What does this mean ?
During installation, installed file permissions are set to allow anyone to modify those files.
What can happen ?
Files that get created on a predictable path are easy to find by attackers.
If the attacker got initial access to the system using the application, they would be able to read the content of the temporary files along with the ability to change the content and make the application follow predefined malicious instructions to conduct post-exploitation attacks.
It's recommended not to use predictable paths when creating temporary files, such as temp directories