<?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>h4x3d.com &#187; harden</title>
	<atom:link href="http://h4x3d.com/tag/harden/feed/" rel="self" type="application/rss+xml" />
	<link>http://h4x3d.com</link>
	<description>online portfolio of Julian Klewes</description>
	<lastBuildDate>Thu, 24 May 2012 18:50:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to harden your WordPress install (ssh)</title>
		<link>http://h4x3d.com/how-to-harden-your-wordpress-install-ssh/</link>
		<comments>http://h4x3d.com/how-to-harden-your-wordpress-install-ssh/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 08:36:11 +0000</pubDate>
		<dc:creator>jz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[hard]]></category>
		<category><![CDATA[harden]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.h4x3d.com/?p=1368</guid>
		<description><![CDATA[I figured out how to harden wordpress using ssh and some common sense. I changed ownership (user) of the cache and uploads folder to apache by chown apache uploads chown apache cache to enable apache to write to it chmod was set to more restrictive value of 755 each instead of easily exploitable (as it [...]]]></description>
			<content:encoded><![CDATA[<p>I figured out how to harden wordpress using ssh and some common sense.</p>
<p>I changed ownership (user) of the cache and uploads folder to apache by</p>
<p><code>chown apache uploads<br />
chown apache cache</code></p>
<p>to enable apache to write to it</p>
<p>chmod was set to more restrictive value of 755 each instead of easily<br />
exploitable (as it happened on solarvps and zone.net) chmod 777</p>
<p><code>chmod 755 uploads<br />
chmod 755 cache</code></p>
<p>giving me the following structure</p>
<p><code>ls -l  /wp-content/</p>
<p>drwxr-xr-x  2 apache   psacln 60416 May  3 05:39 cache<br />
-rw-r--r--  1 comh4x3d psacln    30 Nov 14 03:26 index.php<br />
drwxr-xr-x 83 comh4x3d psacln  3072 Apr 17 12:48 plugins<br />
drwxr-xr-x  9 comh4x3d psacln  1024 Apr 17 12:37 themes<br />
drwxr-xr-x  5 comh4x3d psacln  1024 Mar 25 07:04 upgrade<br />
drwxr-xr-x  3 apache   psacln  8192 May  3 05:38 uploads</code></p>
<p>by that wordpress can upload files to the uploads folder and files can<br />
be created in the cache folder.</p>
<p>to restrict the folders even more I added a<br />
.htaccess file with chmod 644 each</p>
<p>vi .htaccess</p>
<p>for uploads:<br />
<code><br />
Deny from all<br />
Allow from 72.249.95.104      # server IP address</p>
<p>Options -ExecCGI # disallow execution of below files<br />
AddHandler cgi-scriptscript .php .pl .py .jsp .asp .htm .shtml .sh .cgi<br />
# we dont want any dodgy pearl scripts or php to executed</p>
<p>Order Allow,Deny<br />
Deny from all<br />
 # deny everything but the<br />
image and text files<br />
Allow from all<br />
</code></p>
<p><code> # deny<br />
opening those files<br />
Order Allow,Deny<br />
Deny from all<br />
</code></p>
<p>similar file for the cache folder, but instead of the image and doc<br />
files only meta and html are allowed, make sure to remove html from<br />
execcgi line</p>
<p>I hope you appreciate this article,</p>
<p>best,<br />
julian klewes<br />
h4x3d.com</p>
]]></content:encoded>
			<wfw:commentRss>http://h4x3d.com/how-to-harden-your-wordpress-install-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

