Re: Removal of post-upload-hook
- From
Jeff King <peff@peff.net>
- Date
- Jan 14, 2010, 19:36 UTC
- Message-ID
- <20100114193607.GB25863@coredump.intra.peff.net>
- In-Reply-To
- <6f8b45101001141001q40d8b746v8385bc6ae37a6af4@mail.gmail.com>
On Thu, Jan 14, 2010 at 11:31:57PM +0530, Arun Raghavan wrote:
Show 11 quoted lines
> [I'm not on the list, so please CC me on replies] > > Hello, > I noticed that the post-upload hook had been removed in commit > 1456b043fc0f0a395c35d6b5e55b0dad1b6e7acc. The commit message states: > > This hook runs after "git fetch" in the repository the objects are > fetched from as the user who fetched, and has security implications. > > I was wondering if someone could shed some light (or links) on what > security implications this hook has?
Because receive-pack runs as the user who is pushing, not as the repository owner. So by convincing you to push to my repository in a multi-user environment, I convince you to run some arbitrary code of mine.
-Peff