Bug 846239 (CVE-2013-4389) - VUL-0: CVE-2013-4389: rubygem-actionmailer-3_1: possible DoS vulnerability in the log subscriber component
Summary: VUL-0: CVE-2013-4389: rubygem-actionmailer-3_1: possible DoS vulnerability in...
Status: RESOLVED FIXED
Alias: CVE-2013-4389
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Deadline: 2014-02-25
Assignee: Security Team bot
QA Contact: Security Team bot
URL:
Whiteboard: maint:running:55488:moderate maint:ru...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-16 14:35 UTC by Marcus Meissner
Modified: 2014-05-21 08:14 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
3-1-log-subscriber.patch (4.16 KB, patch)
2013-10-16 14:37 UTC, Marcus Meissner
Details | Diff
3-2-log-subscriber.patch (3.91 KB, patch)
2013-10-16 14:40 UTC, Marcus Meissner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Meissner 2013-10-16 14:35:52 UTC
EMBARGOED, October 16th around 10 am PDT. (today)

Possible DoS Vulnerability in Action Mailer

There is a possible DoS vulnerability in the log subscriber component of
Action Mailer. This vulnerability has been assigned the CVE identifier CVE-2013-4389.

Versions Affected:  3.x.x
Not affected:       4.0.x, 2.3.x
Fixed Versions:     3.2.15

Impact 
------ 
A carefully crafted email address in conjunction with the Action Mailer logger
format string could possibly lead to a denial of service attack.

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

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

Workarounds 
----------- 
If you can't upgrade or apply patch to your system, you can work around the
issue by using the following monkey patch after requiring Action Mailer:

```ruby
module ActionMailer
  class LogSubscriber < ActiveSupport::LogSubscriber
    def deliver(event)
      recipients = Array.wrap(event.payload[:to]).join(', ')
      info("\nSent mail to #{recipients} (#{event.duration.round(1)}ms)")
      debug(event.payload[:mail])
    end
  end
end
```

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

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

Please note that only the 4.0.x, 3.2.x, and 2.3.x series are supported at present.  Users of earlier
 unsupported releases are advised to upgrade as soon as possible as we cannot guarantee the continue
d availability of security fixes for unsupported releases.

Credits 
------- 

Thanks to Aaron Neyer for reporting this vulnerability!
Comment 1 Marcus Meissner 2013-10-16 14:37:19 UTC
Created attachment 563727 [details]
3-1-log-subscriber.patch

patch for 3.1 attached (they also 3.0 and 3.2 patches)...
Comment 2 Marcus Meissner 2013-10-16 14:40:17 UTC
Created attachment 563729 [details]
3-2-log-subscriber.patch

3.2 patch
Comment 3 Marcus Meissner 2013-10-17 06:26:58 UTC
public now
Comment 4 Swamp Workflow Management 2013-10-17 22:00:10 UTC
bugbot adjusting priority
Comment 5 Jordi Massaguer 2013-12-11 14:37:01 UTC
The patch patches actionpack which creates a conflict with 

Bug 853625 - VUL-0: CVE-2013-4491: rubygem-actionpack: i18n missing translation
XSS
Bug 853627 - VUL-0: CVE-2013-6417: rubygem-actionpack: unsafe query generation
risk (incomplete fix for CVE-2013-0155)
Bug 853632 - VUL-0: CVE-2013-6415: rubygem-actionpack: number_to_currency XSS
Bug 853633 - VUL-0: CVE-2013-6414: rubygem-actionpack: Action View DoS

