Products & Services
Support

Product Categories


Popular Downloads


Manage Software

How to Buy

For Home

Linksys Products Store
Linksys is now part of Belkin
Products for everyone

All Ordering Options

Training & Events Partners
Guest

Vulnerability Alert

Ruby on Rails ActiveRecords Interface Remote SQL Injection Vulnerability

 
Threat Type:CWE-94: Code Injection
IntelliShield ID:26152
Version:4
First Published:2012 June 13 16:32 GMT
Last Published:2013 March 01 15:15 GMT
Port: Not available
CVE:CVE-2012-2695
BugTraq ID:53970
Urgency:Unlikely Use
Credibility:Confirmed
Severity:Mild Damage
CVSS Base:6.4 CVSS Calculator
CVSS Version 2.0
CVSS Temporal:4.7
 
Version Summary:Red Hat has released an additional security advisory and updated packages to address the Ruby on Rails ActiveRecords interface remote SQL injection vulnerability.
 
 
Description
Ruby on Rails contains a vulnerability that could allow an unauthenticated, remote attacker to conduct SQL injection attacks.

The vulnerability exists because the affected framework fails to sanitize SQL queries that are embedded in application requests. An unauthenticated, remote attacker could exploit the vulnerability by transmitting crafted requests to the system. Successful exploitation could allow the attacker to execute arbitrary SQL queries on the underlying database and could disclose sensitive information or modify the database records.

Ruby on Rails has confirmed the vulnerability and released software updates.
 
Warning Indicators
The following versions of Ruby on Rails are vulnerable:
  • Versions prior to 3.2.6
  • Versions prior to 3.1.6
  • Versions prior to 3.0.14
 
IntelliShield Analysis
To exploit this vulnerability, the attacker would need to send crafted SQL queries to the targeted system. Depending on the targeted system, the attacker would need access to trusted, internal networks. This access requirement decreases the likelihood of a successful exploit.
 
Vendor Announcements
Ruby on Rails has released a security advisory at the following link: CVE-2012-2695

Red Hat has released an official CVE statement and a security advisory for bug 831573 at the following links: CVE-2012-2695, RHSA-2012:1542, RHSA-2013-0154, and RHSA-2013:0582
 
Impact
An unauthenticated, remote attacker could exploit the vulnerability to execute arbitrary SQL queries on the underlying database. Such queries could allow the attacker to modify to the underlying application database or access sensitive information from database records.
 
Technical Information
The vulnerability is due to insufficient sanitization of user-supplied input processed by the ActiveRecords query interface. While handling queries, the WHERE method of the interface could be provided with unsanitized request parameters, which could trigger execution of the nested queries in the parameters.

An unauthenticated, remote attacker could exploit the vulnerability by transmitting application requests with a crafted params[:id] parameter. When processed, such queries could perform nested execution of queries on an arbitrary database table to disclose sensitive information or modify the database records.
 
Safeguards
Administrators are advised to apply the appropriate updates.

Administrators may consider using IP-based access control lists (ACLs) to allow only trusted systems to access the affected systems.

Administrators are advised to monitor affected systems.
 
Patches/Software
Ruby on Rails has released updated software at the following links: 3.2.6 , 3.1.6 , and 3.0.14

Red Hat has released updated software for registered subscribers at the following link: Red Hat Network. Red Hat packages can be updated on Red Hat Enterprise Linux versions 5 and later using the yum tool.
 
Alert History
 

Version 3, January 11, 2013, 8:29 AM: Red Hat has released an additional security advisory and updated packages to address the Ruby on Rails ActiveRecords interface remote SQL injection vulnerability.

Version 2, December 5, 2012, 6:50 AM: Red Hat has released a security advisory and updated packages to address the Ruby on Rails ActiveRecords interface remote SQL injection vulnerability.

Version 1, June 13, 2012, 8:32 AM: Ruby on Rails contains a vulnerability that could allow an unauthenticated, remote attacker to conduct SQL injection attacks. Updates are available.


Product Sets
 
The security vulnerability applies to the following combinations of products.

Primary Products:
Hansson, David HeinemeierRails 3.0 .0, .1, .2, .3, .4, .5, .6, .7, .8, .9, .10, .11, .12, .13 | 3.1 .0, .1, .2, .3, .4, .5 | 3.2 .0, .1, .3, .4, .5

Associated Products:
Red Hat, Inc.Red Hat CloudForms x86 Base
Red Hat, Inc.Red Hat OpenShift Enterprise 1.1.1 x86_64
Red Hat, Inc.Red Hat Subscription Asset Manager 1.0 x86 | 1.1 x86




Alerts and bulletins on the Cisco Security Intelligence Operations Portal are highlighted by analysts in the Cisco Threat Operations Center and represent a subset of the comprehensive content that is available through Cisco Security IntelliShield Alert Manager Service. This customizable threat and vulnerability alert service provides security staff with access to timely, accurate, and credible information about threats and vulnerabilities that may affect their environment.


LEGAL DISCLAIMER
The urgency and severity ratings of this alert are not tailored to individual users; users may value alerts differently based upon their network configurations and circumstances. THE ALERT, AND INFORMATION CONTAINED THEREIN, ARE PROVIDED ON AN "AS IS" BASIS AND DO NOT IMPLY ANY KIND OF GUARANTEE OR WARRANTY, INCLUDING THE WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. YOUR USE OF THE ALERT, AND INFORMATION CONTAINED THEREIN, OR MATERIALS LINKED FROM THE ALERT, IS AT YOUR OWN RISK. INFORMATION IN THIS ALERT AND ANY RELATED COMMUNICATIONS IS BASED ON OUR KNOWLEDGE AT THE TIME OF PUBLICATION AND IS SUBJECT TO CHANGE WITHOUT NOTICE. CISCO RESERVES THE RIGHT TO CHANGE OR UPDATE ALERTS AT ANY TIME.
Powered by  IntelliShield