SQL injection vulnerability in the Active Record component in Ruby on Rails before 3.0.18, 3.1.x before 3.1.9, and 3.2.x before 3.2.10 allows remote attackers to execute arbitrary SQL commands via a crafted request that leverages incorrect behavior of dynamic finders in applications that can use unexpected data types in certain find_by_ method calls.
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. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Link | Tags |
---|---|
https://bugzilla.redhat.com/show_bug.cgi?id=889649 | patch exploit |
http://rhn.redhat.com/errata/RHSA-2013-0155.html | vendor advisory |
http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/ | |
http://rhn.redhat.com/errata/RHSA-2013-0220.html | vendor advisory |
http://security.gentoo.org/glsa/glsa-201401-22.xml | vendor advisory |
http://rhn.redhat.com/errata/RHSA-2013-0154.html | vendor advisory |
https://groups.google.com/group/rubyonrails-security/msg/23daa048baf28b64?dmode=source&output=gplain | mailing list |
http://www.securityfocus.com/bid/57084 | vdb entry |
http://rhn.redhat.com/errata/RHSA-2013-0544.html | vendor advisory |