Bug 29728 - Tomcat 'admin' application allows jspf source browsing
Summary: Tomcat 'admin' application allows jspf source browsing
Status: RESOLVED WONTFIX
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Webapps:Administration (show other bugs)
Version: 5.0.25
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL: http://127.0.0.1:8080/admin/users/
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-22 03:51 UTC by Sergey Ushakov
Modified: 2005-03-20 17:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Ushakov 2004-06-22 03:51:27 UTC
Default configuration of Tomcat 'admin' application allows jspf source browsing 
without any authentication. One needs just to use URL 
http://tomcat_host:8080/admin/users/ .
Comment 1 Remy Maucherat 2004-06-22 08:23:44 UTC
The JSP servlet is mapped to *.jsp and *.jspx, as the spec requires. As a
result, *.jspf will always go to the default servlet, and as a result, they
cannot be secured without some kind of security constraint in the web application.
Comment 2 Sergey Ushakov 2004-06-26 08:59:12 UTC
Well Remy, I completely agree with you regarding servlet mapping. I just meant 
that IMHO some security constraints should be added to the distributed standard 
config of the 'admin' app. Otherwise unexperienced system admins may trustfully 
retain security holes in their production systems.

My suggestions are:
- consider adding <url-pattern>*.jspf</url-pattern> and <url-pattern>*.xml</url-
pattern> to the security constraints (at least);
- consider protection of directories from unauthorized browsing; I tried to use 
<url-pattern>*/</url-pattern> , but it results in an exception during server 
startup; so I may suggest using listings=false for the default servlet at least.

Regards,
Serge
Comment 3 Tim Funk 2004-06-26 15:23:48 UTC
At best this is [very] minor since the tomcat source is already open for anyone
to see so letting someone browse it doesn't matter.

But I'm going to close this anyways.