diff -u roundcube-0.1.1/debian/changelog roundcube-0.1.1/debian/changelog --- roundcube-0.1.1/debian/changelog +++ roundcube-0.1.1/debian/changelog @@ -1,3 +1,19 @@ +roundcube (0.1.1-7ubuntu0.1) intrepid-security; urgency=low + + * SECURITY UPDATE: denial of service (memory consumption) via + crafted size parameters that are used to create a large quota + image - CVE-2008-5620 + - debian/patches/cve-2008-5620.patch + + Backported from Debian + * SECURITY UPDATE: allows remote attackers to execute arbitrary + code via crafted input that is processed by the preg_replace + function with the eval switch. + - debian/patches/cve-2008-5619.patch + + Backport from upstream. + + + -- Andrew Starr-Bochicchio Thu, 19 Feb 2009 13:06:58 -0500 + roundcube (0.1.1-7) unstable; urgency=low * Another fix for incorrect tinymce path. This should be the last one! diff -u roundcube-0.1.1/debian/control roundcube-0.1.1/debian/control --- roundcube-0.1.1/debian/control +++ roundcube-0.1.1/debian/control @@ -1,7 +1,8 @@ Source: roundcube Section: web Priority: extra -Maintainer: Debian Roundcube Maintainers +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Debian Roundcube Maintainers Uploaders: Vincent Bernat , Romain Beauxis Build-Depends: debhelper (>= 5), quilt, patchutils (>= 0.2.25), cdbs (>= 0.4.27), po-debconf Homepage: http://www.roundcube.net/ diff -u roundcube-0.1.1/debian/control.in roundcube-0.1.1/debian/control.in --- roundcube-0.1.1/debian/control.in +++ roundcube-0.1.1/debian/control.in @@ -1,7 +1,8 @@ Source: roundcube Section: web Priority: extra -Maintainer: Debian Roundcube Maintainers +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Debian Roundcube Maintainers Uploaders: Vincent Bernat , Romain Beauxis Build-Depends: @cdbs@, po-debconf Homepage: http://www.roundcube.net/ diff -u roundcube-0.1.1/debian/patches/series roundcube-0.1.1/debian/patches/series --- roundcube-0.1.1/debian/patches/series +++ roundcube-0.1.1/debian/patches/series @@ -8,0 +9,2 @@ +cve-2008-5620.patch +cve-2008-5619.patch only in patch2: unchanged: --- roundcube-0.1.1.orig/debian/patches/cve-2008-5619.patch +++ roundcube-0.1.1/debian/patches/cve-2008-5619.patch @@ -0,0 +1,1110 @@ +# Ubuntu: https://bugs.launchpad.net/ubuntu/+source/roundcube/+bug/316550 +# Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508628 +# Upstream: http://sourceforge.net/forum/forum.php?forum_id=898542 +# Description: Fix for CVE 2008-5619 which allows remote attackers to execute +# arbitrary code via crafted input that is processed by the preg_replace function +# with the eval switch. +Index: roundcube-0.1.1/bin/html2text.php +=================================================================== +--- roundcube-0.1.1.orig/bin/html2text.php 2009-02-19 23:54:37.000000000 -0500 ++++ roundcube-0.1.1/bin/html2text.php 2008-12-16 12:21:24.000000000 -0500 +@@ -1,21 +1,30 @@ + | ++ +-----------------------------------------------------------------------+ + +-$htmlText = $HTTP_RAW_POST_DATA; +-$converter = new html2text($htmlText); ++ $Id: html2text.php 2070 2008-11-20 10:29:34Z alec $ + +-header('Content-Type: text/plain; charset=UTF-8'); +-$plaintext = $converter->get_text(); ++*/ + +-$phpver = explode('.', phpversion()); +-$vernum = $phpver[0] . $phpver[1] . $phpver[2]; ++define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/'); ++require INSTALL_PATH.'program/include/iniset.php'; + +-# html_entity_decode doesn't handle UTF character sets in PHP 4.x ++$converter = new html2text($HTTP_RAW_POST_DATA); + +-if (($vernum >= 500) && function_exists('html_entity_decode')) +- print html_entity_decode($plaintext, ENT_COMPAT, 'UTF-8'); +-else +- print $plaintext; ++header('Content-Type: text/plain; charset=UTF-8'); ++print trim($converter->get_text()); + + ?> +Index: roundcube-0.1.1/program/lib/html2text.inc +=================================================================== +--- roundcube-0.1.1.orig/program/lib/html2text.inc 2009-02-19 23:54:37.000000000 -0500 ++++ /dev/null 1970-01-01 00:00:00.000000000 +0000 +@@ -1,451 +0,0 @@ +- * +-* All rights reserved. * +-* * +-* This script is free software; you can redistribute it and/or modify * +-* it under the terms of the GNU General Public License as published by * +-* the Free Software Foundation; either version 2 of the License, or * +-* (at your option) any later version. * +-* * +-* The GNU General Public License can be found at * +-* http://www.gnu.org/copyleft/gpl.html. * +-* * +-* This script is distributed in the hope that it will be useful, * +-* but WITHOUT ANY WARRANTY; without even the implied warranty of * +-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +-* GNU General Public License for more details. * +-* * +-* Author(s): Jon Abernathy * +-* * +-* Last modified: 04/06/05 * +-* Modified: 2004/05/19 (tbr) * +-* * +-*************************************************************************/ +- +- +-/** +-* Takes HTML and converts it to formatted, plain text. +-* +-* Thanks to Alexander Krug (http://www.krugar.de/) to pointing out and +-* correcting an error in the regexp search array. Fixed 7/30/03. +-* +-* Updated set_html() function's file reading mechanism, 9/25/03. +-* +-* Thanks to Joss Sanglier (http://www.dancingbear.co.uk/) for adding +-* several more HTML entity codes to the $search and $replace arrays. +-* Updated 11/7/03. +-* +-* Thanks to Darius Kasperavicius (http://www.dar.dar.lt/) for +-* suggesting the addition of $allowed_tags and its supporting function +-* (which I slightly modified). Updated 3/12/04. +-* +-* Thanks to Justin Dearing for pointing out that a replacement for the +-* tag was missing, and suggesting an appropriate fix. +-* Updated 8/25/04. +-* +-* Thanks to Mathieu Collas (http://www.myefarm.com/) for finding a +-* display/formatting bug in the _build_link_list() function: email +-* readers would show the left bracket and number ("[1") as part of the +-* rendered email address. +-* Updated 12/16/04. +-* +-* Thanks to Wojciech Bajon (http://histeria.pl/) for submitting code +-* to handle relative links, which I hadn't considered. I modified his +-* code a bit to handle normal HTTP links and MAILTO links. Also for +-* suggesting three additional HTML entity codes to search for. +-* Updated 03/02/05. +-* +-* Thanks to Jacob Chandler for pointing out another link condition +-* for the _build_link_list() function: "https". +-* Updated 04/06/05. +-* +-* @author Jon Abernathy +-* @version 0.6.1 +-* @since PHP 4.0.2 +-*/ +-class html2text +-{ +- +- /** +- * Contains the HTML content to convert. +- * +- * @var string $html +- * @access public +- */ +- var $html; +- +- /** +- * Contains the converted, formatted text. +- * +- * @var string $text +- * @access public +- */ +- var $text; +- +- /** +- * Maximum width of the formatted text, in columns. +- * +- * @var integer $width +- * @access public +- */ +- var $width = 70; +- +- /** +- * List of preg* regular expression patterns to search for, +- * used in conjunction with $replace. +- * +- * @var array $search +- * @access public +- * @see $replace +- */ +- var $search = array( +- "/\r/", // Non-legal carriage return +- "/[\n\t]+/", // Newlines and tabs +- '/]*>.*?<\/script>/i', //