Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 4723 invoked from network); 1 Jan 2002 23:23:33 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 1 Jan 2002 23:23:33 -0000 Received: (qmail 5811 invoked by uid 97); 1 Jan 2002 23:23:18 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 5780 invoked by uid 97); 1 Jan 2002 23:23:15 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 5757 invoked from network); 1 Jan 2002 23:23:15 -0000 Date: Wed, 2 Jan 2002 00:22:10 +0100 (CET) From: X-X-Sender: To: Subject: has the use of mod_webapp a file disclosure vulnerability? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello, I just went the easy way to install Tomcat4 on linux via binary RPMs (tomcat4-4.0-1, tomcat4-webapps-4.0-1) and configured my Apache/1.3.20 something like this: DocumentRoot /var/www/virtual/testhost ServerName www.testhost.dom WebAppDeploy examples warpConnection /examples/ The Apache Webserver has some handlers configured: AddHandler server-parsed .shtml AddHandler send-as-is asis Now if I request any URL ending with ".shtml", the Apache server handles the request itself (what may be perfectly legal), but it ignores the DocumentRoot! So a request for "http://www.testhost.dom/var/www/html/index.shtml" tries to serve the file "/var/www/html/index.shtml" which is not contained in the DocumentRoot of that virtual host. The server seems to take "/" as the new DocumentRoot. This behaviour occurs whether the Tomcat engine itself is running or not. Is this a problem of the Apache Webserver, a flaw of mod_webapp or did I just do something completely wrong in my configuration? regards, Markus "Lupo" Volk -- Hardware, n.: The parts of a computer system that can be kicked. -- To unsubscribe: For additional commands: Troubles with the list: