PetaByet / cdp

Simple & Open Source Server Backups
https://cdp.me
GNU General Public License v2.0
122 stars 39 forks source link

Some minor security changes #18

Closed alexandreteles closed 9 years ago

alexandreteles commented 9 years ago

As I'm working to make CDP a little more secure, as a first step I have made:

  1. Committed a config.php file with changes to the config array, logging option, debug levels and timezone as option;
  2. A method to stop directly access to files that should only be included;
  3. JSON database files moved outside includes directory;
  4. JSON database files has now a less permissive chmod (644);
  5. A index.php file has been added to include directories to stop directory listening when the webserver isn't configured to do so;

OBS.: NEVER make database files world writable