|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-08-21 11:25 UTC] spam2 at rhsoft dot net
Description: ------------ "memtrack.so" breaks "suhosin.executor.func.blacklist" this is very bad because hard to notice and any analyzing should never silently disable security-options "suhosin.executor.func.blacklist" is hardly needed because "disable_functions" is too stupid to work per-directory and disable security-relevant functions serverwide is not everytime practicable ______________ the following config is as example needed to disallow critical functions where "fopen" needs a exception but must not executed by any eval'd code suhosin.executor.func.blacklist = "exec, passthru, shell_exec, system, proc_open, proc_close, proc_nice, proc_terminate, proc_get_status, pcntl_exec, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, mail, symlink" suhosin.executor.eval.blacklist = "popen, pclose, exec, passthru, shell_exec, system, proc_open, proc_close, proc_nice, proc_terminate, proc_get_status, pcntl_exec, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, mail, symlink" Reproduce code: --------------- any code calling a function in "suhosin.executor.func.blacklist" or "suhosin.executor.eval.blacklist" Expected result: ---------------- do not break suhosin Actual result: -------------- suhosin is broken PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 20:00:01 2025 UTC |
suhosin.executor.eval.blacklist = "popen, pclose, exec, passthru, shell_exec, system, proc_open, proc_close, proc_nice, proc_terminate, proc_get_status, pcntl_exec, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, mail, symlink" <?php passthru('/bin/ls'); ?> it will be executed as long memtrack is loaded the hughe difference between "suhosin.executor.eval.blacklist" and "disable_functions" is that the suhosin-option works inside <Directory> and the dumb builin-one only writes the values in phpinfo()-ouput but will never block a function