Live data from Hacker News

Using SVN makes your site extremely vulnerable

translate.google.com

1–10 of 51 posts

Re: Using SVN makes your site extremely vulnerable

#6

tl;dr Don't accidentally leave an svn working copy available to the internet, it could be a security vulnerability.

Actually, TFA isn't about svn repositories but about using working copies for your production site, and leaving .svn world-readable. svn repositories tend to at least use some kind of HTTP auth (if not https or ssh), but a world-readable .svn means your whole project is available.

Re: Using SVN makes your site extremely vulnerable

#7
post #5

Using a working copy as your website is a pretty bad idea. That's what svn export is meant for.

.

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.

Re: Using SVN makes your site extremely vulnerable

#8
It's not actually clear to me what the problem is.

Are they saying that people can read your code (not actually a problem for open source projects) or that they can update it and thus alter your site?

The former doesn't seem so bad - the latter is obviously catastrophic.

I wish I spoke Russian...

Re: Using SVN makes your site extremely vulnerable

#9
post #5

Using a working copy as your website is a pretty bad idea. That's what svn export is meant for.

Using a working copy allows you to deploy your website faster and safer (only the changes gets transfered, you can have hooks to do some cleanup and rollbacks are almost free).

I use Mercurial on all my websites (disabling access to .*/.hg of course) and never use FTP for anything.

Re: Using SVN makes your site extremely vulnerable

#10
post #6

tl;dr Don't accidentally leave an svn working copy available to the internet, it could be a security vulnerability.

Actually, TFA isn't about svn repositories but about using working copies for your production site, and leaving .svn world-readable. svn repositories tend to at least use some kind of HTTP auth (if not https or ssh), but a world-readable .svn means your whole project is available.

Yup, exactly. s/repositories/working copies/. I've been using git/hg too much lately.
Post reply on HN