me9867
me9867

Reputation: 1597

Is a viewable .git folder a security risk?

Recently started using Git via Bitbucket which is great. However I was a little concerned to be able to view the file tree from any browser?

I do have .gitignore enabled but I assume no file data or commit refs cannot be linked or of use to third parties. The folder permission for .git/ is 755 by default on my hosting.

Here is what I can see:

http://i.imgur.com/5PH24NA.jpg

Upvotes: 1

Views: 735

Answers (1)

Flows
Flows

Reputation: 3863

The major risk is if the folder can be downloaded. If it is, anyone can download all the source code.

You can try git clone http://website.com/.git. If it's work you have to secure that.

You can have complete information here and there

Upvotes: 1

Related Questions