Secunia Logo
 
Ruby on Rails Multiple Vulnerabilities
Secunia Advisory: SA25699
Release Date: 2007-06-15
Last Update: 2007-11-15
Popularity: 9,256 views

Critical:
Less critical
Impact: Cross Site Scripting
Exposure of sensitive information
Where: From remote
Solution Status: Vendor Patch

Software:Ruby on Rails 1.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2007-3227
CVE-2007-5379
CVE-2007-5380


Description:
Some vulnerabilities have been reported in Ruby on Rails, which can be exploited by malicious people to disclose sensitive information and conduct cross-site scripting attacks.

1) Input passed to the "to_json" function is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.

2) An error in ActiveResource when processing responses using the "Hash.from_xml" function can be exploited to determine the existence of files and to read the contents of arbitrary XML files.

The vulnerabilities are reported in version 1.2.3. Other versions may also be affected.

Note: Ruby on Rails allows users to pass their session ID via a URL parameter, which may be used to conduct session fixation attacks. This functionality has been disabled in version 1.2.4 and later.

Solution:
Update to version 1.2.5.

Provided and/or discovered by:
1) BCC
2) candlerb

Changelog:
2007-10-18: Updated "Solution" section. Added link to "Original Advisory" section.
2007-10-24: Added vulnerability #2 to "Description" section and added link to "Original Advisory" section. Added CVE reference.
2007-11-15: Added CVE reference and note about potential session fixation risk.

Original Advisory:
http://weblog.rubyonrails.org/2007/10/12/rails-1-2-5-maintenance-release
http://dev.rubyonrails.org/ticket/8371
http://dev.rubyonrails.org/ticket/8453


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. Sun Java JDK / JRE Multiple Vulnerabilities // 113 views
2. Microsoft Office Communications Server SIP INVITE Denial of Service // 82 views
3. VLC Media Player Real Demuxer Integer Overflow Vulnerability // 67 views
4. Adobe Flash Player Multiple Security Issues and Vulnerabilities // 60 views
5. Lito Lite CMS "cid" SQL Injection Vulnerability // 36 views
6. Bluo CMS "id" SQL Injection Vulnerability // 33 views
7. Basic PHP CMS "id" SQL Injection Vulnerability // 29 views
8. RakhiSoftware Shopping Cart Multiple Vulnerabilities // 28 views
9. Mozilla Firefox 3 Multiple Vulnerabilities // 28 views
10. Minimal Ablog Multiple Vulnerabilities // 27 views