Re:Git: Malicious repositories can execute remote code while...
by dragonwriter on Tuesday March 09, 2021 @09:28PM
(#26407059)
Doesn't Git-for-Windows default configure symbolic link support off, though? Or does this exploit work even in that case as long as the underlying file system supports symlinks?
Re:Git: Malicious repositories can execute remote code while...
by matheust on Tuesday March 09, 2021 @10:47PM
(#26407530)
Git-for-Windows may turn symlink support on by default under some specific circumstances. As the repo's wiki [1] says:
Short version: there is no exact equivalent for POSIX symlinks on Windows, and the closest thing is unavailable for non-admins by default unless Developer Mode is enabled and a relatively recent Windows 10 version is used. Therefore, symlink emulation support is only turned on by default when that scenario is detected.
[1]: https://github.com/git-for-windows/git/wiki/Symbolic-Links
As suggested in GitHub's announcement post[1], you can test this with the following:
`git config --show-scope --get-regexp 'filter\..*\.process'` (replace the single quotes by double quotes on Windows Command Prompt)
> Is this a default-on scenario?
On Windows yes, because Git-for-Windows configures Git LFS by default.
[1]: https://github.blog/2021-03-09-git-clone-vulnerability-annou...