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 on Rails Multiple Vulnerabilities Advisory Available in Danish  Advisory Available in German 

Secunia Advisory: SA25699  
Release Date: 2007-06-15
Last Update: 2007-11-15

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

Software:Ruby on Rails 1.x

CVE reference:CVE-2007-3227 (Secunia mirror)
CVE-2007-5379 (Secunia mirror)
CVE-2007-5380 (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 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



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.

2 Related Secunia Security Advisories

1. Ruby on Rails Session Fixation Security Issue
2. Ruby on Rails Ruby Code Execution 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.
OpenBSD BIND Query Port DNS Cache Poisoning
2.
Debian update for clamav
3.
Drupal Session Fixation Vulnerability
4.
Apple Safari Cross-Domain Cookie Injection Vulnerability
5.
Linux Kernel LDT Buffer Size Handling Vulnerability
6.
Microsoft Word Unspecified Code Execution Vulnerability
7.
Debian update for xulrunner
8.
Red Hat update for thunderbird
9.
Red Hat update for kernel
10.
Geeklog Forum Plugin Search Cross-Site Scripting Vulnerability





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