Sun 17 Aug 2008 |
Hosting providers - Isn't it time?
Written by Brad Baker
Time for what? PLEASE read this: http://au2.php.net/register_globals - read the part in RED.
I've finished yet another posting spree trying to help users with security and performance issues and I am still SHOCKED at how many hosts still have register_globals ON serverwide. Come on hosting providers, isn't it time you you kept up? Isn't it time you closed this security hole that only you as a host can close, and help prevent cross server file compromises?
What about running suphp (or an equivalent)? Why are so many hosts STILL not running a 'more secure' environment for their users?
I am sure all hosts understand (they should!!) what I am talking about, but for the users, who I suggest take this and pressure your hosts, let me try to explain these two things in laymans terms:
1. With register_globals ON serverwide even if you as a user disable them (via a php.ini or .htaccess directive) under certain circumstances your site can still be compromised if another user account on the server is compromised or is used maliciously. It's that simple, and it happens day in and day out, people posting on the Joomla Forum making it apparent that this was the reason their site was compromised.
* Disclaimer: It's true, your host may have a method of working around this huge security hole, but even still, I ask "WHY?" register_globals has been off since php 4.2 by default, and we are well into the php5 world now.
2. suphp (or equlivalent). Running Apache/php via this method means permission problems for you users are a thing of the past (almost). Under this environment when php writes a file (ie installing a template for example) the files are owned by your user account. Files that are 644 are writable by your user (ftp), and yet other users on the same shared server cannot write to them. Again, why would you not want this simple extra layer of security, as well as making it so much easier for your users to mange their Joomla (and any other php script) website?
* Disclaimer: Again, there are circumstances when suphp is not efficient (dedicated server possibly, and extremely high load possibly), however at the least, check with your provider and ask them what methods they use and why.
.. anyway.. that's if for now. PLEASE, do your users, and by extension yourself a favor and consider my comments.
Oh, and I guess it goes without saying, since php4 is now EOL all hosts should be running php5 now.









2008-08-17 22:20:27
but! if your host doesn't offer PHP 5 as at the very least an option then id be thinking about switching!
2008-08-18 01:41:27
2008-08-18 20:42:50
2008-08-19 10:36:11
I would prefer if Joomla only runs on PHP5 systems (like many other frameworks do it). Sure it will not run on a lot of systems, but many hoster also offer PHP5 so the user have to look for another hoster then.
2008-08-19 22:39:43
http://www.joomlatutorials.com/faq/view/joomla_security_tips/permissions_under_phpsuexec/60.html
2008-08-20 15:15:33
2008-08-22 18:16:34
2008-08-26 18:40:59
Even with this strict environment all my Joomla components and modules function normally. I have other controls in place that I don't want to mention here.
2008-08-30 04:55:59
2008-08-31 21:32:35
2008-09-01 15:25:07
I think you are correct.
Hosting companies are NOT in a position to upgrade or troubleshoot systems that no longer work with register_globals off.
Even worse, many php systems are installed by people who cannot understand the technical issues. All they know and care about is that "My host did something and now my site won't work".
The only solution is a business/marketing one - Hosts advertise an "up-to-date, modern, more secure server" with a list of restrictions (e.g. php5 only, register_globals off.
They then change their service levels for the older servers - longer response times, more costly support etc. The argument being that these old sites create lots of security hassles and more work for the host.
Finally, they offer to migrate a copy of a site to the modern server to see if it works. If not, the client understands that they have two choices - the old server or the new.
Regards
Brendon
2008-09-03 14:11:25
XP is EOL so should everyone buy Vista? N0, of cause not! There are loads of scripts and software designed to run on php4 so a good Host should provide a choice of both.
2008-09-03 14:29:51
2008-09-03 23:58:27
Virtual, what you should so is disable it serverwide and only enable it on a per user basis. If you are running suphp this would be in a local php.ini file and be far safer than running it serverwide.
I guess your server admin should already know this though.
2008-09-04 22:20:25
2008-10-01 13:23:43
I noticed that my site was down yesterday, returning "500 internal errors" for anything in joomla. Everything looked to be ok, php itself was running, the database looked ok, but no joomla. panic!
I contacted my provider, and after being asked to look twice they came back and said that indeed they had installed suPHP the night before.
since I had my file permissions all over the place, the requirement for 644 was being violated.
so now I get to dance on the table, knowing I have cheated death once more!
2008-10-05 17:03:30
I thought i reply to this thread with an note to our service, which we run since joomla began... we offer state of the art joomla-hostings , either for view domains or as reseller... step by at www.joomla-hostings.ch Over 2000 happy joomla designers speaks for it self
2008-11-04 20:16:23
I find it amusing to hear a host has enabled suPHP without correcting the file ownerships and permissions to be compatible. Very sloppy!