News for hackers. Stuff that matters.
Re:What’s wrong with Git? A conceptual design analysis (2016) by tptacek on Wednesday April 28, 2021 @11:42AM (#26970656)
How is this risk any different from that of a Makefile?
Re:What’s wrong with Git? A conceptual design analysis (2016) by cesarb on Wednesday April 28, 2021 @12:02PM (#26970883)
When one executes code from a Makefile, one expects arbitrary code execution. When cloning a repository, or updating a clone of a repository, one does not expect arbitrary code execution. Moreover, one can inspect a Makefile before running code from it, by cloning the repository and looking at the Makefile with a text editor; but one cannot inspect what will be cloned before cloning it (and even if you could, for instance by looking at it through a web interface, there's an obvious TOCTOU risk).
Re:What’s wrong with Git? A conceptual design analysis (2016) by tptacek on Wednesday April 28, 2021 @12:34PM (#26971269)
I see the problem with hooks that run when a repository is cloned. I don't see it with hooks that run when code is committed.
Re:What’s wrong with Git? A conceptual design analysis (2016) by tedunangst on Thursday April 29, 2021 @09:31AM (#26980921)
I might consider fixing a readme typo in somebody's project while taking less precautions than I would running make.