|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9353 Require command reads /etc/passwd
Submitted: 2001-02-20 09:26 UTC Modified: 2001-02-20 13:35 UTC
From: sebastian at wolfgarten dot com Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.1pl2 OS: Linux
Private report: No CVE-ID: None
 [2001-02-20 09:26 UTC] sebastian at wolfgarten dot com

I have found a bug in PHP 4.01pl2 and maybe it exist in all other php versions too. A php script can read all files on the system when the read flag for everyone is set for that file. This code shows the problem:


It is not a very serious bug but by reading local files a hacker might get important information he (or she) could use to hack into the system.

Sebastian Wolfgarten


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-20 13:35 UTC]
Please check out the security section of the manual, 
especially regarding the safe mode feature.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 02 00:01:27 2023 UTC