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 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:
MUST BE VALID
Solve the problem:
49 - 21 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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 May 16 05:01:35 2024 UTC