php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #161 ReadFile & File do not honour SAFE-MODE
Submitted: 1998-03-11 08:50 UTC Modified: 2007-05-21 23:42 UTC
From: benkovsk at pha dot pvt dot cz Assigned: rasmus (profile)
Status: Closed Package: *General Issues
PHP Version: 3.0b5 OS: Digital Unix v3.2D2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: benkovsk at pha dot pvt dot cz
New email:
PHP Version: OS:

 

 [1998-03-11 08:50 UTC] benkovsk at pha dot pvt dot cz
Hi,
I can read root owned files (/etc/passwd) with ReadFile()
or File() even if phtml file and dir is owned by
non-root user. phpinfo reports safemode=1. Include()
in the same script on the same file returns permission 
error, which is right.

BTW: Why there's not a Bug type 'Security'?

My config line:

./configure --with-apache=../apache_1.3b5 --with-config-file-path=/usr/internet/apache/conf --disable-debug --enable
-safe-mode --with-exec-dir=/usr/internet/apache/safe-bin --enable-memory-limit

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-15 22:02 UTC] rasmus
Fixed.
Patch is available at: http://ca.php.net/cvsweb.cgi/fopen-wrappers.c?r1=1.14&r2=1.15
 [2007-05-21 23:42 UTC] davey@php.net
.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC