Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <bf67ba8b-e03f-424b-92ba-c32b01ab1c08@Spark>
Date: Tue, 27 Nov 2018 16:06:36 -0500
From: Rafael Mendonça França
 <rafaelmfranca@...il.com>
To: Rubyonrails-Security 
 <rubyonrails-security@...glegroups.com>, 
 Ruby-Security-Ann 
 <ruby-security-ann@...glegroups.com>, Oss-Security 
 <oss-security@...ts.openwall.com>
Subject: [CVE-2018-16476] Broken Access Control vulnerability in Active
 Job

There is a vulnerability in Active Job. This vulnerability has been
assigned the CVE identifier CVE-2018-16476.

Versions Affected: >= 4.2.0
Not affected: < 4.2.0
Fixed Versions: 4.2.11, 5.0.7.1, 5.1.6.1, 5.2.1.1

Impact
------
Carefully crafted user input can cause Active Job to deserialize it using GlobalId
and allow an attacker to have access to information that they should not have.

Vulnerable code will look something like this:

    MyJob.perform_later(user_input)

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

Releases
--------
The FIXED releases are available at the normal locations.

Workarounds
-----------
Putting the following monkey patch in an intializer can help to mitigate the issue:

```
require 'active_job'
require 'active_job/arguments'

module ArgumentsNotDeserializingGlobalId
  def deserialize_argument(argument)
    case argument
    when String
      argument
    else
      super
    end
  end
end

ActiveJob::Arguments.singleton_class.prepend(ArgumentsNotDeserializingGlobalId)
```

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-2-activejob-direct-access.patch - Patch for 4.2 series
* 5-0-activejob-direct-access.patch - Patch for 5.0 series
* 5-1-activejob-direct-access.patch - Patch for 5.1 series
* 5-2-activejob-direct-access.patch - Patch for 5.2 series

Please note that only the 5.x and 4.2.x series are supported 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 unsupported
releases.

Rafael França

Content of type "text/html" skipped

Download attachment "4-2-activejob-direct-access.patch" of type "application/octet-stream" (1780 bytes)

Download attachment "5-0-activejob-direct-access.patch" of type "application/octet-stream" (1796 bytes)

Download attachment "5-1-activejob-direct-access.patch" of type "application/octet-stream" (1796 bytes)

Download attachment "5-2-activejob-direct-access.patch" of type "application/octet-stream" (1796 bytes)

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.