How should we handle it? Should I add the patch to the rubygem-actionpack that I've submited for the previous bugs, or should I wait on rubygem-actionpack to be released?
Comment 6 Sebastian Krahmer 2013-12-11 14:48:05 UTC
I just accepted various actionpack submits
so I guess it would be best to wait for them to finish, then 
resubmit any other changes
Comment 9 Bernhard Wiedemann 2013-12-12 18:00:11 UTC
This is an autogenerated message for OBS integration:
This bug (846239) was mentioned in
https://build.opensuse.org/request/show/210703 12.2 / rubygem-activesupport-3_2
https://build.opensuse.org/request/show/210704 12.3 / rubygem-activesupport-3_2
https://build.opensuse.org/request/show/210705 13.1 / rubygem-activesupport-3_2
https://build.opensuse.org/request/show/210707 12.2 / rubygem-actionmailer-3_2
https://build.opensuse.org/request/show/210708 12.3 / rubygem-actionmailer-3_2
https://build.opensuse.org/request/show/210709 13.1 / rubygem-actionmailer-3_2
https://build.opensuse.org/request/show/210711 12.2 / rubygem-actionpack-3_2
https://build.opensuse.org/request/show/210713 12.3 / rubygem-actionpack-3_2
https://build.opensuse.org/request/show/210714 13.1 / rubygem-actionpack-3_2
Comment 11 Jordi Massaguer 2013-12-12 18:07:32 UTC
@sebastian: When you say "wait for them to finish" you mean that I should wait until I get the email stating that the package got added to the distribution/product?
Comment 12 Marcus Meissner 2013-12-13 20:40:51 UTC
You can already supercede the submitted ones and include this fix if you want.
Comment 14 Swamp Workflow Management 2013-12-16 11:37:21 UTC
The SWAMPID for this issue is 55488.
This issue was rated as moderate.
Please submit fixed packages until 2013-12-30.
When done, please reassign the bug to security-team@suse.de.
Patchinfo will be handled by security team.
Comment 16 Swamp Workflow Management 2013-12-16 14:48:03 UTC
The SWAMPID for this issue is 55506.
This issue was rated as moderate.
Please submit fixed packages until 2013-12-30.
When done, please reassign the bug to security-team@suse.de.
Patchinfo will be handled by security team.
Comment 17 Ruediger Oertel 2013-12-17 00:25:03 UTC
patchinfos for SWAMPID: 55506 do reference this bug which I think is
a mistake, it should be bnc#853632
Comment 20 Marcus Meissner 2013-12-17 10:29:19 UTC
i moved / modified them
Comment 21 Swamp Workflow Management 2013-12-23 14:05:04 UTC
openSUSE-SU-2013:1928-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 846239
CVE References: CVE-2013-4389
Sources used:
openSUSE 13.1 (src):    rubygem-actionmailer-3_2-3.2.13-2.4.1
openSUSE 12.3 (src):    rubygem-actionmailer-3_2-3.2.12-1.4.1
openSUSE 12.2 (src):    rubygem-actionmailer-3_2-3.2.12-2.17.1
Comment 22 Swamp Workflow Management 2013-12-23 14:05:51 UTC
openSUSE-SU-2013:1931-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 846239
CVE References: CVE-2013-4389
Sources used:
openSUSE 13.1 (src):    rubygem-activesupport-3_2-3.2.13-3.4.1
openSUSE 12.3 (src):    rubygem-activesupport-3_2-3.2.12-1.4.1
openSUSE 12.2 (src):    rubygem-activesupport-3_2-3.2.12-2.17.1
Comment 23 Swamp Workflow Management 2014-01-03 21:05:20 UTC
openSUSE-SU-2014:0009-1: An update that fixes 5 vulnerabilities is now available.

Category: security (moderate)
Bug References: 846239,853625,853627,853632,853633
CVE References: CVE-2013-4389,CVE-2013-4491,CVE-2013-6414,CVE-2013-6415,CVE-2013-6417
Sources used:
openSUSE 13.1 (src):    rubygem-actionpack-3_2-3.2.13-2.9.1
openSUSE 12.3 (src):    rubygem-actionpack-3_2-3.2.12-1.13.1
openSUSE 12.2 (src):    rubygem-actionpack-3_2-3.2.12-3.26.2
Comment 24 Swamp Workflow Management 2014-01-27 10:47:27 UTC
Update released for: rubygem-activesupport-3_2, rubygem-activesupport-3_2-doc
Products:
SLE-SDK 11-SP3 (i386, ia64, ppc64, s390x, x86_64)
Comment 25 Swamp Workflow Management 2014-01-27 11:03:56 UTC
Update released for: rubygem-actionmailer-3_1, rubygem-actionmailer-3_1-doc
Products:
SLE-SDK 11-SP3 (i386, ia64, ppc64, s390x, x86_64)
Comment 26 Swamp Workflow Management 2014-01-27 11:29:12 UTC
Update released for: rubygem-activesupport-3_1, rubygem-activesupport-3_1-doc
Products:
SLE-SDK 11-SP3 (i386, ia64, ppc64, s390x, x86_64)
Comment 27 Swamp Workflow Management 2014-01-27 11:59:11 UTC
Update released for: rubygem-actionmailer-3_2, rubygem-actionmailer-3_2-doc
Products:
SLE-SLMS 1.3 (x86_64)
SLE-STUDIOONSITE 1.3 (x86_64)
SLE-WEBYAST 1.3 (i386, ia64, ppc64, s390x, x86_64)
Comment 28 Swamp Workflow Management 2014-01-27 12:04:28 UTC
Update released for: rubygem-activesupport-3_2, rubygem-activesupport-3_2-doc
Products:
SLE-SDK 11-SP2 (i386, ia64, ppc64, s390x, x86_64)
SLE-SLMS 1.3 (x86_64)
SLE-STUDIOONSITE 1.3 (x86_64)
SLE-WEBYAST 1.3 (i386, ia64, ppc64, s390x, x86_64)
Comment 29 Swamp Workflow Management 2014-01-27 12:06:34 UTC
Update released for: rubygem-activemodel-3_1, rubygem-activemodel-3_1-doc
Products:
SLE-SDK 11-SP3 (i386, ia64, ppc64, s390x, x86_64)
Comment 30 Swamp Workflow Management 2014-01-27 16:04:35 UTC
SUSE-SU-2014:0137-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 846239
CVE References: CVE-2013-4389
Sources used:
WebYaST 1.3 (src):    rubygem-actionmailer-3_2-3.2.12-0.7.3, rubygem-activesupport-3_2-3.2.12-0.7.1
SUSE Studio Onsite 1.3 (src):    rubygem-actionmailer-3_2-3.2.12-0.7.3, rubygem-activesupport-3_2-3.2.12-0.7.1
SUSE Linux Enterprise Software Development Kit 11 SP3 (src):    rubygem-actionmailer-3_1-3.1.4-0.7.3, rubygem-activemodel-3_1-3.1.4-0.7.1, rubygem-activesupport-3_1-3.1.4-0.7.1, rubygem-activesupport-3_2-3.2.12-0.7.1
SUSE Linux Enterprise Software Development Kit 11 SP2 (src):    rubygem-activesupport-3_2-3.2.12-0.7.1
SUSE Lifecycle Management Server 1.3 (src):    rubygem-actionmailer-3_2-3.2.12-0.7.3, rubygem-activesupport-3_2-3.2.12-0.7.1
Comment 31 Swamp Workflow Management 2014-01-28 14:49:44 UTC
Update released for: rubygem-actionpack-3_2, rubygem-actionpack-3_2-doc
Products:
SLE-SLMS 1.3 (x86_64)
SLE-STUDIOONSITE 1.3 (x86_64)
SLE-WEBYAST 1.3 (i386, ia64, ppc64, s390x, x86_64)
Comment 32 Sebastian Krahmer 2014-01-28 15:25:22 UTC
released
Comment 33 Swamp Workflow Management 2014-01-28 18:04:55 UTC
SUSE-SU-2014:0152-1: An update that solves four vulnerabilities and has one errata is now available.

