note 94589 deleted from language.operators.execution by betz

From: Date: Fri, 13 Nov 2009 11:20:50 +0000
Subject: note 94589 deleted from language.operators.execution by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162858@lists.php.net to get a copy of this message
Note Submitter: Billy Hudson ---- In response to the posters below suggesting to put a $_GET value directly through backticks: DO NOT DO THIS! I REPEAT: DO NOT, UNDER ANY CIRCUMSTANCES PUT UNSANITIZED USER INPUT THROUGH BACKTICKS! Doing this will allow anyone to execute whatever command they want on your system. Please follow the advice that is provided in the documentation page for exec(). "When allowing user-supplied data to be passed to this function, use escapeshellarg() or escapeshellcmd() to ensure that users cannot trick the system into executing arbitrary commands."

« previous php.notes (#162858) next »