Improper input validation in Rubyonrails Rails
CVE-2013-3221
The Active Record component in Ruby on Rails 2.3.x, 3.0.x, 3.1.x, and 3.2.x does not ensure that the declared data type of a database column is used during comparisons of input values to stored values in that column, which makes it easier for remote attackers to conduct data-type injection attacks against Ruby on Rails applications via a crafted value, as demonstrated by unintended interaction between the "typed XML" feature and a MySQL database.
Published · last modified .
CVSS v2 metric
CVSS v2 base score 6.4 (Medium). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:N. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.024, 84.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Rubyonrails Rails — versions 2.3.0, 2.3.1, 2.3.2
- Rubyonrails Ruby On Rails — versions 3.0.4
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (superfish9/pt). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- pl.reddit.com/r/netsec/comments/17yajp/mysql_madness_and_rails/
- [rubyonrails-security] 20130207 Potential Query Manipulation with Common Rails Practises (mailing-list)
- www.phenoelit.org/blog/archives/2013/02/index.html (Exploit)
- [oss-security] 20130424 CVE-2013-3221 can also relate to Microsoft SQL Server and IBM DB2 (mailing-list)
- gist.github.com/dakull/5442275
- [oss-security] 20130207 Potential Query Manipulation with Common Rails Practises (mailing-list)