<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dec0der &#187; security</title>
	<atom:link href="http://blog.d27n.com/tags/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.d27n.com</link>
	<description>the d27n blog</description>
	<lastBuildDate>Wed, 11 Jan 2012 21:08:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>They&#8217;re stealing your code!</title>
		<link>http://blog.d27n.com/2009/09/24/theyre-stealing-your-code/</link>
		<comments>http://blog.d27n.com/2009/09/24/theyre-stealing-your-code/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 17:09:26 +0000</pubDate>
		<dc:creator>schmeeve</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[pound]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://blog.d27n.com/?p=41</guid>
		<description><![CDATA[Block access to your code in .svn directories via Apache and the Pound load balancer]]></description>
			<content:encoded><![CDATA[<div class="fblikebutton_button" style="float: right; margin-left: 10px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.d27n.com%2F2009%2F09%2F24%2Ftheyre-stealing-your-code%2F&amp;layout=standard&amp;show-faces=false&amp;width=450&amp;action=recommend&amp;colorscheme=dark" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:26px"></iframe>
		</div>
<p>The great security scare of the day is rouge (possibly Russian!) thieves on the prowl looking for source code on your websitez by poking through repository directories, such as .svn. Anyway, it&#8217;s simple to block, but please folks, look at where your web servers are pointed and what may be exposed. It&#8217;s a problem as old as the web itself.</p>
<p>In Apache, this can be done easily:</p>
<blockquote><p><code>&lt;IfModule mod_rewrite.c&gt;<br />
  RewriteRule ^(.*/)?\.svn/ - [F,L]<br />
  ErrorDocument 403 "Access Forbidden"<br />
&lt;/IfModule&gt;</code></p></blockquote>
<p>But sitting in front of Apache and Mongrel we use the pound load balancer. Here&#8217;s a bit of code which will catch anything trying to get into the svn directory, even though directory listings weren&#8217;t possible in the first place:</p>
<blockquote><p><code>Service<br />
URL ".svn.*"<br />
Redirect "http://d27n.com/public/404.html"<br />
End</code></p></blockquote>
<p>You can even skip the Redirect if you want to be lazy or don&#8217;t have a 404 page. This will just deadend the service.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.d27n.com/2009/09/24/theyre-stealing-your-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Object Caching 360/375 objects using memcached

Served from: blog.d27n.com @ 2012-02-05 12:52:51 -->
