FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

rubygem-rails -- multiple vulnerabilities

Affected packages
rubygem-rails < 3.2.11
rubygem-actionpack < 3.2.11
rubygem-activerecord < 3.2.11
rubygem-activesupport < 3.2.11

Details

VuXML ID ca5d3272-59e3-11e2-853b-00262d5ed8ee
Discovery 2013-01-08
Entry 2013-01-08

Ruby on Rails team reports:

Two high-risk vulnerabilities have been discovered:

(CVE-2013-0155) There is a vulnerability when Active Record is used in conjunction with JSON parameter parsing.

Due to the way Active Record interprets parameters in combination with the way that JSON parameters are parsed, it is possible for an attacker to issue unexpected database queries with "IS NULL" or empty "WHERE" clauses. This issue does not let an attacker insert arbitrary values into an SQL query, however they can cause the query to check for NULL or eliminate a WHERE clause when most users would not expect it.

(CVE-2013-0156) There are multiple weaknesses in the parameter parsing code for Ruby on Rails which allows attackers to bypass authentication systems, inject arbitrary SQL, inject and execute arbitrary code, or perform a DoS attack on a Rails application.

The parameter parsing code of Ruby on Rails allows applications to automatically cast values from strings to certain data types. Unfortunately the type casting code supported certain conversions which were not suitable for performing on user-provided data including creating Symbols and parsing YAML. These unsuitable conversions can be used by an attacker to compromise a Rails application.

References

CVE Name CVE-2013-0155
CVE Name CVE-2013-0156
URL http://weblog.rubyonrails.org/2013/1/8/Rails-3-2-11-3-1-10-3-0-19-and-2-3-15-have-been-released/
URL https://groups.google.com/forum/?fromgroups#!topic/rubyonrails-security/61bkgvnSGTQ
URL https://groups.google.com/forum/?fromgroups#!topic/rubyonrails-security/t1WFuuQyavI