Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1131240 - (CVE-2014-3514) CVE-2014-3514 rubygem-activerecord: Strong Parameter bypass with create_with
CVE-2014-3514 rubygem-activerecord: Strong Parameter bypass with create_with
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20140818,repo...
: Security
Depends On: 1133530 1133531 1133622
Blocks: 1131241
  Show dependency treegraph
 
Reported: 2014-08-18 14:45 EDT by Kurt Seifried
Modified: 2016-04-26 12:46 EDT (History)
53 users (show)

See Also:
Fixed In Version: rubygem-activerecord 4.0.9, rubygem-activerecord 4.1.5
Doc Type: Bug Fix
Doc Text:
It was discovered that Active Record's create_with method failed to properly check attributes passed to it. A remote attacker could possibly use this flaw to bypass the strong parameter protection and modify arbitrary model attributes via mass assignment if an application using Active Record called create_with with untrusted values.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-08-27 10:47:37 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
4-0-create_with.patch (4.03 KB, patch)
2014-08-18 15:12 EDT, Kurt Seifried
no flags Details | Diff
4-1-create_with.patch (4.04 KB, patch)
2014-08-18 15:12 EDT, Kurt Seifried
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2014:1102 normal SHIPPED_LIVE Important: ror40-rubygem-activerecord security update 2014-08-27 14:22:04 EDT

  None (edit)
Description Kurt Seifried 2014-08-18 14:45:17 EDT
Rafael Mendonça França reports:

There is a vulnerability in the create_with method in Active Record. This
vulnerability has been assigned the CVE identifier CVE-2014-3514.

Versions Affected:  4.0.0 and All Later Versions.
Not affected:       Versions earlier than 4.0.0
Fixed Versions:     4.0.9 4.1.5

Impact
------
The create_with functionality in Active Record was implemented incorrectly
and completely bypasses the strong parameters protection.  Applications
which pass user-controlled values to create_with could allow attackers to
set arbitrary attributes on models.

All users running an affected release should either upgrade or use one of
the workarounds immediately.

Releases
--------
The 4.0.9 and 4.1.5 releases are available at the normal locations.

Workarounds
-----------
To avoid this vulnerability you will have to either remove all calls to
create_with, or carefully audit your codebase to ensure it sanitizes the
input first.  For example you should replace code like this:

  user.blog_posts.create_with(params[:blog_post]).create

with either:

  user.blog_posts.create(params[:blog_post])

or:

  user.blog_posts.create_with(params[:blog_post].permit(:title, :body,
:etc)).create


Patches
-------
To aid users who aren't able to upgrade immediately we have provided
patches for the two supported release series.  They are in git-am format
and consist of a single changeset.

* 4-1-create_with.patch - Patch for 4.1 series
* 4-0-create_with.patch - Patch for 4.0 series

Please note that only the 4.0.x and 4.1.x series receive regular security
updates at present.  Users of earlier unsupported releases are advised to
upgrade as soon as possible as we cannot guarantee the continued
availability of security fixes for earlier releases.

Credits
-------

Thanks to Stephen Touset of Square for reporting the vulnerability to us,
and to Jeff Jarmoc of Matasano and Charlie Somerville of GitHub for helping
verify the patches and advisories.
Comment 1 Kurt Seifried 2014-08-18 15:12:01 EDT
Created attachment 928054 [details]
4-0-create_with.patch
Comment 2 Kurt Seifried 2014-08-18 15:12:25 EDT
Created attachment 928055 [details]
4-1-create_with.patch
Comment 3 Kurt Seifried 2014-08-18 19:29:51 EDT
Upgraded severity to high as this could allow authentication bypass and privilege escalation.
Comment 7 Kurt Seifried 2014-08-25 11:11:49 EDT
Created rubygem-activerecord tracking bugs for this issue:

Affects: fedora-20 [bug 1133622]
Comment 8 Martin Prpič 2014-08-26 08:19:09 EDT
IssueDescription:

It was discovered that Active Record's create_with method failed to properly check attributes passed to it. A remote attacker could possibly use this flaw to bypass the strong parameter protection and modify arbitrary model attributes via mass assignment if an application using Active Record called create_with with untrusted values.
Comment 9 errata-xmlrpc 2014-08-27 10:22:13 EDT
This issue has been addressed in following products:

  Red Hat Software Collections 1 for Red Hat Enterprise Linux 6
  Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.4 EUS
  Red Hat Software Collections 1 for Red Hat Enterprise Linux 7

Via RHSA-2014:1102 https://rhn.redhat.com/errata/RHSA-2014-1102.html
Comment 10 Fedora Update System 2014-09-26 05:01:10 EDT
rubygem-activerecord-4.0.0-5.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.