php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21811 Viewing files on disk
Submitted: 2003-01-21 18:44 UTC Modified: 2003-01-21 23:18 UTC
From: kuk at megared dot net dot mx Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.2.2 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kuk at megared dot net dot mx
New email:
PHP Version: OS:

 

 [2003-01-21 18:44 UTC] kuk at megared dot net dot mx
Just to know if it correc to see /etc/passwd for example, I did a simple script like this.

pag1.html
--------------------------------
<html>
<body>
<p>:-D</p>

<form action="ensena.php" method="POST">
<input type="text" name="file"><input type="submit">

</form>
</body>
</html>
----------------------------------
ensena.php
----------------------------------
<?
$archivo = $_POST['file'];
readfile($archivo);
?>
----------------------------------
so you can put "/etc/passwd" and the it is showed, just wanna know if this is correct..

Regards.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-21 23:18 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.


You really need to ask this on some general mailing list..

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 18:01:34 2025 UTC