Secunia - Stay Secure
Gartner
Home Corporate Website Jobs Updated Mailing Lists RSS Blog  Online Shop Advertise
Software Inspectors
  Scan Online
  Personal (PSI)
  Network (NSI 2.0)

Solutions For
  Security Professionals
  Security Vendors

Free Solutions For
  Open Communities
  Journalists & Media

Secunia Advisories
  Search
  Historic Advisories
  Listed By Product
  Listed By Vendor
  Statistics / Graphs
  Secunia Research
  Report Vulnerability
  About Advisories

Virus Information
  Chronological List
  Last 10 Virus Alerts
  About Virus Information

Secunia Customers
  Customer Area


Ruby Multiple Vulnerabilities

Secunia Advisory: SA29794  
Release Date: 2008-04-16
Last Update: 2008-06-23

Critical:
Highly critical
Impact: Exposure of system information
Exposure of sensitive information
DoS
System access
Where: From remote
Solution Status: Vendor Patch

Software:Ruby 1.8.x

CVE reference:CVE-2008-1891 (Secunia mirror)
CVE-2008-2662 (Secunia mirror)
CVE-2008-2663 (Secunia mirror)
CVE-2008-2664 (Secunia mirror)
CVE-2008-2725 (Secunia mirror)
CVE-2008-2726 (Secunia mirror)

Want to know the next time vulnerabilities are fixed in this product?
- Companies can be alerted via email and SMS!


Description:
Some vulnerabilities have been reported in Ruby, which can be exploited by malicious people to disclose sensitive information, cause a DoS (Denial of Service), or potentially compromise a vulnerable system.

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 disclose the content of files via a URL with certain characters appended (e.g. "+", "%2b", ".", "%2e", and "%20").

This is related to:
SA29232

Successful exploitation requires that a certain file system is used, e.g. NTFS or FAT32.

2) Multiple integer overflow errors exist within the "ary_new()", "rb_ary_initialize()", "rb_ary_store()", "rb_ary_times()", and "rb_ary_splice()" functions in array.c. These can potentially be exploited to cause buffer overflows via overly large arguments passed to the affected functions.

3) An error when allocating memory via an improper call to "alloca()" in "rb_str_buf_append()" can be exploited to corrupt memory.

Successful exploitation of the vulnerabilities may allow execution of arbitrary code.

The vulnerabilities are reported in the following versions:
* 1.8.4 and prior
* 1.8.5-p230 and prior
* 1.8.6-p229 and prior
* 1.8.7-p21 and prior

Do you have this product installed on your home computer? Scan using the free Personal Software Inspector. Check if a vulnerable version is installed on computers in your corporate network, scan using the Network Software Inspector.

Solution:
Update to a fixed version.

Ruby 1.8.5:
Update to 1.8.5-p231.
ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.5-p231.tar.gz
md5sum: e900cf225d55414bffe878f00a85807c

Ruby 1.8.6:
Update to 1.8.6-p230.
ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p230.tar.gz
md5sum: 5e8247e39be2dc3c1a755579c340857f

Ruby 1.8.7:
Update to 1.8.7-p22.
ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p22.tar.gz
md5sum: fc3ede83a98f48d8cb6de2145f680ef2

Provided and/or discovered by:
1) Luigi Auriemma
2, 3) The vendor credits Drew Yao of Apple Product Security.

Changelog:
2008-04-22: Added CVE reference.
2008-06-23: Added vulnerabilities #2 and #3 to the advisory. Increased criticality. Updated the "Solution" and "Original Advisory" sections.

Original Advisory:
1) http://aluigi.altervista.org/adv/webrickcgi-adv.txt
2, 3) http://www.ruby-lang.org/en/news/2008...trary-code-execution-vulnerabilities/

Other References:
SA29232:
http://secunia.com/advisories/29232/



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.

8 Related Secunia Security Advisories

1. Ruby "rb_ary_fill()" Denial of Service Vulnerability
2. Ruby WEBrick Information Disclosure Vulnerabilities
3. Ruby Modules Common Name Verification Security Issues
4. Ruby Safe Level Security Bypass Vulnerabilities
5. Ruby Safe-Level Security Bypass and Server Classes Denial of Service
6. Ruby XMLRPC.iPIMethods Arbitrary Command Execution
7. Ruby "cgi.rb" Denial of Service Vulnerability
8. Ruby CGI Session Management Insecure File Creation Vulnerability


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.








Secunia PSI
Scan | Patch | Track
Free Download

Secunia Poll

Do you think it's important to read Setup/User Guides for applications for use within your network?


See Results   


Most Popular Advisories

1.
Linux Kernel LDT Buffer Size Handling Vulnerability
2.
Drupal Session Fixation Vulnerability
3.
OpenBSD BIND Query Port DNS Cache Poisoning
4.
Red Hat update for kernel
5.
Ubuntu update for php
6.
Debian update for xulrunner
7.
IPCop update for perl
8.
Debian update for cupsys
9.
Red Hat update for thunderbird
10.
Apple Safari Cross-Domain Cookie Injection Vulnerability





Vulnerability Management - Terms & Conditions - Copyright 2002-2008 Secunia - Compliance - Contact Secunia