Products
White Papers
Data Sheets
Case Studies
Support Login
Locate a Partner
iPolicy Networks Security Advisory
 

Apache Tomcat RequestDispatcher Directory Traversal Vulnerability

Date Discovered: 08/03/2008
Severity: Medium
Applications Affected: Apache Tomcat 6.0.0 to 6.0.16
Apache Tomcat 5.5.0 to 5.5.26
Apache Tomcat 4.1.0 to 4.1.37
Type Remote
Identifiers CVE-2008-2370
BID-30494
Vendor Apache Software Foundation Tomcat
Synopsis

A vulnerability has been discovered in Apache Tomcat server that allows remote attackers to perform the directory traversal attack and gain access to the restricted files available on the server.
Recommended Action
Vendor has released the patch for this vulnerability.
http://tomcat.apache.org/security-6.html
http://tomcat.apache.org/security-5.html
http://tomcat.apache.org/security-4.html
Threat Analysis

Apache Tomcat is a HTTP web server. It is an implementation of the Java Servlet and JavaServer Pages technologies. It provides the servlet container used in development and deployment of Java based web applications.Recently there is a vulnerability found in it that allows the remote attacker to perform directory traversal attack.

When server uses the RequestDispatcher, it performs path normalization before removing the query string from the URI. So, remote attacker can conduct the directory traversal attack via crafting the URI having specially crafted request parameter and gain access to the content protected by a security constraint or by locating it in under the WEB-INF directory.

For example:- If a web page contains some code as follows:-
<%
pageContext.forward("/page2.jsp?somepar=someval&par="+request.getParamet
er("arbitraryname"));
%>

Here, an attacker can use the following type of URI to conduct the attack:-
http://websitename/page.jsp?arbitraryname=/../WEB-INF/web.xml

References

http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-2370
http://www.securityfocus.com/bid/30494

Write-up by: Vikrant
Security Sites
 
“iPolicy is one of the most visionary firewall vendors in the firewall Magic Quadrant. Its architecture of a central session processing engine and multiple content blades that are able to block based on signatures, rules and so on is the closest to the network security ideal.”
 
Greg Young, John Pescatore
Magic Quadrant for Network Firewalls, 2H04, Gartner
 

 

Home | About Us | Products | Technology | Solutions | Support | Partners | News & Events | Resources | Contact Us
Copyright ©2008 iPolicy Networks - Security Products Division of Tech Mahindra Limited | Privacy Policy | Site Map