I just discovered that one of my hosting providers has a bad configuration of PHP/Apache. Using PHP, I am able to navigate to other users' directories in the shared hosting environment. I can even access the root file system. While I can read/view most all files and folders, I can only modify those with 0777 permissions via PHP. I'm not sure what user PHP is running as. The server API is via Apache and not CGI.
The server is running:
Apache/1.3.33 (Debian GNU/Linux) Sun-ONE-ASP/4.0.0 PHP/4.3.10-18 mod_ssl/2.8.22 OpenSSL/0.9.7e FrontPage/5.0.2.2635
The PHP script that I am using to navigate the server does not work on any other web host that I use. I cannot even get the script to navigate my own default Ubuntu 6.10 system running the current versions of Apache/PHP. The buggy web host is telling me that they need about a month to correct and secure this server. I'm not buying it. Isn't there some basic setting in php.ini that would restrict PHP script access to the users' home directories? Is this just a matter of updating PHP to a version within the past two years? What's the best way to secure this?
The server is running:
Apache/1.3.33 (Debian GNU/Linux) Sun-ONE-ASP/4.0.0 PHP/4.3.10-18 mod_ssl/2.8.22 OpenSSL/0.9.7e FrontPage/5.0.2.2635
The PHP script that I am using to navigate the server does not work on any other web host that I use. I cannot even get the script to navigate my own default Ubuntu 6.10 system running the current versions of Apache/PHP. The buggy web host is telling me that they need about a month to correct and secure this server. I'm not buying it. Isn't there some basic setting in php.ini that would restrict PHP script access to the users' home directories? Is this just a matter of updating PHP to a version within the past two years? What's the best way to secure this?