paskino / carbonara

Apache License 2.0
0 stars 1 forks source link

config.json can be downloaded from the web and expose db credentials #3

Closed mauntrelio closed 6 years ago

mauntrelio commented 6 years ago

config.json file should be put in another folder (not reachable from the web but available to PHP and python script for reading) or protected somehow, otherwise it could be downloaded from the web and expose db credentials and other sensitive configuration parameters.

paskino commented 6 years ago

maybe worth using htaccess for that?

mauntrelio commented 6 years ago

I think your approach was better, I would use again a .config file (in JSON format to enable easy sharing between different programming languages) + using .htaccess file to prevent access to any . file