#30905 [NEW]: open_basedir don't work
| From: | sat at lomejordeinternet dot net | Date: | Fri, 26 Nov 2004 12:03:00 +0000 |
| Subject: | #30905 [NEW]: open_basedir don't work | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-69473@lists.php.net to get a copy of this message | ||
From: sat at lomejordeinternet dot net
Operating system: Linux Fedora 2
PHP version: 4.3.9
PHP Bug Type: Filesystem function related
Bug description: open_basedir don't work
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 bug report at http://bugs.php.net/?id=30905&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30905&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30905&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30905&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30905&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30905&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30905&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30905&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30905&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30905&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30905&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30905&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30905&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30905&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30905&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30905&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30905&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30905&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30905&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30905&r=mysqlcfg