PHP 4.0 Bug #8391 Updated: as Apache module, PHP errors should not reveal absolute file paths
| From: | jmoore@php.net | Date: | Sun, 24 Dec 2000 01:49:50 +0000 |
| Subject: | PHP 4.0 Bug #8391 Updated: as Apache module, PHP errors should not reveal absolute file paths | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42193@lists.php.net to get a copy of this message | ||
ID: 8391
Updated by: jmoore
Reported By: madizen@tds.net
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To:
Comments:
On prduction sites error reporting should be set so that
display_errors = off in your php.ini to keep this information secret.
James
Previous Comments:
---------------------------------------------------------------------------
[2000-12-23 19:46:51] madizen@tds.net
When PHP is installed as an Apache module (using Apache and PHP port installers from FreeBSD), and a
script contains syntax errors or encounters problems while in use (e.g. unable to open a file with
fopen), errors are reported to the browser window which reveal the absolute file path to the script
rather than the relative path known by Apache, e.g. /private/database/area/php/script.php instead of
/php/script.php, assuming the Apache root document directory is /private/database/area/. In several
other instances, similar problems with web products (IIS, et. al.) revealing the absolute paths to
their virtual environments have been labeled "bugs" or "security leaks". Please
consider whether the absolute path can/should be masked whenever discretion can be obtained. I
apologize if this is a configurable behavior and I just can't find the toggle, but perhaps
discretion should be the default behavior if such a toggle exists. Thank you for your consideration.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8391