-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix SECURITY-445] better protect temporary files
Temporary files were previously written to the system temporary directory with default permissions. A malicious actor could have captured sensitive information by reading files from the temporary directory. The temporary files typically are only on the file system for the duration of a single command line git invocation, but cloning a large git repo could require an extended time with those sensitive files in the temporary directory. This change sets permissions on the temporary files to be readable only by the file owner. If a workspace is available, a temporary directory adjacent to the workspace is used instead of the system temporary directory.
- Loading branch information
1 parent
716e3ff
commit 75ea3fe
Showing
1 changed file
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters