|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-11 18:25 UTC] edink@php.net
[2002-06-11 18:45 UTC] mattmurphy at kc dot rr dot com
[2002-06-11 18:55 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 08:00:01 2025 UTC |
PHP 4.2.1 Path Disclosure Bug System Details: - Windows Me - PHP 4.2.1 as CGI on Xitami 2.49d - No modules PHP 4.2.1 (possibly and probably others) can disclose path information in error output. This is due to the fact that PHP discloses the full path of failing scripts. For example, take the deliberately malformed "Error.php": <?php @if ($action == "error") { } ?> This script produces the following output: Parse error: parse error, unexpected T_IF in C:\INETPUB\WWWROOT\error.php on line 2 As you can see, this includes the path of the web root in the error data. This is surplus information at best, and at worst, data that could aid an attack against the server. While this script produces a parse error, it should be noted that default installs of 4.2.1 produce this on such small events as notices as well.