> Merely navigating to such a space with a Git-enabled `PS1` when there is a maliciously-crafted `/scratch/.git/` can lead to a compromised account. I'm curious about this -- what's the attack vector here?
.git/config sets fsmonitor to malware.exe and boom.
Git security vulnerability announced
11–20 of 302 posts
Re: Git security vulnerability announced
#12Re: Git security vulnerability announced
#13This is silly. Fix PS1, I can’t trust all repos I clone. I also want to cross-user access git log/blame etc.
Re: Git security vulnerability announced
#14Re: Git security vulnerability announced
#15This certainly came as a surprise to my team today. We operate some number of repositories and the majority of them use https://github.com/actions-ecosystem/action-get-latest-tag - or more specifically, a fork of that repo which more or less works the same way. Midday today our CI/CD started failing. We must have hit this so soon because the `apk add git` in that Dockerfile grabbed the new git version. Evidently the…
Re: Git security vulnerability announced
#16This is silly. Fix PS1, I can’t trust all repos I clone. I also want to cross-user access git log/blame etc.
Re: Git security vulnerability announced
#17Earlier quoted context omitted.
Can you do this to a GitHub hosted repo?
No, the .git directory is not cloned. But if the repo is already on disk it can be game over.
``` git clone github.com/foo/bar cd bar/subdir/ ```
is unsafe with a Git PS1. See https://offensi.com/2019/12/16/4-google-cloud-shell-bugs-exp...
Re: Git security vulnerability announced
#18Re: Git security vulnerability announced
#19> Merely navigating to such a space with a Git-enabled `PS1` when there is a maliciously-crafted `/scratch/.git/` can lead to a compromised account. I'm curious about this -- what's the attack vector here?