Bug #17911 Updated: users can view other user's web files through apache/php rights

From: Date: Fri, 21 Jun 2002 20:00:48 +0000
Subject: Bug #17911 Updated: users can view other user's web files through apache/php rights
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11742@lists.php.net to get a copy of this message
ID: 17911 Updated by: cynic@php.net Reported By: tpalanga@hotmail.com -Status: Open +Status: Bogus Bug Type: Apache related Operating System: Linux PHP Version: 4.1.2 New Comment: Sorry, but the bug system is not the appropriate forum for asking support questions. 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 Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2002-06-21 15:49:18] tpalanga@hotmail.com Hi. Suppose we have a dedicated web server with 100 (or more) users. We configure Apache so it will see every user's web files. So we have user x and user y, User x cannot see or read the y's web files or other files, but he is smart and somehow finds a mode to break into y's web (especially in the case with /home/y/public_html setting --- every user knows that user xxyy has an public_html in his home dir, so he exploits it). How ? By Apache's rights. Does Apache have the rights to read ALL USERS web files ? YES. So x makes a browsing system and he uses Apache's rights to read ALL USERS web files for reading y's web files. So x reads x's config.php (or anything else) and he finds out the database user and pass. What next ? So, I tink it's a bad thing (in fact it's a major security problem) for php and Apache to use general rights for every user. Can Apache be configured as an user-level multi-user-threaded server or this is a SECURITY BUG ? I think someone (at least PHP&Apache) cares. Best regards Tudor Palanga. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17911&edit=1

« previous php.bugs (#11742) next »