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

Re: GIT Hooks and security

From: Olivier Revollat <hidden>
Date: 2016-06-15 22:59:05

But when someone do a "clone" he don't have .git/hooks directory
downloaded to his local computer ? I thought so ...

2013/10/26 Junio C Hamano [off-list ref]:
Olivier Revollat [off-list ref] writes:
quoted
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.


-- 
Mathematics is made of 50 percent formulas, 50 percent proofs, and 50
percent imagination.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help