-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(*): #21 fix RCE via dangerous configs in
.git/config
and `.git/…
…hooks/*` this vulnerability is cause by unexpected trust of some dangerous configs in `.git/config` and `.git/hooks/*`. these git files could be dangerous when GitHacker is interacting with git. so, to prevent the user of GitHacker from malicous remote `.git` folder, GitHacker will not download these files by default. But, if you insist, you can enable downloading them by provide the command line argument: `--enable-manually-check-dangerous-git-files=false`, then GitHacker will display the content fo the dangerous files before saving into the temporary repo folder. NOTICE, you should be very careful with those files. I highly recommend you run GitHacker in a jailed environment such as Docker container.
- Loading branch information
1 parent
1ac385e
commit 806095e
Showing
3 changed files
with
159 additions
and
78 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
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
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