php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26250 may view source of all files
Submitted: 2003-11-14 05:22 UTC Modified: 2003-11-14 06:58 UTC
From: tspiteri at ieee dot org Assigned: goba (profile)
Status: Closed Package: Website problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2003-11-14 05:22 UTC] tspiteri at ieee dot org
Description:
------------
If I try to view the source of e.g. /backend/index.php using:
http://www.php.net/source.php?url=/backend/index.php
I get an error message:

Invalid file or folder specified

But I can view it using:
http://www.php.net/source.php?url=/manual/../backend/index.php



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-14 06:58 UTC] goba@php.net
Well, the source page just tries to check some files so what is not intended for the usual viewers will not be viewed. There are multiple options to get those files for anyone (like setting up a local mirror site), so you have not found a security hole :) By the way, I have added a check on the .. component, so there will be no such inconsistencies in the future.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 19:00:01 2026 UTC