Thread (5 messages) flat view 5 messages, 4 authors, 2016-06-15

Re: GIT Hooks and security

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:59:05

Olivier Revollat [off-list ref] writes:
I was wondering : What if I had a "malicious" GIT repository who can
"inject" code  via git hooks mechanism : someone clone my repo and
some malicious code is executed when a certain GIT hook is triggered
(for example on commit ("prepare-commit-msg' hook))
In that somebody else's clone, you will not have _your_ malicious
hook installed, unless that cloner explicitly does something stupid,
like copying that malicious hook.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help