Secunia CSI7
Advisories
Research
Forums
Create Profile
Our Commitment
Database
Search
Advisories by Product
Advisories by Vendor
Terminology
Report Vulnerability
Insecure Library Loading
Highly critical

Ruby Multiple Vulnerabilities

-

Release Date:  2008-04-16    Last Update:  2008-06-23    Views:  9,390

Secunia Advisory SA29794

Where:

From remote

Impact:

Exposure of system information, Exposure of sensitive information, DoS, System access

Solution Status:

Vendor Patch

Software:

CVE Reference(s):

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.

Further details available to Secunia VIM customers

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

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

Deep Links:
Links available to Secunia VIM customers

Do you have additional information related to this advisory?

Please provide information about patches, mitigating factors, new versions, exploits, faulty patches, links, and other relevant data by posting comments to this Advisory. You can also send this information to vuln@secunia.com

Subject: Ruby Multiple Vulnerabilities

No posts yet

-

You must be logged in to post a comment.



 Products Solutions Customers Partner Resources Company
 
 Corporate
Vulnerability Intelligence Manager (VIM)
Corporate Software Inspector (CSI)
Consumer
Personal Software Inspector (PSI)
Online Software Inspector (OSI)
 Industry
Compliance
Technology
Integration
 Customers
Testimonials
 VARS
MSSP
Technology Partners
References
 Factsheets
Reports
Webinars
Events
 About us
Careers
Memberships
Newsroom


 
© 2002-2014 Secunia ApS - Rued Langgaards Vej 8, 4th floor, DK-2300 Copenhagen, Denmark - +45 7020 5144
Terms & Conditions and Copyright - Privacy - Report Vulnerability