Re: why the damn phpinfo() is so talkative? + answers

From: Date: Fri, 20 Oct 2000 10:51:06 +0000
Subject: Re: why the damn phpinfo() is so talkative? + answers
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-35642@lists.php.net to get a copy of this message
Andi Gutmans wrote: > I think it should be done on the user level like you > pointed out below. We could put such a suggestion in > the manual (to run with env -i). This is by far not enough. If you are going to put a chapter on safe deployment policies into the manual, you need to differentiate along Windows and Unix systems, and along CGI and module versions of PHP. You'd want to talk about properties and limitations of safe_mode, about Unix process limits such as setrlimit and chroot, about typical additional safeguards for system security such as "env -i", "suexec replaced by sbox, using chroot", about the need to differentiate anonymous root (http docroot) vs. authenticated root (ftp chroot, being one level ABOVE docroot in order to make directories without unauthenticated access available) and the need to store logfiles and configuration files outside of docroot. Also, there should be talk about secure PHP programming, touching not only system level security as above, but also application level security. The section should be talking about control flow analysis, tainted variables, input validation with regexp and other stuff, avoiding register_globals = On in order to facilitate that, writing programs in PHP normal form, event driven programming and validation methods and finally designing secure and ergonomic URLs for your application access... You could, on the other hand, just buy the book by Till and Tobias, which already covers most of this. Kristian -- Kristian Köhntopp, NetUSE AG Siemenswall, D-24107 Kiel Tel: +49 431 386 436 00, Fax: +49 431 386 435 99 Using PHP3? See our web development library at http://phplib.netuse.de/

« previous php.dev (#35642) next »