4 ms·
> My reading suggests that if you were to point a vulnerable version at a repository which is controlled by an attacker, then they could run code as you on your
by kazinator 11y ago
> My reading suggests that if you were to point a vulnerable version at a repository which is controlled by an attacker, then they could run code as you on your machine.
This threat exists regardless, because git repos usually contain code, which you pull, compile and execute. As you, on your machine.
- mordocai 11y agoYes, but normally you get to inspect that code before compiling and executing if you wish to.
- kazinator 11y agoBut you don't get to do that with the updated git from Apple any more than the original.
- rajivm 11y agoI clone repositories all the time to inspect/learn/debug dependencies without ever building them.
- Cthulhu_ 11y agoIn theory, yes, but in practice, things like Chromium and Linux and probably most non-npm-microlibraries are far too large to feasibly inspect before running. So basically be careful about who is given commit rights. Also, might be a good idea (if you're just running the software instead of working on it) to just pick a recent (signed) tag.
- CodeWriter23 11y agoOne would expect however that the tool used for downloading the source should be free from risk.