Re: php security on shared hosts
| From: | Tim Traver | Date: | Sun, 26 Sep 2004 16:40:08 +0000 |
| Subject: | Re: php security on shared hosts | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197876@lists.php.net to get a copy of this message | ||
Oh, and I forgot, you can also specify specific include directories to be allowed for a particular user...
Tim.
At 09:47 PM 9/25/2004, Chris Shiflett wrote:
--- Tim Traver <tt-list@simplenet.com> wrote: I can guarantee that is not the way it is supposed to be. We make sure that can't happen by running in Safe mode, using the open_basedir directive, and making sure the directory tree has the correct permissions so the situation you described cannot happen. The safe_mode and open_basedir directives are certainly no protection. I'm curious what sort of permissions you are using that prevents this scenario, since it seems impossible to me. If the legitimate developer can include code using include or require, it means the Web server must be able to read those files. The exception would be if you're running each user in a chroot jail or something, mimicking a dedicated environment. So, I'd say that your shared host is doing a poor job of implementing PHP. I used to think the same, but I've changed my mind, because: 1. safe_mode is no protection. 2. Many prepackaged PHP applications don't work with safe_mode enabled. Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'ReillySimpleNet's Back ! http://www.simplenet.comComing December 2004HTTP Developer's Handbook - Samshttp://httphandbook.org/PHP Community Sitehttp://phpcommunity.org/