aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-10-24 10:23:43 +0100
committerLouise Crow <louise.crow@gmail.com>2013-10-24 10:23:43 +0100
commitd450371502bcd55776e51416afea8741ca66e8b3 (patch)
treecfc4397112ccfcc62ad7d856b6dc15536dc75b52 /lib
parentdd229afcec3ed124603e1875636135972434b7e7 (diff)
Monkey patch actionmailer for CVE-2013-43890.14.0.3hotfix/0.14.0.3
http://seclists.org/oss-sec/2013/q4/118
Diffstat (limited to 'lib')
-rw-r--r--lib/actionmailer_patches.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/actionmailer_patches.rb b/lib/actionmailer_patches.rb
new file mode 100644
index 000000000..600d3c8cc
--- /dev/null
+++ b/lib/actionmailer_patches.rb
@@ -0,0 +1,15 @@
+# Monkey patch for CVE-2013-4389
+# derived from http://seclists.org/oss-sec/2013/q4/118 to fix
+# a possible DoS vulnerability in the log subscriber component of
+# Action Mailer.
+
+require 'action_mailer'
+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