config.php security problem

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: config.php security problem

Post by jmcgin51 »

includes will also be readable in the browser unless they are placed somewhere above the webroot

I would say this is not a security issue, since you typically start with a blank config file, and it doesn't get populated with any information until you go through the install.  Without PHP on your server, you can't go through the install, so there won't be any information in the config file.

If you're transferring an existing site from one server (with PHP) to another (without PHP), then you could see this issue.  However, it would typically be discovered when you're in the process of moving the site, and would be fixed during that process.

Also, one of the CMSms system requirements is that the server have PHP installed.  If you're installing on a server that doesn't meet the requirements (whether PHP is installed or not), you're likely to have any number of problems, security-related or not.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: config.php security problem

Post by Wishbone »

I think his concern was that everything would be displayed if PHP went down on the host for some reason.
andershz
Forum Members
Forum Members
Posts: 49
Joined: Fri Nov 21, 2008 9:30 pm

Re: config.php security problem

Post by andershz »

fredp
Forum Members
Forum Members
Posts: 218
Joined: Sun Jul 27, 2008 1:36 am

Re: config.php security problem

Post by fredp »

You may also consider turning off directory listings via .htaccess.
E.g.,
        Options -Indexes

...and deny access to config.php.   

This "HowTo" contains some examples that you might find helpful:
http://wiki.cmsmadesimple.org/index.php/How_to#How_to_Secure_CMSMS_system_-_Small_Guide
Nearly all men can stand adversity, but if you want to test a man's character, give him power.
- Abraham Lincoln
Post Reply

Return to “CMSMS Core”