|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
3 + 45 = ?
Subscribe to this entry?

 [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: Fri Dec 08 00:01:30 2023 UTC