SQL Injection in Rubyonrails Rails
CVE-2012-6497
The Authlogic gem for Ruby on Rails, when used with certain versions before 3.2.10, makes potentially unsafe find_by_id method calls, which might allow remote attackers to conduct CVE-2012-6496 SQL injection attacks via a crafted parameter in environments that have a known secret_token value, as demonstrated by a value contained in secret_token.rb in an open-source product.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v2 metric
CVSS v2 base score 5.0 (Medium). Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.027, 86.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (Live-Hack-CVE/CVE-2012-5664). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-h… (Exploit)
- [oss-security] 20130103 Re: SQL Injection Vulnerability in Ruby on Rails (CVE-2012-5664) (mailing-list, Mailing List, Third Party Advisory)
- phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html (Exploit, Broken Link)
- www.securityfocus.com/bid/57084 (Third Party Advisory, VDB Entry, vdb-entry, Broken Link)