Re:One in every 600 websites has .git exposed
by jbeales on Monday July 27, 2015 @10:51AM
(#9955483)
I don't have insight into the decision-making at WordPress, but they probably do this because they want to be compatible with as many web hosts as possible, and so many super-cheap shared hosts just give you a public directory that you're supposed to dump everything in.
It's possible to set it up properly on most of these hosts, but it's much more difficult, and if you ever have issues the support team says you're using a "non-supported configuration." At least WordPress lets you move your config file one level above the webroot and will find it automatically.
Re:One in every 600 websites has .git exposed
by juliangregorian on Monday July 27, 2015 @12:24PM
(#9956132)
Drupal, MediaWiki, Laravel, Slim, it's a pretty long list, and it includes projects that target Serious Devlopers.
Also, this is really PHP specific.
Look at any larger Python (Django/Flask/...) or Ruby (Rails/...) project, and you will always find a proper "public" directory, although it may be named differently.
Not sure about Perl though ...
This is clearly a usability versus security issue, resolved in the unfortunate, usual way.