#20689 [Com]: php_admin_value disable_functions not working as it should
| From: | akaylaa at yahoo dot com | Date: | Thu, 28 Nov 2002 02:55:49 +0000 |
| Subject: | #20689 [Com]: php_admin_value disable_functions not working as it should | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26027@lists.php.net to get a copy of this message | ||
ID: 20689
Comment by: akaylaa@yahoo.com
Reported By: webmaster@walia.com
Status: Won\'t fix
Bug Type: *Configuration Issues
Operating System: w2k and linux both
PHP Version: 4.2.3
New Comment:
Even if the performance penalty is huge, it would still be really nice
to have that for security reasons.
what is you are doing web hosting on windows and want to stop people
from running system commands. the user can run a system command in his
own folder, of course, but then he can also run a batch file that
actually access files above his own folder even if safe mode is on and
base dir is set.
the problem will be running of the batch file. legally the user only
used a php system command in his own folder, but the batch file can now
go ahead and delete files on the server anywhere.
so i personally consider this to be a bug, and a very serious one from
the point of view of web hosting for the public.
Previous Comments:
------------------------------------------------------------------------
[2002-11-27 20:22:47] rasmus@php.net
For technical reasons this cannot be done. Well, it could, but the
performance penalty would be huge.
------------------------------------------------------------------------
[2002-11-27 20:09:10] webmaster@walia.com
OK, here it goes, i will come to the point.
php_admin_value disable_functions function_string does not work on a
per domain basis. i know that is what the documentation says also. but
i think it should be allowed to work on a per domain basis by allowing
it to be used in the conf file in the virtual domains.
The funny part is that even if you do put this in the virtual domain,
for example php_admin_value disable_functions phpinfo, this means that
phpinfo is not allowed to run on that domain. the phpinfo not only
runs, but it shows the local setting that phpinfo is actually disabled.
where as it is not.
if this were allowed to be in the conf files, running php would be a
lot more secure and there will be a lot less headache for the admin
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20689&edit=1