note 15399 deleted from features.safe-mode by cmb
| From: | cmb@php.net | Date: | Tue, 13 Oct 2020 20:04:31 +0000 |
| Subject: | note 15399 deleted from features.safe-mode by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215589@lists.php.net to get a copy of this message | ||
Note Submitter: jedi at tstonramp dot com
----
Many filesystem-related functions are not appropriately restricted when Safe Mode is activated on an
NT server it seems. I would assume that this is due to the filesystem not making use of UID.
In all of my scripts, no matter WHO owns the script (file Ownership-wise) or WHO owns the
directory/file in question; both UIDs display
(getmyuid() and fileowner()) as UID = 0
This has the rather nasty side effect of Safe Mode allowing multiple filesystem operations because
it believes the script owner and file/dir owner are one and the same.
While this can be worked around by the judicious application of proper filesystem privileges,
it's still a "dud" that many of Safe Mode's securities are simply not there with
an NT implementation.