News for hackers. Stuff that matters.
Re:Git security vulnerability announced by seba_dos1 on Wednesday April 13, 2022 @05:09AM (#31012565)
No? Why would someone zip me a git repo? You can clone/push/pull directly between machines.
Re:Git security vulnerability announced by nybble41 on Wednesday April 13, 2022 @02:17PM (#31018219)
The source machine may not be set up as a server, or you may not have an account there. Sending a .zip file could be simpler than pushing the repo to a third system the receiver does have access to.
Re:Git security vulnerability announced by seba_dos1 on Wednesday April 13, 2022 @08:07PM (#31021893)
Sure, mailing binaries can also be the right thing sometimes, but just as with git repos, you definitely shouldn't be taking them from untrusted sources.

(and I bet that many people don't even realize how easy using `git push` to mirror a repo actually is, since git is very commonly used in a centralized fashion)

Re:Git security vulnerability announced by hsbauauvhabzb on Wednesday April 13, 2022 @05:02PM (#31020220)
You’ve never unzipped a repo? That’s something I regularly do - clients can’t get me access to their scm, and it’s not worth the effort.
Re:Git security vulnerability announced by seba_dos1 on Wednesday April 13, 2022 @08:00PM (#31021838)
I don't think I ever did. I usually have an opposite problem and sometimes accidentally zip/tar a repo when it shouldn't be included (at least there's `--exclude-vcs`).

In any case, this doesn't sound like a good idea at all, as git hooks exist.

Re:Git security vulnerability announced by hsbauauvhabzb on Thursday April 14, 2022 @01:32AM (#31023718)
You’re right but also I’m mad that you’re right. I need to check what hook functions there are, but I knew about hooks and still overlooked them, which to me thinks that they’re non obvious. Maybe git should prompt you on first run, which is either whitelisted on your host or signed by your git keys or similar