Block Tomcat 5.5 Directory listing vulnerability with Apache <Directory>

This is a discussion on Block Tomcat 5.5 Directory listing vulnerability with Apache <Directory> within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi all, I have been trying to block the Tomcat directory listing vulnerability using Apache's Directory with no success. ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-18-2006
leonardobgil@gmail.com
 
Posts: n/a
Default Block Tomcat 5.5 Directory listing vulnerability with Apache <Directory>

Hi all,

I have been trying to block the Tomcat directory listing vulnerability
using Apache's Directory with no success.

Has anyone been able to fix that? We can't upgrade Tomcat as
recommended by the CVE, and that flaw is also present on versions above
5.5.17

Here is the vulnerability:
http://www.securityfocus.com/bid/19106/exploit

Basically any url like http://foo.com/; (with a semicolon at the end)
displays the directory files

This is what I'm trying to do:

<Directory ~ "^\;">
AllowOverride None
Order deny,allow
Deny from all
Allow from none
</Directory>

I have tried a couple different regexes but nothing worked so far

Thank you

Leo

  #2 (permalink)  
Old 12-20-2006
Juha Laiho
 
Posts: n/a
Default Re: Block Tomcat 5.5 Directory listing vulnerability with Apache <Directory>

"leonardobgil@gmail.com" <leonardobgil@gmail.com> said:
>I have been trying to block the Tomcat directory listing vulnerability
>using Apache's Directory with no success.


At least as a first reaction, <Directory> is not the correct directive
for this: the requests that are forwarded to Tomcat never reach the
"directory space" from Apache point-of-view. <Location> might be
a better guess - but even then it's a question of precedence between
the <Location> entry and whatever you're using to forward requests
to Tomcat (mod_proxy, mod_jk).
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:40 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0