Secunia Logo
Netsikker nu! 2008
 
Ruby on Rails Multiple Vulnerabilities
Secunia Advisory: SA25699
Release Date: 2007-06-15
Last Update: 2007-11-15
Popularity: 8,680 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. Subdreamer Light Global Variables SQL Injection Vulnerability // 35 views
2. CA ARCserve Backup Multiple Vulnerabilities // 28 views
3. Apple Mac OS X Security Update Fixes Multiple Vulnerabilities // 28 views
4. CUPS Multiple Vulnerabilities // 26 views
5. Trend Micro ServerProtect Multiple Buffer Overflow Vulnerabilities // 23 views
6. Fedora update for ruby // 21 views
7. Sun Java System Web Proxy Server FTP Subsystem Buffer Overflow // 21 views
8. DFF PHP Framework API "DFF_config[dir_include]" File Inclusion Vulnerabilities // 21 views
9. FUJITSU Interstage Products Apache Tomcat Security Bypass // 21 views
10. PHP Real Estate Classifieds "id" SQL Injection // 19 views