Threat Level: green Handler on Duty: Didier Stevens

SANS ISC: Exposed .svn Directories - SANS Internet Storm Center SANS ISC InfoSec Forums

Participate: Learn more about our honeypot network

Sign Up for Free!   Forgot Password?
Log In or Sign Up for Free!
Exposed .svn Directories

For the last few years, we have been using subversion to manage our source code and move code live. One thing we overlooked was the fact that the .svn directories were exposed on our web server. Thanks to Ehraz and Umraz Ahmed ( #securityexe and #umrazahmed on twitter) for reporting this problem to us.

As a solution, we made a couple of configuration changes:

- prevented access to the directories via a "<Directory>" directive,
- added respective rules to our web application firewall.


Johannes B. Ullrich, Ph.D.
SANS Technology Institute

I will be teaching next: Application Security: Securing Web Apps, APIs, and Microservices - SANSFIRE 2022


4504 Posts
ISC Handler
Dec 30th 2013

You shouldn't be doing SVN UP on your public webserver; you should be doing SVN EXPORT <revision #>.

That will 'download' all the files, without all the .svn stuff.


Sign Up for Free or Log In to start participating in the conversation!