note 69930 deleted from function.exec by cmb

From: Date: Sun, 22 Sep 2019 07:19:54 +0000
Subject: note 69930 deleted from function.exec by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212274@lists.php.net to get a copy of this message
Note Submitter: sirnuke at gmail dot com ---- Note that on Linux/UNIX/etc, both the command and any parameters you send is visible to anyone with access to ps. For example, take some php code that calls an external program, and sends a sort of password as a parameter. <?php exec("/usr/bin/secureprogram password"); ?> The entire string (actually probably something like "secureprogram password") will be visible to any user that executes ps -A -F. If you are going to be doing a lot of external calling, or any of it needs to be somewhat secure, you are probably better off writing a php extension.

« previous php.notes (#212274) next »