The commit that fixes this issue: https://github.com/gitster/git/commit/684dd4c2b414bcf648505e... (Surprise, the root cause is a cache )
Git: Malicious repositories can execute remote code while cloning
111–120 of 228 posts
Re: Git: Malicious repositories can execute remote code while cloning
#112Re: Git: Malicious repositories can execute remote code while cloning
#113Earlier quoted context omitted.
Difficult problems in programming: (1) cache invalidation (2) off-by-one errors
I thought the two hardest problems were: 1) naming 2) cache invalidation ... 3) off-by-one errors
0) Race consegmentation fault (core dumped)
(I know I was ninja’d but didn’t see until after)
Re: Git: Malicious repositories can execute remote code while cloning
#114Re: Git: Malicious repositories can execute remote code while cloning
#115Earlier quoted context omitted.
I mean, there are... not-totally-unreasonable workflows that do clones as root. Edit: although I am struggling to think of one that clones from an untrusted source.
> not-totally-unreasonable workflows that do clones as root Uh... really? Like what?
Re: Git: Malicious repositories can execute remote code while cloning
#116Earlier quoted context omitted.
> not-totally-unreasonable workflows that do clones as root Uh... really? Like what?
etckeeper and friends (I have a git checkout in /etc/nixos on nixos machines), portage sync on funtoo, pulling ports tree or even system source on a BSD, grabbing setup scripts during install of Arch before a non-root user exists
Re: Git: Malicious repositories can execute remote code while cloning
#117I guess I'll have to stop running $ sudo git clone ...
I don't think that smugly not running as root saves normal users; while malware running as your user can't trash your laptop, they can get your Google cookie and read and send emails as you, spend your money, view your private photos, etc.
Re: Git: Malicious repositories can execute remote code while cloning
#118That could be any Git repository. Have you seen the mayhem that some of mine cause when you clone them and then type ./configure && make, like you have been socially engineered into doing?
I don't personally audit all the code I run, but I hope someone is doing it. That being said, source code being public is much better than the alternative of just downloading binaries from who knows where.
I don't trust anything absolutely, and I don't see a way past it.
Re: Git: Malicious repositories can execute remote code while cloning
#119That could be any Git repository. Have you seen the mayhem that some of mine cause when you clone them and then type ./configure && make, like you have been socially engineered into doing?
Re: Git: Malicious repositories can execute remote code while cloning
#120That could be any Git repository. Have you seen the mayhem that some of mine cause when you clone them and then type ./configure && make, like you have been socially engineered into doing?