Secunia Logo
Netsikker nu! 2008
 
Ruby WEBrick Information Disclosure Vulnerabilities
Secunia Advisory: SA29232
Release Date: 2008-03-06
Last Update: 2008-04-15
Popularity: 3,155 views

Critical:
Moderately critical
Impact: Exposure of system information
Exposure of sensitive information
Where: From remote
Solution Status: Vendor Patch

Software:Ruby 1.8.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2008-1145


Description:
Some vulnerabilities have been reported in Ruby, which can be exploited by malicious people to disclose sensitive information.

1) Input passed via the URL to applications using "WEBrick::HTTPServlet::FileHandler" or "WEBrick::HTTPServer.new" with the ":DocumentRoot" option is not properly sanitised before being used. This can be exploited to display arbitrary files via directory traversal attacks of the form "..%5c..%5c".

Successful exploitation requires that the application is running on an operating system accepting the backslash character as a path separator (e.g. Windows).

2) The vulnerability is caused due to an error within the "WEBrick::HTTPServlet::FileHandler" class, and within the "WEBrick::HTTPServer.new" method when handling the ":NondisclosureName" option. This can be exploited to disclose the content of arbitrary files with a filename matching the pattern specified in the ":NondisclosureName" option.

Successful exploitation requires that the application is running on an operating system using a case insensitive filesystem (e.g. Windows or Mac OS X).

The vulnerabilities are reported in versions prior to 1.8.4, 1.8.5 versions prior to 1.8.5-p115, 1.8.6 versions prior to 1.8.6-p114, and 1.9 versions prior to and including 1.9.0-1.

Solution:
Update to 1.8.5-p115 or 1.8.6-p114, or apply the vendor patch for version 1.9.0-1.
ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.0-1-webrick-vulnerability-fix.diff

Provided and/or discovered by:
The vendor credits Digital Security Research.

Changelog:
2008-03-11: Added CVE reference.
2008-04-15: Added link to US-CERT.

Original Advisory:
http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/

Other References:
US-CERT VU#404515:
http://www.kb.cert.org/vuls/id/404515


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Trend Micro ServerProtect Multiple Buffer Overflow Vulnerabilities // 45 views
2. Sun Java System Web Proxy Server FTP Subsystem Buffer Overflow // 37 views
3. Apple Mac OS X Security Update Fixes Multiple Vulnerabilities // 30 views
4. FUJITSU Interstage Products Apache Tomcat Security Bypass // 30 views
5. CA ARCserve Backup Multiple Vulnerabilities // 27 views
6. DFF PHP Framework API "DFF_config[dir_include]" File Inclusion Vulnerabilities // 25 views
7. Red Hat update for cups // 25 views
8. CUPS Multiple Vulnerabilities // 24 views
9. Gentoo Portage Insecure Python Module Search Path Security Issue // 24 views
10. Built2go Real Estate Listings "event_id" SQL Injection // 24 views