php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17161 rmdir() bypasses safe_mode
Submitted: 2002-05-12 10:30 UTC Modified: 2002-05-12 12:12 UTC
From: ilia at prohost dot org Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.2.0 OS: Linux 2.4.18
Private report: No CVE-ID: None
 [2002-05-12 10:30 UTC] ilia at prohost dot org
rmdir() function can be used to delete directories that a user should be able to delete under safe_mode.

Ex.

mkdir test
chmod 777 test
(gid: user pid: user)

test.php (gid: www pid: www)
<?php rmdir('test'); ?> 

works!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-12 12:12 UTC] ilia at prohost dot org
not a bug since only works if the directory which is being removed is located inside a directory with the same uid as the removing script.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 17:01:34 2024 UTC