Re: realpath patch
| From: | Sara Golemon | Date: | Fri, 01 Oct 2004 18:24:25 +0000 |
| Subject: | Re: realpath patch | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13100@lists.php.net to get a copy of this message | ||
> I'd like to commit the realpath() patch I sent to the list for review a
> week or so ago. Unless there are any objections I'll commit it (to HEAD)
in
> 1-2 days. This will give it some more exposure and will have more people
> testing it.
>
Somehow the patch is no longer in my news spool, so rather then looking at
the source I'll just ask: Are all uses of VCWD_REALPATH() effected by this?
If so it could provide a means to bypass basedir checks (and possibly
certain parts of safe_mode). A scripter on a shared host could create a
symlink, get the cache to catch it, then change the symlink to point to a
different (ordinarily restricted) location, then do normal file ops letting
the basedir check believe that the script is accessing a valid location.
Can we roll in a VCWD_REALPATH_NO_CACHE() macro to avoid problems like this?
-Sara