Re: PHP shell commands

From: Date: Fri, 11 Jan 2008 05:37:56 +0000
Subject: Re: PHP shell commands
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-267067@lists.php.net to get a copy of this message
Lucas Prado Melo wrote:
Hello, Some php applications store database passwords into files which can be read by the user www-data. So, a malicious user which can write php scripts could read those passwords. What should I do to prevent users from viewing those passwords?
Not too much really. The webserver needs to be able to read a config file. You could obfuscate the fields/entries or encrypt them somehow, but it needs to be a two-way encryption (ie you're going to need to undo the encryption to be able to use the password). -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#267067) next »