[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#684522: marked as done (unblock: ruby-activesupport-3.2/3.2.6-4)



Your message dated Fri, 10 Aug 2012 21:05:13 +0100
with message-id <1344629113.2978.0.camel@jacala.jungle.funky-badger.org>
and subject line Re: Bug#684522: unblock: ruby-activesupport-3.2/3.2.6-4
has caused the Debian Bug report #684522,
regarding unblock: ruby-activesupport-3.2/3.2.6-4
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
684522: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684522
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package ruby-activesupport-3.2

This version fixes one security problem (CVE-2012-3464), closing one RC
bug (#684517).

The debdiff between the version in testing and this one, which was just
uploaded to unstable, is attached.

unblock ruby-activesupport-3.2/3.2.6-4

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.utf8, LC_CTYPE=pt_BR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- 
Antonio Terceiro <terceiro@debian.org>
diff -Nru ruby-activesupport-3.2-3.2.6/debian/changelog ruby-activesupport-3.2-3.2.6/debian/changelog
--- ruby-activesupport-3.2-3.2.6/debian/changelog	2012-06-24 18:58:16.000000000 -0300
+++ ruby-activesupport-3.2-3.2.6/debian/changelog	2012-08-10 14:23:44.000000000 -0300
@@ -1,3 +1,10 @@
+ruby-activesupport-3.2 (3.2.6-4) unstable; urgency=high
+
+  * debian/patches/CVE-2012-3464.patch: fixes potential XSS vulnerability.
+    CVE-2012-3464 (Closes: #684517).
+
+ -- Antonio Terceiro <terceiro@debian.org>  Fri, 10 Aug 2012 14:10:41 -0300
+
 ruby-activesupport-3.2 (3.2.6-3) unstable; urgency=low
 
   * Bump build dependency on gem2deb to >= 0.3.0~
diff -Nru ruby-activesupport-3.2-3.2.6/debian/patches/CVE-2012-3464.patch ruby-activesupport-3.2-3.2.6/debian/patches/CVE-2012-3464.patch
--- ruby-activesupport-3.2-3.2.6/debian/patches/CVE-2012-3464.patch	1969-12-31 21:00:00.000000000 -0300
+++ ruby-activesupport-3.2-3.2.6/debian/patches/CVE-2012-3464.patch	2012-08-10 14:10:25.000000000 -0300
@@ -0,0 +1,32 @@
+Description: [PATCH] html_escape should escape single quotes
+ This patch was adapted by Antonio Terceiro <terceiro@debian.org> to
+ activesupport 3.2.6, which was the version in testing at the time.
+Author: Santiago Pastorino <santiago@wyeworks.com>
+
+---
+
+Origin: upstream
+Bug: https://github.com/rails/rails/issues/7215
+Reviewed-By: Antonio Terceiro <terceiro@debian.org>
+Last-Update: 2012-08-10
+
+--- ruby-activesupport-3.2-3.2.6.orig/lib/active_support/core_ext/string/output_safety.rb
++++ ruby-activesupport-3.2-3.2.6/lib/active_support/core_ext/string/output_safety.rb
+@@ -3,7 +3,7 @@ require 'active_support/core_ext/kernel/
+ 
+ class ERB
+   module Util
+-    HTML_ESCAPE = { '&' => '&amp;',  '>' => '&gt;',   '<' => '&lt;', '"' => '&quot;' }
++    HTML_ESCAPE = { '&' => '&amp;',  '>' => '&gt;',   '<' => '&lt;', '"' => '&quot;', "'" => '&#x27;' }
+     JSON_ESCAPE = { '&' => '\u0026', '>' => '\u003E', '<' => '\u003C' }
+ 
+     # Detect whether 1.9 can transcode with XML escaping.
+@@ -22,7 +22,7 @@ class ERB
+         if s.html_safe?
+           s
+         else
+-          s.encode(s.encoding, :xml => :attr)[1...-1].html_safe
++          s.gsub(/[&"'><]/, HTML_ESCAPE).html_safe
+         end
+       end
+     else
diff -Nru ruby-activesupport-3.2-3.2.6/debian/patches/series ruby-activesupport-3.2-3.2.6/debian/patches/series
--- ruby-activesupport-3.2-3.2.6/debian/patches/series	1969-12-31 21:00:00.000000000 -0300
+++ ruby-activesupport-3.2-3.2.6/debian/patches/series	2012-08-10 14:07:22.000000000 -0300
@@ -0,0 +1 @@
+CVE-2012-3464.patch

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
On Fri, 2012-08-10 at 14:31 -0300, Antonio Terceiro wrote:
> Please unblock package ruby-activesupport-3.2
> 
> This version fixes one security problem (CVE-2012-3464), closing one RC
> bug (#684517).

Unblocked; thanks.

Regards,

Adam

--- End Message ---

Reply to: