RE: [PHP4BETA] cat /etc/passwd

From: Date: Wed, 12 Apr 2000 21:42:24 +0000
Subject: RE: [PHP4BETA] cat /etc/passwd
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-13474@lists.php.net to get a copy of this message
> You can prevent this by having safe_mode_exec_dir > empty and safe_mode set to 'On' in your php.ini : > > safe_mode=On > safe_mode_exec_dir= > > Then, php refuses to system() commands that are not explicitly > set in safe_mode_exec_dir, refuses to executes with backquotes, > ans also checks that the files you want to fopen are owned by the > same uid as the script you're executing. Turning safe mode on (with PHP as a module) has other implications. PHP loses some functionality, which I consider a major (and unneccessary) tradeoff, just to safeguard a file that can be protected in other ways (which also lends itself to greater overall system security). Mike Robinson

« previous php.version4 (#13474) next »