Ruby on Rails DoS Vulnerability in authenticate_or_request_with_http_digest (CVE-2012-3424)

2624 views
Skip to first unread message

Aaron Patterson

unread,
Jul 26, 2012, 6:14:13 PM7/26/12
to oss-se...@lists.openwall.com, rubyonrail...@googlegroups.com
DoS Vulnerability in authenticate_or_request_with_http_digest

There is a DoS vulnerability in Action Pack digest authentication handling in Rails.
This vulnerability has been assigned the CVE identifier CVE-2012-3424.

Versions Affected: 3.x.
Not affected: 2.3.5 - 2.3.14
Fixed Versions: 3.0.16, 3.1.7, 3.2.7

Impact
------

All users using Digest Authentication support in Rails should upgrade
immediately. Impacted code uses any of the `with_http_digest` controller
helper methods. For example:

class MyController < ApplicationController
def index
authenticate_or_request_with_http_digest(REALM) do |uname|
# ...
end
end
end

Releases
--------
The 3.0.16, 3.1.7 & 3.2.7 releases are available at the normal locations.


Workarounds
-----------
There are no feasible workarounds for this issue.


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.

* 3-0-digest_auth_dos.patch - Patch for 3.0 series
* 3-1-digest_auth_dos.patch - Patch for 3.1 series
* 3-2-digest_auth_dos.patch - Patch for 3.2 series

Please note that only the 3.1.x and 3.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.

Credits
-------
Thanks to Charlie Somerville for reporting this issue!

--
Aaron Patterson
http://tenderlovemaking.com/
3-0-digest_auth_dos.patch
3-1-digest_auth_dos.patch
3-2-digest_auth_dos.patch
Reply all
Reply to author
Forward
0 new messages