Your message dated Fri, 10 Aug 2012 21:11:23 +0100 with message-id <1344629483.2978.3.camel@jacala.jungle.funky-badger.org> and subject line Re: Bug#684518: unblock: ruby-actionpack-3.2/3.2.6-4 has caused the Debian Bug report #684518, regarding unblock: ruby-actionpack-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.) -- 684518: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684518 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: unblock: ruby-actionpack-3.2/3.2.6-4
- From: Antonio Terceiro <terceiro@debian.org>
- Date: Fri, 10 Aug 2012 14:23:30 -0300
- Message-id: <[🔎] 20120810172330.GA3517@debian.org>
Package: release.debian.org Severity: normal User: release.debian.org@packages.debian.org Usertags: unblock Please unblock package ruby-actionpack-3.2 This new versio includes fixes for two security problems (CVE-2012-3463, CVE-2012-3465), closing 1 RC bug (#684454). Follows a debdiff between the version in testing and this new version, which was just uploaded to untable. unblock ruby-actionpack-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-actionpack-3.2-3.2.6/debian/changelog ruby-actionpack-3.2-3.2.6/debian/changelog --- ruby-actionpack-3.2-3.2.6/debian/changelog 2012-08-04 09:29:24.000000000 -0300 +++ ruby-actionpack-3.2-3.2.6/debian/changelog 2012-08-10 13:33:44.000000000 -0300 @@ -1,3 +1,16 @@ +ruby-actionpack-3.2 (3.2.6-4) unstable; urgency=high + + * Add patches for security problems (Closes: #684454): + + CVE-2012-3463 - Ruby on Rails Potential XSS Vulnerability in select_tag + prompt + + CVE-2012-3465 - XSS Vulnerability in strip_tags + + Both patches were edited from their original versions in two ways: + - the leading a/ and b/ from the filenames were stripped + - changes over test files were removed, since the Debian package + contains no test files. + + -- Antonio Terceiro <terceiro@debian.org> Fri, 10 Aug 2012 13:08:08 -0300 + ruby-actionpack-3.2 (3.2.6-3) unstable; urgency=high * Add patch by Aaron Patterson for CVE-2012-3424 (Closes: #683370) diff -Nru ruby-actionpack-3.2-3.2.6/debian/patches/CVE-2012-3463.patch ruby-actionpack-3.2-3.2.6/debian/patches/CVE-2012-3463.patch --- ruby-actionpack-3.2-3.2.6/debian/patches/CVE-2012-3463.patch 1969-12-31 21:00:00.000000000 -0300 +++ ruby-actionpack-3.2-3.2.6/debian/patches/CVE-2012-3463.patch 2012-08-10 13:31:17.000000000 -0300 @@ -0,0 +1,30 @@ +From ec30fba02d2d3a0c90dfc9a38629d2c0d55bf8c1 Mon Sep 17 00:00:00 2001 +From: Santiago Pastorino <santiago@wyeworks.com> +Date: Wed, 8 Aug 2012 15:10:35 -0700 +Subject: [PATCH] escape select_tag :prompt values + +--- + actionpack/lib/action_view/helpers/form_tag_helper.rb | 4 ++-- + 2 files changed, 8 insertions(+), 2 deletions(-) + +diff --git actionpack/lib/action_view/helpers/form_tag_helper.rb actionpack/lib/action_view/helpers/form_tag_helper.rb +index 066b98d..9e0ec17 100644 +--- actionpack/lib/action_view/helpers/form_tag_helper.rb ++++ actionpack/lib/action_view/helpers/form_tag_helper.rb +@@ -122,11 +122,11 @@ module ActionView + html_name = (options[:multiple] == true && !name.to_s.ends_with?("[]")) ? "#{name}[]" : name + + if options.delete(:include_blank) +- option_tags = "<option value=\"\"></option>".html_safe + option_tags ++ option_tags = content_tag(:option, '', :value => '').safe_concat(option_tags) + end + + if prompt = options.delete(:prompt) +- option_tags = "<option value=\"\">#{prompt}</option>".html_safe + option_tags ++ option_tags = content_tag(:option, prompt, :value => '').safe_concat(option_tags) + end + + content_tag :select, option_tags, { "name" => html_name, "id" => sanitize_to_id(name) }.update(options.stringify_keys) +-- +1.7.11.1 + diff -Nru ruby-actionpack-3.2-3.2.6/debian/patches/CVE-2012-3465.patch ruby-actionpack-3.2-3.2.6/debian/patches/CVE-2012-3465.patch --- ruby-actionpack-3.2-3.2.6/debian/patches/CVE-2012-3465.patch 1969-12-31 21:00:00.000000000 -0300 +++ ruby-actionpack-3.2-3.2.6/debian/patches/CVE-2012-3465.patch 2012-08-10 13:31:39.000000000 -0300 @@ -0,0 +1,26 @@ +From bb98352d42d654970299450b009223968a53c6f8 Mon Sep 17 00:00:00 2001 +From: Santiago Pastorino <santiago@wyeworks.com> +Date: Wed, 8 Aug 2012 14:33:39 -0700 +Subject: [PATCH] Do not mark strip_tags result as html_safe + +Thanks to Marek Labos & Nethemba +--- + actionpack/lib/action_view/helpers/sanitize_helper.rb | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git actionpack/lib/action_view/helpers/sanitize_helper.rb actionpack/lib/action_view/helpers/sanitize_helper.rb +index 7768c8c..0f6a5ed 100644 +--- actionpack/lib/action_view/helpers/sanitize_helper.rb ++++ actionpack/lib/action_view/helpers/sanitize_helper.rb +@@ -80,7 +80,7 @@ module ActionView + # strip_tags("<div id='top-bar'>Welcome to my website!</div>") + # # => Welcome to my website! + def strip_tags(html) +- self.class.full_sanitizer.sanitize(html).try(:html_safe) ++ self.class.full_sanitizer.sanitize(html) + end + + # Strips all link tags from +text+ leaving just the link text. +-- +1.7.11.1 + diff -Nru ruby-actionpack-3.2-3.2.6/debian/patches/series ruby-actionpack-3.2-3.2.6/debian/patches/series --- ruby-actionpack-3.2-3.2.6/debian/patches/series 2012-08-04 09:26:26.000000000 -0300 +++ ruby-actionpack-3.2-3.2.6/debian/patches/series 2012-08-10 13:29:41.000000000 -0300 @@ -1 +1,3 @@ CVE-2012-3424.patch +CVE-2012-3463.patch +CVE-2012-3465.patchAttachment: signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---
- To: Antonio Terceiro <terceiro@debian.org>, 684518-done@bugs.debian.org
- Subject: Re: Bug#684518: unblock: ruby-actionpack-3.2/3.2.6-4
- From: "Adam D. Barratt" <adam@adam-barratt.org.uk>
- Date: Fri, 10 Aug 2012 21:11:23 +0100
- Message-id: <1344629483.2978.3.camel@jacala.jungle.funky-badger.org>
- In-reply-to: <[🔎] 20120810172330.GA3517@debian.org>
- References: <[🔎] 20120810172330.GA3517@debian.org>
On Fri, 2012-08-10 at 14:23 -0300, Antonio Terceiro wrote: > Please unblock package ruby-actionpack-3.2 > > This new versio includes fixes for two security problems (CVE-2012-3463, > CVE-2012-3465), closing 1 RC bug (#684454). Unblocked; thanks. Regards, Adam
--- End Message ---