Earlier quoted context omitted.
. It's especially bad because svn puts a .svn in each directory. With e.g. mercurial or git, you can tuck the (visible) site in a subdirectory of the repo itself (project/pages), and the .hg/.git (project/.hg|project/.git) won't be accessible. Of course the best option is still to use exports and symlinks.
Of course, it's not too tricky to configure, say, Apache to block access to all the .svn directories: http://www.subversionary.org/martintomes/preventing-access-t... http://blog.samdevore.com/archives/2006/05/01/hivelogic-prev...
Using SVN makes your site extremely vulnerable
31–40 of 51 posts
Re: Using SVN makes your site extremely vulnerable
#32Sorry for the machine translation but an English text is not up just yet.
Re: Using SVN makes your site extremely vulnerable
#33From the translation: It would seem that in the XXI century is difficult to find such a vulnerability. Do Russian speakers generally write the century in roman numerals like that? That's kind of neat..
Re: Using SVN makes your site extremely vulnerable
#34harm: We need more people who, upon finding a hole, go on to scan the whole Runet, for no nefarious reasons but just to warn unwitting site owners.
SilenceAndy: In olden times such people were called hackers, until journalists perverted that word to mean cyber criminals.
grayhex: This comment is impervious to Google Translate.
cancel: Google inurl:.svn/entries, lots of interesting stuff.
Nirvanko: This ain't new, see http://www.adamgotterer.com/2009/01/26/hacking-the-svn-direc...
SynteZ: IIS doesn't have this vulnerability :-) By default it doesn't send files without extensions, because it doesn't know the mime type.
varyen: Funny, Wii disks from SEGA also have .svn folders, though they're empty.
crazywebdev: Now I know how http://vkontakte.ru came about.
Re: Using SVN makes your site extremely vulnerable
#35Sorry for the machine translation but an English text is not up just yet.
It's actually surprisingly coherent. Is Russian easier to translate than other languages or has Google's automated translation just gotten that good?
Google translate is good at lexical translation but still can't bind words together properly (and probably never will unless they'd change their paradigm).
I have to add that original text is surprisingly incoherent. They surely didn't re-read it after they wrote it.
Re: Using SVN makes your site extremely vulnerable
#36The issue is not in "using SVN". It's in using any revision control system that has .svn .git etc directories, and accidentally making those directories world readable from a webserver.
User error.
Re: Using SVN makes your site extremely vulnerable
#37Re: Using SVN makes your site extremely vulnerable
#38It appears that IIS is naively not serving up these file types. If I drop a plain html file in the .svn folder I can get to it, but any .svn-base file or files lacking an extension are unreachable.
Re: Using SVN makes your site extremely vulnerable
#39For your Apache config. # Disallow viewing of .svn and .git directory contents Order allow,deny Deny from all
location ~ /\.(svn|git) { deny all; }
Re: Using SVN makes your site extremely vulnerable
#40Using a working copy as your website is a pretty bad idea. That's what svn export is meant for.
Don't blame the tool, blame the individual for using it improperly.