Ruby on Rails find_by_* Methods Authlogic SQL Injection Bypass

Metadata

high
7.5
activerecord
CVE-2012-6496
groups.google.com
2012-12-22
2017-06-16 19:01
CVE-2012-6496 ruby-activerecord-2.3
CVE-2012-6496 rails
CVE-2012-6496 ruby-activerecord-3.2
CVE-2012-6496
2017-04-01 19:10
2017-01-05 20:15

Description

Due to the way dynamic finders in Active Record extract options from method
parameters, a method parameter can mistakenly be used as a scope. Carefully
crafted requests can use the scope to inject arbitrary SQL.

Am I vulnerable?

The constraints below list the versions that this vulnerability is patched in, and versions that are unaffected. If a patch is ready but unrealeased, then it is pending.

Or, you can just let us figure it out for you! Appcanary continously monitor your installed packages, and tell you if any of them are vulnerable.

Sign up for monitoring

Affected package information

Package Patched in Unaffected in
activerecord ~> 3.0.18,~> 3.1.9,>= 3.2.10 None