Title: Apache Tomcat Directory Traversal Vulnerability
Author: Simon Ryeo(bar4mi (at) gmail.com, barami (at) ahnlab.com)
Severity: High
Impact: Remote File Disclosure
Vulnerable Version: prior to 6.0.18
Solution:
- Best Choice: Upgrade to 6.0.18 (http://tomcat.apache.org)
- Hot fix: Disable allowLinking or do not set URIencoding to utf8 in order to avoid this vulnerability.
- Tomcat 5.5.x and 4.1.x Users: The fix will be included in the next releases. Please apply the hot fix until next release.
References:
- http://tomcat.apache.org/security.html
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-2938
History:
- 07.17.2008: Initiate notify (To Apache Security Team)
- 08.02.2008: Responsed this problem fixed and released new version
- 08.05.2008: Notify disclosure (To Apache Tomcat Security Team)
- 08.10.2008: Responsed with some suggestions.
Description
As Apache Security Team, this problem occurs because of JAVA side.
If your context.xml or server.xml allows 'allowLinking'and 'URIencoding' as
'UTF-8', an attacker can obtain your important system files.(e.g. /etc/passwd)
Exploit
If your webroot directory has three depth(e.g /usr/local/wwwroot), An
attacker can access arbitrary files as below. (Proof-of-concept)
http://www.target.com/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/foo/bar
# milw0rm.com [2008-08-11]
About Me
Blog Archive
-
►
2012
(2)
- ► 08/19 - 08/26 (2)
-
►
2011
(1)
- ► 01/02 - 01/09 (1)
-
►
2010
(7)
- ► 08/29 - 09/05 (5)
- ► 08/22 - 08/29 (2)
-
▼
2008
(14)
- ► 12/14 - 12/21 (1)
- ► 12/07 - 12/14 (1)
-
▼
11/02 - 11/09
(12)
- 5 Foods for a Better
- rpm stands for Redhat Package Manager.
- Apache Tomcat Directory Traversal Vulnerability
- What is the difference between UTF-8, UTF-16?
- How do I get UTF-8?
- What can I do with a UTF-8 string?
- How to you handle UTF-8?
- What is the UTF-8 encoding?
- What is the definition of UTF-8?
- Top 10 Ways to Be Happy at Work
- How to run Tomcat on a different port number
- tomcat bind exception

No comments:
Post a Comment