Ruby WEBrick directory traversal

ruby-webrick-directory-traversal (41010) The risk level is classified as MediumMedium Risk

Description:

Ruby could allow a remote attacker to traverse directories on the system, caused by an error in the WEBrick library. An attacker could send a specially-crafted URL request containing an encoded backslash (..%5c) or files that match patterns specified in the :NondisclosureName option to view arbitrary files on the system.

Platforms Affected:

  • Mandriva, Corporate Server 3.0
  • Mandriva, Corporate Server 3.0 X86_64
  • Mandriva, Corporate Server 4.0
  • Mandriva, Corporate Server 4.0 X86_64
  • Mandriva, Linux 2007.1
  • Mandriva, Linux 2007.1 X86_64
  • Mandriva, Linux 2008.0 X86_64
  • Mandriva, Linux 2008.0
  • Yukihiro Matsumoto, Ruby 1.8.4 and prior
  • Yukihiro Matsumoto, Ruby 1.8.5-p114 and prior
  • Yukihiro Matsumoto, Ruby 1.8.6-p113 and prior
  • Yukihiro Matsumoto, Ruby 1.9.0-1 and prior

Remedy:

Refer to the Ruby Web site for patch, upgrade or suggested workaround information. See References.

Consequences:

Obtain Information

References:

  • Ruby Programming Language Web site, File access vulnerability of WEBrick at http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/.
  • BID-28123: Ruby WEBrick Remote Directory Traversal and Information Disclosure Vulnerabilities
  • CVE-2008-1145: Directory traversal vulnerability in WEBrick in Ruby 1.8 before 1.8.5-p115 and 1.8.6-p114, and 1.9 through 1.9.0-1, when running on systems that support backslash (\) path separators or case-insensitive file names, allows remote attackers to access arbitrary files via (1) ..%5c (encoded backslash) sequences or (2) filenames that match patterns in the :NondisclosureName option.
  • FrSIRT/ADV-2008-0787: Ruby WEBrick Library Multiple Remote Directory Traversal Vulnerabilities
  • FrSIRT/ADV-2008-1981: Apple Mac OS X Command Execution and Security Bypass Issues
  • MDVSA-2008:141: Updated ruby packages fix vulnerabilities
  • MDVSA-2008:142: Updated ruby packages fix vulnerabilities
  • SA29232: Ruby WEBrick Information Disclosure Vulnerabilities
  • SA30802: Apple Mac OS X Security Update Fixes Multiple Vulnerabilities
  • SECTRACK ID: 1019562: Ruby Directory Traversal Flaw in WEBrick Library Lets Remote Users View Files on the Target System.
  • US-CERT VU#404515: Ruby WEBrick vulnerable to directory traversal

Reported:

Mar 04, 2008

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.

For corrections or additions please email xforce@iss.net

Return to the main page