#30905 [Opn->Bgs]: open_basedir don't work

From: Date: Fri, 26 Nov 2004 12:12:19 +0000
Subject: #30905 [Opn->Bgs]: open_basedir don't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69474@lists.php.net to get a copy of this message
ID: 30905 Updated by: derick@php.net Reported By: sat at lomejordeinternet dot net -Status: Open +Status: Bogus Bug Type: Filesystem function related Operating System: Linux Fedora 2 PHP Version: 4.3.9 New Comment: This is not a bug, PHP can not stop other programs from going into directories protected by open_basedir. Previous Comments: ------------------------------------------------------------------------ [2004-11-26 13:02:56] sat at lomejordeinternet dot net Description: ------------ http://ns11.hostinglmi.net/phpinfo.php In this circustances, with open_basedir on httpd.conf (<IfModule mod_php4.c> php_admin_value open_basedir "/home/xn3m/:/usr/lib/php:/usr/local/lib/php:/tmp" </IfModule> ) If execute certain local exploit such file attached, user can read any dir with grup other read permission. Reproduce code: --------------- ns3.hostinglmi.net/cmd.txt ns3.hostinglmi.net/bug_openbasedir.png (This machine don't work already bug becase added to php.ini disable_functions = passthru,exec,shell_exec,proc_open) Expected result: ---------------- Use cat comand for see any file with password (config.php of several scripts,..) Use ls for see structure filesystem... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30905&edit=1

« previous php.bugs (#69474) next »