Re: [PHP-DEV] why the damn phpinfo() is so talkative? + answers From: Kristian Köhntopp (kk <email protected>)
Date: 10/20/00

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/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>