Ruby on Rails up to 3.0.3 SQL ActiveRecord .where sql injection
CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
---|---|---|
8.4 | $0-$5k | 0.00 |
A vulnerability was found in Ruby on Rails up to 3.0.3 (Programming Language Software). It has been classified as critical. This affects the function ActiveRecord
of the component SQL. The manipulation of the argument .where
with an unknown input leads to a sql injection vulnerability. CWE is classifying the issue as CWE-89. The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:
The Active Record component in Ruby on Rails 3.0.x before 3.0.13, 3.1.x before 3.1.5, and 3.2.x before 3.2.4 does not properly implement the passing of request data to a where method in an ActiveRecord class, which allows remote attackers to conduct certain SQL injection attacks via nested query parameters that leverage unintended recursion, a related issue to CVE-2012-2695.
The weakness was shared 05/31/2012 by Ben Murphy as not defined mailinglist post (Open Source Security Mailing List). The advisory is shared at seclists.org. This vulnerability is uniquely identified as CVE-2012-2661 since 05/14/2012. It is possible to initiate the attack remotely. A authentication is required for exploitation. Technical details are known, but no exploit is available. MITRE ATT&CK project uses the attack technique T1505 for this issue.
The vulnerability scanner Nessus provides a plugin with the ID 59804 (Fedora 17 : rubygem-activerecord-3.0.11-3.fc17 (2012-9635)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Fedora Local Security Checks and running in the context l.
Upgrading to version 3.0.13, 3.1.5 or 3.2.4 eliminates this vulnerability. Applying the patch 3-X-params_sql_injection.patch is able to eliminate this problem. The bugfix is ready for download at seclists.org. The best possible mitigation is suggested to be upgrading to the latest version. A possible mitigation has been published immediately after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at X-Force (76014) and Tenable (59804).
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB CVSS-B Score: 🔍VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 8.8VulDB Meta Temp Score: 8.4
VulDB Base Score: 8.8
VulDB Temp Score: 8.4
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
AV | AC | Au | C | I | A |
---|---|---|---|---|---|
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
---|---|---|---|---|---|
unlock | unlock | unlock | unlock | unlock | unlock |
unlock | unlock | unlock | unlock | unlock | unlock |
unlock | unlock | unlock | unlock | unlock | unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Sql injectionCWE: CWE-89 / CWE-74 / CWE-707
ATT&CK: T1505
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
0-Day | unlock | unlock | unlock | unlock |
---|---|---|---|---|
Today | unlock | unlock | unlock | unlock |
Nessus ID: 59804
Nessus Name: Fedora 17 : rubygem-activerecord-3.0.11-3.fc17 (2012-9635)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍
OpenVAS ID: 71520
OpenVAS Name: FreeBSD Ports: rubygem-activemodel
OpenVAS File: 🔍
OpenVAS Family: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Upgrade: Ruby on Rails 3.0.13/3.1.5/3.2.4
Patch: 3-X-params_sql_injection.patch
Timeline
05/14/2012 🔍05/31/2012 🔍
05/31/2012 🔍
05/31/2012 🔍
05/31/2012 🔍
05/31/2012 🔍
06/01/2012 🔍
06/05/2012 🔍
06/22/2012 🔍
07/01/2012 🔍
07/08/2012 🔍
03/25/2021 🔍
Sources
Advisory: seclists.orgResearcher: Ben Murphy
Status: Not defined
CVE: CVE-2012-2661 (🔍)
X-Force: 76014
Vulnerability Center: 35488 - Ruby on Rails 3.0.0-3.0.12, 3.1.0-3.1.4, and 3.2.0-3.2.3 Remote SQL Injection Vulnerability, Medium
SecurityFocus: 53753 - Ruby on Rails Active Record SQL Injection Vulnerability
Secunia: 49297 - Ruby on Rails Nested Query Parameters SQL Injection Vulnerability, Moderately Critical
OSVDB: 82403
Entry
Created: 06/05/2012 12:21Updated: 03/25/2021 08:47
Changes: 06/05/2012 12:21 (75), 04/14/2017 13:56 (9), 03/25/2021 08:47 (3)
Complete: 🔍
No comments yet. Languages: en.
Please log in to comment.