note 52158 added to security.apache
| From: | php-general at lists dot php dot net | Date: | Fri, 22 Apr 2005 14:53:09 +0000 |
| Subject: | note 52158 added to security.apache | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88407@lists.php.net to get a copy of this message | ||
Sure, Open_basedir does NOT protect against this:
<?
exec("/usr/bin/cat /etc/passwd",$output);
var_dump($output) ;
?>
But, why would you put this code on a public page?
----
Manual Page -- http://www.php.net/manual/en/security.apache.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52158
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52158&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52158&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52158&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52158&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52158&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52158&report=yes
Search -- http://master.php.net/manage/user-notes.php