<?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>[LINICKX].com &#187; blogsecurity.net</title>
	<atom:link href="http://www.linickx.com/tag/blogsecuritynet/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linickx.com</link>
	<description>Moments of Genius followed by Trash.</description>
	<lastBuildDate>Tue, 07 Feb 2012 15:06:32 +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>Trouble-Shooting the WordPress Security White Paper.</title>
		<link>http://www.linickx.com/342/trouble-shooting-the-wordpress-security-white-paper</link>
		<comments>http://www.linickx.com/342/trouble-shooting-the-wordpress-security-white-paper#comments</comments>
		<pubDate>Mon, 08 Oct 2007 08:59:23 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[blogsecurity.net]]></category>
		<category><![CDATA[hardening]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.linickx.com/archives/342/trouble-shooting-the-wordpress-security-white-paper</guid>
		<description><![CDATA[I&#8217;ve been following the activity over at blogsecurity, their activities are very interesting and quite commendable. After some shameless delay I decided to read though their WP Security White Paper and apply some of the steps&#8230; yes I did say &#8230; <a href="http://www.linickx.com/342/trouble-shooting-the-wordpress-security-white-paper">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been following the activity over at <a href="http://blogsecurity.net">blogsecurity</a>, their activities are very interesting and quite commendable. After some shameless delay I decided to read though their <a href="http://blogsecurity.net/wordpress/wordpress-security-whitepaper/">WP Security White Paper</a> and apply some of the steps&#8230; yes I did say some, harden security folk will insist that you should follow <strong>all</strong> of the whitepaper to be security, which is probably true, but one should never forget that security is about risk&#8230; and in basic terms accessibility vs security, for example I won&#8217;t ever lock my wp-admin down to a single IP as I&#8217;ve been know to blog at work, home, around my parents place and even moderate comments on the train! Thus my wp-admin isn&#8217;t as secure as someone who did lock it down, but this is a risk I&#8217;m willing to live with.</p>
<p>One of the area&#8217;s that I did like was the tightening up of wp-includes &#038; wp-content, but before you jump in and copy/paste what&#8217;s in the pdf into .htaccess, you should be prepared for some work. Basically </p>
<p><code><br />
	Order Allow,Deny<br />
	Deny from all<br />
	&lt;Files ~ ".(css|jpe?g|png|gif|js)$"&gt;<br />
	Allow from all<br />
	&lt;/Files&gt;<br />
</code></p>
<p>when applied stops any file except .css,.jpeg/jpg, .png, .gif &#038; .js from being accessible; now this is great for stopping zero-day remote file includes from php files but it will mean that any php file (<em>even those you may want access to</em>) will be restricted. What I&#8217;ve decided to do below is document what changes you need to make to the recommendation to get some popular plugins to work&#8230;. This approach will also have a long term impact on the &#8220;<a href="http://blogsecurity.net/wordpress/wordpress-hardening-project-update/">hardening plug-in</a>&#8221;   that the blogsecurity team are planning; basically the issue is &#8211; the default recommended .htaccess will break plugins, the number of plugins avilable for a wordpress install is unlimited thus they will need to provide a community driven configuration repository that the plugin can draw upon to open things up for specific plugins.</p>
<p>For the purpose of this documentation, I&#8217;m going to assume wordpress is installed in <code>/var/www/html</code> so please change appropriately.</p>
<p>For those who use the rich editor and need the spell checker, you&#8217;ll need to add this to your <code>/var/www/html/wp-includes/js/tinymce/plugins/spellchecker/.htaccess</code></p>
<p><code><br />
# Open up the spellchecker<br />
&lt;Files "tinyspell.php"&gt;<br />
        Allow from all<br />
&lt;/Files&gt;<br />
</code></p>
<p>To get the popular <strong>WP-Cache</strong> plugin to work changes are made to:<code>/var/www/html/wp-content/.htaccess</code><br />
<code><br />
	Order Allow,Deny<br />
	Deny from all<br />
        &lt;Files ~ ".(css|jpe?g|png|gif|js|html)$"&gt;<br />
        	Allow from all<br />
	&lt;/Files&gt;<br />
</code><br />
This will allow the static html files in the cache to be downloaded, now I didn&#8217;t get to the bottom of this, but I believe that the wp-cahe php files might be called directly, so if you are having problems see if this resolves it&#8230;<br />
<code><br />
&lt;Files ~ "wp-cache"&gt;<br />
		Allow from all<br />
&lt;/Files&gt;<br />
</code><br />
This will open up the wp-cache files as if you hadn&#8217;t installed the .htaccess in the 1st place &#8211; you have been warned, now you evaluate the risk <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you are using the <strong>google site map generator</strong>, then you can create a .htaccess file in<code>/var/www/html/wp-content/plugins/google-sitemap-generator</code> to allow the xml style sheet through:<br />
<code><br />
&lt;Files "sitemap.xsl"&gt;<br />
                Allow from all<br />
 &lt;/Files&gt;<br />
</code></p>
<p>The final one that might interest people is <strong>Share This</strong>, you&#8217;ll need at .htaccess in <code>/var/www/html/wp-content/plugins/share-this</code> with:<br />
<code><br />
&lt;Files "share-this.php"&gt;<br />
                Allow from all<br />
&lt;/Files&gt;<br />
</code></p>
<p>As you might have gathered this does involve creating a lot of .htaccess files, which is a bit of a pain, if you&#8217;re fortunate enough to run your own web server and have access to your httpd.conf you can actually keep these all in one file, keeping with the last <em>share this</em> example, instead of creating a .htaccess in <code>/var/www/html/wp-content/plugins/share-this</code> you can edit your httpd.conf and just wrap the code in <code>&lt;Directory&gt;</code>, so you could actually paste this:<br />
<code>&lt;Directory "/var/www/html/wp-content/plugins/share-this/"&gt;</code><br />
<code><br />
	&lt;Files "share-this.php"&gt;<br />
                Allow from all<br />
        &lt;/Files&gt;<br />
&lt;/Directory&gt;<br />
</code><br />
I hope this all makes sense, and is of some use to someone&#8230;good luck to the blogsecurity team, if you need any help feel free <a href="http://www.linickx.com/contact">to shout</a> <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/342/trouble-shooting-the-wordpress-security-white-paper/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

