Secunia Logo
 
Ruby Multiple Vulnerabilities
Secunia Advisory: SA29794
Release Date: 2008-04-16
Last Update: 2008-06-23
Popularity: 4,090 views

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

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2008-1891
CVE-2008-2662
CVE-2008-2663
CVE-2008-2664
CVE-2008-2725
CVE-2008-2726


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

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/


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. IBM AIX update for sendmail // 67 views
2. Adobe Flash Player Multiple Security Issues and Vulnerabilities // 37 views
3. Apple iPhone / iPod touch Multiple Vulnerabilities // 31 views
4. Sun Java JDK / JRE Multiple Vulnerabilities // 30 views
5. Checkpoint VPN-1 Information Disclosure Vulnerability // 26 views
6. Mozilla Firefox 3 Multiple Vulnerabilities // 25 views
7. IBM Workplace Web Content Management Cross-Site Scripting Vulnerabilities // 23 views
8. BitDefender Antivirus PDF Processing Memory Corruption Vulnerability // 23 views
9. Adobe Acrobat/Reader Multiple Vulnerabilities // 22 views
10. EMC Control Center SAN Manager Multiple Vulnerabilities // 22 views