Ruby on Rails up to 3.0.17/3.1.8/3.2.9 ActiveRecord find_by_* sql injection

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.0$0-$5k0.00

Summaryinfo

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.

Detailsinfo

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.

Productinfo

Type

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.3
VulDB Meta Temp Score: 6.0

VulDB Base Score: 6.3
VulDB Temp Score: 6.0
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Sql injection
CWE: 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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

OpenVAS ID: 850397
OpenVAS Name: SuSE Update for ruby openSUSE-SU-2013:0278-1 (ruby)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

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

Timelineinfo

10/24/2012 🔍
12/21/2012 +58 days 🔍
12/21/2012 +0 days 🔍
12/24/2012 +3 days 🔍
12/26/2012 +2 days 🔍
01/02/2013 +7 days 🔍
12/28/2024 +4378 days 🔍

Sourcesinfo

Advisory: phenoelit.org
Researcher: 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: 🔍

Entryinfo

Created: 12/24/2012 21:57
Updated: 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.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!