Ruby on Rails up to 3.0.17/3.1.8/3.2.9 ActiveRecord find_by_* sql injection
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.0 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as problematic, was found in Ruby on Rails up to 3.0.17/3.1.8/3.2.9. The impacted element is the function find_by_* of the component ActiveRecord. The manipulation results in sql injection.
This vulnerability is reported as CVE-2012-5664. The attack can be launched remotely. Moreover, an exploit is present. This vulnerability is historically impactful due to its background and the reception it garnered.
You should upgrade the affected component.
Details
A vulnerability, which was classified as critical, was found in Ruby on Rails up to 3.0.17/3.1.8/3.2.9 (Programming Language Software). Affected is the function find_by_* of the component ActiveRecord. The manipulation 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. CVE summarizes:
** REJECT ** DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: CVE-2012-6496, CVE-2012-6497. Reason: this candidate was intended for one issue, but the candidate was publicly used to label concerns about multiple products. Notes: All CVE users should consult CVE-2012-6496 and CVE-2012-6497 to determine which ID is appropriate. All references and descriptions in this candidate have been removed to prevent accidental usage.
The weakness was disclosed 12/21/2012 by joernchen with Phenoelit as not defined advisory (Website). The advisory is shared for download at phenoelit.org. The public release happened without coordination with the vendor. This vulnerability is traded as CVE-2012-5664 since 10/24/2012. It is possible to launch the attack remotely. A authentication is required for exploitation. Technical details and a public exploit are known. The current price for an exploit might be approx. USD $0-$5k (estimation calculated on 12/28/2024). The MITRE ATT&CK project declares the attack technique as T1505. This vulnerability has a historic impact due to its background and reception. This vulnerability may only be exploited by an attacker with access to the 'secret_token' value in the program.
A public exploit has been developed by joernchen and been published immediately after the advisory. The exploit is shared for download at phenoelit.org. It is declared as highly functional. The commercial vulnerability scanner Qualys is able to test this issue with plugin 165768 (SUSE Enterprise Linux Security Update for Ruby On Rails (SUSE-SU-2013:0486-1)).
Upgrading to version 3.0.18, 3.1.9 or 3.2.10 eliminates this vulnerability. The upgrade is hosted for download at weblog.rubyonrails.org.It is possible to mitigate the weakness by firewalling Web Server Port. The problem might be mitigated by replacing the product with PHP, ASP, JSP or CGI as an alternative. The best possible mitigation is suggested to be upgrading to the latest version. A possible mitigation has been published 2 weeks after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at X-Force (80850), SecurityFocus (BID 57084†), OSVDB (88661†) and Secunia (SA51637†). Further details are available at it.slashdot.org. The entries VDB-63315 and VDB-63314 are pretty similar. Once again VulDB remains the best source for vulnerability data.
Product
Type
Name
Version
- 3.0.0
- 3.0.1
- 3.0.2
- 3.0.3
- 3.0.4
- 3.0.5
- 3.0.6
- 3.0.7
- 3.0.8
- 3.0.9
- 3.0.10
- 3.0.11
- 3.0.12
- 3.0.13
- 3.0.14
- 3.0.15
- 3.0.16
- 3.0.17
- 3.1.0
- 3.1.1
- 3.1.2
- 3.1.3
- 3.1.4
- 3.1.5
- 3.1.6
- 3.1.7
- 3.1.8
- 3.2.0
- 3.2.1
- 3.2.2
- 3.2.3
- 3.2.4
- 3.2.5
- 3.2.6
- 3.2.7
- 3.2.8
- 3.2.9
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.3VulDB Meta Temp Score: 6.0
VulDB Base Score: 6.3
VulDB Temp Score: 6.0
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: 🔍
Exploiting
Class: Sql injectionCWE: CWE-89 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Highly functional
Author: joernchen
Download: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
OpenVAS ID: 850397
OpenVAS Name: SuSE Update for ruby openSUSE-SU-2013:0278-1 (ruby)
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Exploit Delay Time: 🔍
Upgrade: Ruby on Rails 3.0.18/3.1.9/3.2.10
Firewalling: 🔍
Alternative: PHP/ASP/JSP/CGI
Timeline
10/24/2012 🔍12/21/2012 🔍
12/21/2012 🔍
12/24/2012 🔍
12/26/2012 🔍
01/02/2013 🔍
12/28/2024 🔍
Sources
Advisory: phenoelit.orgResearcher: joernchen
Organization: Phenoelit
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2012-5664 (🔍)
GCVE (CVE): GCVE-0-2012-5664
GCVE (VulDB): GCVE-100-7212
X-Force: 80850 - Ruby on Rails method SQL injection, Medium Risk
SecurityFocus: 57084 - Ruby on Rails Multiple SQL Injection Vulnerabilities
Secunia: 51637 - Debian update for rails, Moderately Critical
OSVDB: 88661 - Ruby on Rails find_by_* Methods Authlogic SQL Injection Bypass
scip Labs: https://www.scip.ch/en/?labs.20161013
Misc.: 🔍
See also: 🔍
Entry
Created: 12/24/2012 21:57Updated: 12/28/2024 22:13
Changes: 12/24/2012 21:57 (64), 10/02/2013 13:36 (17), 12/28/2024 22:13 (23)
Complete: 🔍
Cache ID: 216:6BB:103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.