Category: security (moderate)
Bug References: 846239,853625,853627,853632,853633
CVE References: CVE-2013-4491,CVE-2013-6414,CVE-2013-6415,CVE-2013-6417
Sources used:
WebYaST 1.3 (src):    rubygem-actionpack-3_2-3.2.12-0.11.1
SUSE Studio Onsite 1.3 (src):    rubygem-actionpack-3_2-3.2.12-0.11.1
SUSE Lifecycle Management Server 1.3 (src):    rubygem-actionpack-3_2-3.2.12-0.11.1
Comment 34 Ruediger Oertel 2014-01-30 10:12:54 UTC
there is a patchinfo open for rubygem-actionpack-3_1 on sle11-sp2,
but the package is only on SLE-11-SP3-SDK which was already handled in
december in patchinfo 9cce5fd44e639cd6e24b03d00a84eee3 (Subswampid 55517)

can this patchinfo (swamp 55506,subswampid 56030) be canceled ?
Comment 36 Swamp Workflow Management 2014-02-11 10:21:54 UTC
The SWAMPID for this issue is 56198.
This issue was rated as moderate.
Please submit fixed packages until 2014-02-25.
When done, please reassign the bug to security-team@suse.de.
Patchinfo will be handled by security team.
Comment 39 Bernhard Wiedemann 2014-04-14 19:00:17 UTC
This is an autogenerated message for OBS integration:
This bug (846239) was mentioned in
https://build.opensuse.org/request/show/230058 Factory / rubygem-actionpack-3_2
https://build.opensuse.org/request/show/230059 Factory / rubygem-actionmailer-3_2
https://build.opensuse.org/request/show/230063 Factory / rubygem-activesupport-3_2
Comment 40 Swamp Workflow Management 2014-05-20 21:54:49 UTC
Update released for: hawk, hawk-debuginfo, hawk-debugsource, hawk-templates
Products:
SLE-DEBUGINFO 11-SP3 (i386, ia64, ppc64, s390x, x86_64)
SLE-HAE 11-SP3 (i386, ia64, ppc64, s390x, x86_64)
Comment 41 Swamp Workflow Management 2014-05-21 01:04:24 UTC
SUSE-SU-2014:0686-1: An update that solves 5 vulnerabilities and has one errata is now available.

Category: security (moderate)
Bug References: 846239,853625,853627,853632,853633,854060
CVE References: CVE-2013-4389,CVE-2013-4491,CVE-2013-6414,CVE-2013-6415,CVE-2013-6417
Sources used:
SUSE Linux Enterprise High Availability Extension 11 SP3 (src):    hawk-0.6.1-0.17.1