diff -u cacti-0.8.6h/debian/changelog cacti-0.8.6h/debian/changelog --- cacti-0.8.6h/debian/changelog +++ cacti-0.8.6h/debian/changelog @@ -1,3 +1,15 @@ +cacti (0.8.6h-1ubuntu3.1) dapper-security; urgency=low + + * SECURITY UPDATE: SQL injection + * CVE-2006-6799.dpatch: Fix SQL injection vulnerability in Cacti when + register_argc_argv is enabled. Patch taken from upstream. + (Closes LP#78453) + * References + CVE-2006-6799 + http://www.cacti.net/download_patches.php?version=0.8.6h + + -- Martin Jürgens Sun, 28 Jan 2007 00:25:31 +0100 + cacti (0.8.6h-1ubuntu3) dapper; urgency=low * Install apache2 by default. (Malone: #29008) diff -u cacti-0.8.6h/debian/patches/00list cacti-0.8.6h/debian/patches/00list --- cacti-0.8.6h/debian/patches/00list +++ cacti-0.8.6h/debian/patches/00list @@ -2,0 +3 @@ +CVE-2006-6799.dpatch diff -u cacti-0.8.6h/debian/po/templates.pot cacti-0.8.6h/debian/po/templates.pot --- cacti-0.8.6h/debian/po/templates.pot +++ cacti-0.8.6h/debian/po/templates.pot @@ -1,22 +1,14 @@ -# -# Translators, if you are not familiar with the PO format, gettext -# documentation is worth reading, especially sections dedicated to -# this format, e.g. by running: -# info -n '(gettext)PO Files' -# info -n '(gettext)Header Entry' -# -# Some information specific to po-debconf are available at -# /usr/share/doc/po-debconf/README-trans -# or http://www.debian.org/intl/l10n/po-debconf/README-trans -# -# Developers do not need to manually edit POT or PO files. +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-12-10 22:24+0100\n" +"Report-Msgid-Bugs-To: seanius@debian.org\n" +"POT-Creation-Date: 2007-01-28 00:26+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -27,23 +19,23 @@ #. Type: select #. Choices -#: ../cacti.templates:3 +#: ../cacti.templates:1001 msgid "Apache, Apache-SSL, Apache2, All, None" msgstr "" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Webserver type" msgstr "" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Which kind of web server should be used by cacti?" msgstr "" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Select \"None\" if you would like to configure your webserver by hand." msgstr "" diff -u cacti-0.8.6h/debian/po/pt.po cacti-0.8.6h/debian/po/pt.po --- cacti-0.8.6h/debian/po/pt.po +++ cacti-0.8.6h/debian/po/pt.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: cacti 0.8.6g-2\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-12-10 22:24+0100\n" +"Report-Msgid-Bugs-To: seanius@debian.org\n" +"POT-Creation-Date: 2007-01-28 00:26+0100\n" "PO-Revision-Date: 2005-11-01 12:08+0100\n" "Last-Translator: Luís Ferreira \n" "Language-Team: Portuguese \n" @@ -17,25 +17,25 @@ #. Type: select #. Choices -#: ../cacti.templates:3 +#: ../cacti.templates:1001 msgid "Apache, Apache-SSL, Apache2, All, None" msgstr "Apache, Apache-SSL, Apache2, Todos, Nenhum" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Webserver type" msgstr "Tipo de servidor web" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Which kind of web server should be used by cacti?" msgstr "Que tipo de servidor web deve o cacti usar?" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Select \"None\" if you would like to configure your webserver by hand." msgstr "Selecione \"Nenhum\" se desejar configurar o seu servidor web á mão." diff -u cacti-0.8.6h/debian/po/cs.po cacti-0.8.6h/debian/po/cs.po --- cacti-0.8.6h/debian/po/cs.po +++ cacti-0.8.6h/debian/po/cs.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: cacti 0.8.6f-1\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-12-10 22:24+0100\n" +"Report-Msgid-Bugs-To: seanius@debian.org\n" +"POT-Creation-Date: 2007-01-28 00:26+0100\n" "PO-Revision-Date: 2005-07-06 16:30+0200\n" "Last-Translator: Miroslav Kure \n" "Language-Team: Czech \n" @@ -25,25 +25,25 @@ #. Type: select #. Choices -#: ../cacti.templates:3 +#: ../cacti.templates:1001 msgid "Apache, Apache-SSL, Apache2, All, None" msgstr "Apache, Apache-SSL, Apache2, Všechny, Žádný" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Webserver type" msgstr "Typ webového serveru" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Which kind of web server should be used by cacti?" msgstr "Jaký typ webového serveru použít pro cacti?" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Select \"None\" if you would like to configure your webserver by hand." msgstr "Pokud chcete nastavit webový server ručně, vyberte \"Žádný\"." diff -u cacti-0.8.6h/debian/po/pt_BR.po cacti-0.8.6h/debian/po/pt_BR.po --- cacti-0.8.6h/debian/po/pt_BR.po +++ cacti-0.8.6h/debian/po/pt_BR.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: cacti\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-12-10 22:24+0100\n" +"Report-Msgid-Bugs-To: seanius@debian.org\n" +"POT-Creation-Date: 2007-01-28 00:26+0100\n" "PO-Revision-Date: 2005-03-25 21:33-0300\n" "Last-Translator: Tiago Bortoletto Vaz \n" "Language-Team: Debian-BR Project\n" @@ -25,26 +25,26 @@ #. Type: select #. Choices -#: ../cacti.templates:3 +#: ../cacti.templates:1001 #, fuzzy msgid "Apache, Apache-SSL, Apache2, All, None" msgstr "Apache, Apache-SSL, Apache2, Todos" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Webserver type" msgstr "Tipo do servidor WEB" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Which kind of web server should be used by cacti?" msgstr "Que tipo de base de dados deve ser usada pelo cacti ?" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Select \"None\" if you would like to configure your webserver by hand." msgstr "" "Selecione \"None\" caso voc queira configurar seu servidor WEB manualmente." diff -u cacti-0.8.6h/debian/po/fr.po cacti-0.8.6h/debian/po/fr.po --- cacti-0.8.6h/debian/po/fr.po +++ cacti-0.8.6h/debian/po/fr.po @@ -16,8 +16,8 @@ msgid "" msgstr "" "Project-Id-Version: cacti 0.6.8a-13\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-12-10 22:24+0100\n" +"Report-Msgid-Bugs-To: seanius@debian.org\n" +"POT-Creation-Date: 2007-01-28 00:26+0100\n" "PO-Revision-Date: 2005-03-07 08:06+0100\n" "Last-Translator: Christian Perrier \n" "Language-Team: French \n" @@ -29,25 +29,25 @@ #. Type: select #. Choices -#: ../cacti.templates:3 +#: ../cacti.templates:1001 msgid "Apache, Apache-SSL, Apache2, All, None" msgstr "Apache, Apache-SSL, Apache2, Tous, Aucun" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Webserver type" msgstr "Type de serveur web:" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Which kind of web server should be used by cacti?" msgstr "Veuillez choisir le type de serveur web qu'utilisera Cacti." #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Select \"None\" if you would like to configure your webserver by hand." msgstr "" "Choisissez Aucun si vous prfrez configurer vous-mme votre serveur web." diff -u cacti-0.8.6h/debian/po/es.po cacti-0.8.6h/debian/po/es.po --- cacti-0.8.6h/debian/po/es.po +++ cacti-0.8.6h/debian/po/es.po @@ -26,8 +26,8 @@ msgid "" msgstr "" "Project-Id-Version: cacti\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-12-10 22:24+0100\n" +"Report-Msgid-Bugs-To: seanius@debian.org\n" +"POT-Creation-Date: 2007-01-28 00:26+0100\n" "PO-Revision-Date: 2005-08-29 18:36+0100\n" "Last-Translator: César Gómez Martín \n" "Language-Team: Debian l10n spanish \n" @@ -40,25 +40,25 @@ #. Type: select #. Choices -#: ../cacti.templates:3 +#: ../cacti.templates:1001 msgid "Apache, Apache-SSL, Apache2, All, None" msgstr "Apache, Apache-SSL, Apache2, Todos, Ninguno" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Webserver type" msgstr "Tipo de servidor web" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Which kind of web server should be used by cacti?" msgstr "¿Qué tipo de servidor web quiere usar con cacti?" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Select \"None\" if you would like to configure your webserver by hand." msgstr "Seleccione «Ninguno» si quiere configurar su servidor web manualmente." diff -u cacti-0.8.6h/debian/po/de.po cacti-0.8.6h/debian/po/de.po --- cacti-0.8.6h/debian/po/de.po +++ cacti-0.8.6h/debian/po/de.po @@ -15,8 +15,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-12-10 22:24+0100\n" +"Report-Msgid-Bugs-To: seanius@debian.org\n" +"POT-Creation-Date: 2007-01-28 00:26+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,27 +26,27 @@ #. Type: select #. Choices -#: ../cacti.templates:3 +#: ../cacti.templates:1001 #, fuzzy msgid "Apache, Apache-SSL, Apache2, All, None" msgstr "Apache, Apache-SSL, Alle" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Webserver type" msgstr "" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 #, fuzzy msgid "Which kind of web server should be used by cacti?" msgstr "Welche Art von Webserver verwenden Sie fr Cacti?" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Select \"None\" if you would like to configure your webserver by hand." msgstr "" diff -u cacti-0.8.6h/debian/po/sv.po cacti-0.8.6h/debian/po/sv.po --- cacti-0.8.6h/debian/po/sv.po +++ cacti-0.8.6h/debian/po/sv.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: cacti 0.8.6g-1\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-12-10 22:24+0100\n" +"Report-Msgid-Bugs-To: seanius@debian.org\n" +"POT-Creation-Date: 2007-01-28 00:26+0100\n" "PO-Revision-Date: 2005-11-12 00:07+0100\n" "Last-Translator: Daniel Nylander \n" "Language-Team: Swedish \n" @@ -27,25 +27,25 @@ #. Type: select #. Choices -#: ../cacti.templates:3 +#: ../cacti.templates:1001 msgid "Apache, Apache-SSL, Apache2, All, None" msgstr "Apache, Apache-SSL, Apache2, Alla, Ingen" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Webserver type" msgstr "Webbserver-typ" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Which kind of web server should be used by cacti?" msgstr "Vilken typ av webbserver ska användas för cacti?" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Select \"None\" if you would like to configure your webserver by hand." msgstr "Välj \"Ingen\" om du vill konfigurera din webbserver på egen hand." diff -u cacti-0.8.6h/debian/po/nl.po cacti-0.8.6h/debian/po/nl.po --- cacti-0.8.6h/debian/po/nl.po +++ cacti-0.8.6h/debian/po/nl.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: cacti 0.8.4-2\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-12-10 22:24+0100\n" +"Report-Msgid-Bugs-To: seanius@debian.org\n" +"POT-Creation-Date: 2007-01-28 00:26+0100\n" "PO-Revision-Date: 2004-09-09 11:57+0100\n" "Last-Translator: Luk Claes \n" "Language-Team: Debian l10n Dutch \n" @@ -25,25 +25,25 @@ #. Type: select #. Choices -#: ../cacti.templates:3 +#: ../cacti.templates:1001 msgid "Apache, Apache-SSL, Apache2, All, None" msgstr "Apache, Apache-SSL, Apache2, Allemaal, Geen" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Webserver type" msgstr "Type webserver" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Which kind of web server should be used by cacti?" msgstr "Welk soort webserver moet door cacti worden gebruikt?" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Select \"None\" if you would like to configure your webserver by hand." msgstr "Selecteer \"Geen\" als u uw webserver handmatig wilt configureren." diff -u cacti-0.8.6h/debian/po/vi.po cacti-0.8.6h/debian/po/vi.po --- cacti-0.8.6h/debian/po/vi.po +++ cacti-0.8.6h/debian/po/vi.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: cacti 0.8.6d-1\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-12-10 22:24+0100\n" +"Report-Msgid-Bugs-To: seanius@debian.org\n" +"POT-Creation-Date: 2007-01-28 00:26+0100\n" "PO-Revision-Date: 2005-06-12 20:42+0930\n" "Last-Translator: Clytie Siddall \n" "Language-Team: Vietnamese \n" @@ -17,25 +17,25 @@ #. Type: select #. Choices -#: ../cacti.templates:3 +#: ../cacti.templates:1001 msgid "Apache, Apache-SSL, Apache2, All, None" msgstr "Apache, Apache-SSL, Apache2, Tất cả, Không có" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Webserver type" msgstr "Loại trình phục vụ Mạng" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Which kind of web server should be used by cacti?" msgstr "Trình cacti sẽ dùng trình phục vụ Mạng loại nào?" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Select \"None\" if you would like to configure your webserver by hand." msgstr "Hãy chọn «Không có» nếu bạn muốn tự cấu hình trình phục vụ Mạng." only in patch2: unchanged: --- cacti-0.8.6h.orig/debian/patches/CVE-2006-6799.dpatch +++ cacti-0.8.6h/debian/patches/CVE-2006-6799.dpatch @@ -0,0 +1,546 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## CVE-2006-6799.dpatch by +## +## DP: Fix SQL injection vulnerability + +@DPATCH@ +diff -urNad cacti-0.8.6h~/cacti.sql cacti-0.8.6h/cacti.sql +--- cacti-0.8.6h~/cacti.sql 2006-01-04 04:08:30.000000000 +0100 ++++ cacti-0.8.6h/cacti.sql 2007-01-28 00:23:48.000000000 +0100 +@@ -1846,7 +1846,7 @@ + avg_time decimal(10,5) default '0.00000', + total_polls int(12) unsigned default '0', + failed_polls int(12) unsigned default '0', +- availability decimal(7,5) NOT NULL default '100.00000', ++ availability decimal(8,5) NOT NULL default '100.00000', + PRIMARY KEY (id) + ) TYPE=MyISAM; + +diff -urNad cacti-0.8.6h~/cmd.php cacti-0.8.6h/cmd.php +--- cacti-0.8.6h~/cmd.php 2006-01-04 04:08:30.000000000 +0100 ++++ cacti-0.8.6h/cmd.php 2007-01-28 00:23:48.000000000 +0100 +@@ -26,7 +26,7 @@ + */ + + /* do NOT run this script through a web browser */ +-if (!isset($_SERVER["argv"][0])) { ++if (!isset($_SERVER["argv"][0]) || isset($_SERVER['REQUEST_METHOD']) || isset($_SERVER['REMOTE_ADDR'])) { + die("
This script is only meant to run at the command line."); + } + +@@ -71,6 +71,10 @@ + $print_data_to_stdout = false; + if ($_SERVER["argc"] == "3") { + if ($_SERVER["argv"][1] <= $_SERVER["argv"][2]) { ++ /* address potential exploits */ ++ input_validate_input_number($_SERVER["argv"][1]); ++ input_validate_input_number($_SERVER["argv"][2]); ++ + $hosts = db_fetch_assoc("select * from host where (disabled = '' and " . + "id >= " . + $_SERVER["argv"][1] . +diff -urNad cacti-0.8.6h~/copy_cacti_user.php cacti-0.8.6h/copy_cacti_user.php +--- cacti-0.8.6h~/copy_cacti_user.php 2006-01-04 04:08:30.000000000 +0100 ++++ cacti-0.8.6h/copy_cacti_user.php 2007-01-28 00:23:48.000000000 +0100 +@@ -25,9 +25,10 @@ + */ + + /* do NOT run this script through a web browser */ +-if (! isset($_SERVER["argv"][0])) { +- die("This script is only meant to run at the command line.\n"); ++if (!isset($_SERVER["argv"][0]) || isset($_SERVER['REQUEST_METHOD']) || isset($_SERVER['REMOTE_ADDR'])) { ++ die("
This script is only meant to run at the command line."); + } ++ + if (empty($_SERVER["argv"][2])) { + die("\nSyntax:\n php copy_cacti_user.php