Bug #15375 Updated: safe_mode wrappers fail for MySQL (other exts?)
| From: | matslin at orakel dot ntnu dot no | Date: | Tue, 05 Feb 2002 02:33:32 +0000 |
| Subject: | Bug #15375 Updated: safe_mode wrappers fail for MySQL (other exts?) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-79168@lists.php.net to get a copy of this message | ||
ID: 15375
Updated by: matslin@orakel.ntnu.no
Reported By: matslin@orakel.ntnu.no
Status: Open
Bug Type: MySQL related
Operating System: All
PHP Version: 4.1.1
New Comment:
it occured to me (while brushing my teeth in fact :)) that this may be
something that has to be patched in the query-parser instead, since the
solution i'm talking about will break if the user decide to build from
a custom libmysql-installation.
Previous Comments:
------------------------------------------------------------------------
[2002-02-04 21:10:42] matslin@orakel.ntnu.no
A message was posted at bugtraq earlier about a problem with safe_mode
and the mysql-library used. the message is available here:
http://www.orakel.ntnu.no/~matslin/php4_safe_mode.txt
I searched the bugdb, but the bug doesnt not seem to be reported. As
the author says in the mail, this may be a problem with other
extensions as well.
As far as i can see, this could probably be fixed in the
send_file_to_server-function in libmysql.c, more specific somewhere
around line 1776 (there is also some mention about this in the mail).
The 'bug' makes it possible to read all files readable for php, even if
its running in safe mode, basedir-restrictions etc. More info in the
mail.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15375&edit=1