SkipNavigation
US-CERT
American Flag
  Vulnerability
Notes
Database

Search Vulnerability Notes

Vulnerability Notes Help Information


 
 View Notes By
  Name

ID Number

CVE Name

Date Public

Date Published

Date Updated

Severity Metric



 Other Documents
  Technical Alerts

Technical Bulletins

Alerts

Security Tips

Vulnerability Note VU#404515

Ruby WEBrick vulnerable to directory traversal

Overview

Ruby WEBrick is vulnerable to a directory traversal on systems that support backslash (\) path separators. This vulnerability may allow an attacker to access arbitrary files outside of the web server root directory.

I. Description

WEBrick is a Ruby library program to build HTTP servers. WEBrick contains a directory traversal vulnerability in systems that accept backslash (\) as a path separator. A remote attacker may be able to exploit this vulnerability by using encoded backslash sequences (..%5c). For more information please see "File access vulnerability of WEBrick."

II. Impact

A remote attacker could gain access to arbitrary files outside of the web server root directory.

III. Solution

Apply an Update

Ruby has released version 1.8.5-p115 and 1.8.6-p114 for the 1.8 series. For the 1.9 series, apply the patch referenced in "File access vulnerability of WEBrick."

Systems Affected

VendorStatusDate NotifiedDate Updated
RubyVulnerable4-Apr-2008

References


http://seclists.org/bugtraq/2008/Mar/0056.html
http://secunia.com/advisories/29232/
http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/
http://www.securiteam.com/securitynews/5TP0F1PNQK.html

Credit

Thanks to Alexandr Polyakov for reporting this vulnerability.

This document was written by John Hollenberger.

Other Information

Date Public:2008-03-06
Date First Published:2008-04-14
Date Last Updated:2008-04-14
CERT Advisory: 
CVE-ID(s):CVE-2008-1145
NVD-ID(s):CVE-2008-1145
US-CERT Technical Alerts: 
Metric:12.83
Document Revision:9

If you have feedback, comments, or additional information about this vulnerability, please send us email.
 

 
Page Corner Image
Produced 2008 by US-CERT, a government organization
Disclaimers and copyright information
Get Adobe Reader Get Adobe Reader