News for hackers. Stuff that matters.
Re:Please stop serving .git to the outside world by tytso on Monday June 10, 2013 @08:43AM (#5853923)
To be clear (it wasn't mentioned explicitly in the blog post), but it's obviously what the author was referring to, this is about people who are deploying web sites with static content which is being managed via git.
Re:Please stop serving .git to the outside world by jstanley on Monday June 10, 2013 @08:46AM (#5853936)
And it only applies when the document root is also the git repo root. If the document root is under a subdirectory, the .git directory won't be served.
Re:Please stop serving .git to the outside world by hdra on Monday June 10, 2013 @10:42AM (#5854697)
I'm curious, what security risk does static content could pose by serving the .git ?
Re:Please stop serving .git to the outside world by calpaterson on Monday June 10, 2013 @10:58AM (#5854830)
If you don't expect your source code to be made public and don't take care to keep secrets out of it, then you will be surprised when attackers have (for example) your cookie signing key.

I know checking secrets into source code is already a bad practice, but accidental publication takes bad practice and makes it a security hole.

Re:Please stop serving .git to the outside world by drdaeman on Monday June 10, 2013 @11:26AM (#5855021)
Parent post was asking about static content, not dynamic. No code to keep secret.
Re:Please stop serving .git to the outside world by pyre on Monday June 10, 2013 @10:49AM (#5854756)
Off the top of my head, if you use an email (to commit) that you don't want the outside world to see, now it's exposed.