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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC