Bug #15852 Updated: Displaying the file system
| From: | mfischer@php.net | Date: | Mon, 04 Mar 2002 07:25:53 +0000 |
| Subject: | Bug #15852 Updated: Displaying the file system | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1595@lists.php.net to get a copy of this message | ||
ID: 15852
Updated by: mfischer@php.net
Reported By: webmaster@editgroup.com.au
-Status: Open
+Status: Bogus
Bug Type: Directory function related
Operating System: Win2K
PHP Version: 4.1.2
New Comment:
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php
Previous Comments:
------------------------------------------------------------------------
[2002-03-03 20:54:45] webmaster@editgroup.com.au
A client has posted us the following code, after being able to view to
complete filesystem on a Windows 2000 server we resell space on:
----------------------------------------------------
<?
// get directory handle
$hook = dir("c:winnt");
// display location
echo "<b>Current path is $hook->path</b><br>";
// read directory and echo list
while ($file=$hook->read())
{
if ($file != "." && $file != "..")
{
echo "$file<br>";
}
}
// close directory
$hook->close();
?>
----------------------------------------------------
Is there anyway to protect against this, and does it represent a
security flaw?
Thanks
Gary
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15852&edit=1