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 @@ -7,0 +8 @@ +CVE-2006-6799.dpatch 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-3ubuntu0.1) edgy-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:10:31 +0100 + cacti (0.8.6h-3) unstable; urgency=low * official patch from upstream to fix database corruption and display some 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 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: seanius@debian.org\n" -"POT-Creation-Date: 2005-12-01 16:11+0100\n" +"POT-Creation-Date: 2007-01-28 00:16+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -19,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 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: cacti 0.8.6g-2\n" "Report-Msgid-Bugs-To: seanius@debian.org\n" -"POT-Creation-Date: 2005-12-01 16:11+0100\n" +"POT-Creation-Date: 2007-01-28 00:16+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 @@ -15,7 +15,7 @@ msgstr "" "Project-Id-Version: cacti 0.8.6f-1\n" "Report-Msgid-Bugs-To: seanius@debian.org\n" -"POT-Creation-Date: 2005-12-01 16:11+0100\n" +"POT-Creation-Date: 2007-01-28 00:16+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 @@ -15,7 +15,7 @@ msgstr "" "Project-Id-Version: cacti\n" "Report-Msgid-Bugs-To: seanius@debian.org\n" -"POT-Creation-Date: 2005-12-01 16:11+0100\n" +"POT-Creation-Date: 2007-01-28 00:16+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 @@ -17,7 +17,7 @@ msgstr "" "Project-Id-Version: cacti 0.6.8a-13\n" "Report-Msgid-Bugs-To: seanius@debian.org\n" -"POT-Creation-Date: 2005-12-01 16:11+0100\n" +"POT-Creation-Date: 2007-01-28 00:16+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 @@ -27,7 +27,7 @@ msgstr "" "Project-Id-Version: cacti\n" "Report-Msgid-Bugs-To: seanius@debian.org\n" -"POT-Creation-Date: 2005-12-01 16:11+0100\n" +"POT-Creation-Date: 2007-01-28 00:16+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 @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: cacti 0.8.6g\n" "Report-Msgid-Bugs-To: seanius@debian.org\n" -"POT-Creation-Date: 2005-12-01 16:11+0100\n" +"POT-Creation-Date: 2007-01-28 00:16+0100\n" "PO-Revision-Date: 2005-12-29 14:02+0100\n" "Last-Translator: Mathias Klein \n" "Language-Team: Deutsch \n" @@ -21,25 +21,25 @@ #. Type: select #. Choices -#: ../cacti.templates:3 +#: ../cacti.templates:1001 msgid "Apache, Apache-SSL, Apache2, All, None" msgstr "Apache, Apache-SSL, Apache2, alle, keiner" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Webserver type" msgstr "Webserver" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Which kind of web server should be used by cacti?" msgstr "Welche Art von Webserver soll von Cacti verwendet werden?" #. Type: select #. Description -#: ../cacti.templates:5 +#: ../cacti.templates:1002 msgid "Select \"None\" if you would like to configure your webserver by hand." msgstr "" "Wählen Sie »keiner«, wenn Sie den Webserver von Hand konfigurieren wollen." 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 @@ -15,7 +15,7 @@ msgstr "" "Project-Id-Version: cacti 0.8.6g-1\n" "Report-Msgid-Bugs-To: seanius@debian.org\n" -"POT-Creation-Date: 2005-12-01 16:11+0100\n" +"POT-Creation-Date: 2007-01-28 00:16+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 @@ -15,7 +15,7 @@ msgstr "" "Project-Id-Version: cacti 0.8.4-2\n" "Report-Msgid-Bugs-To: seanius@debian.org\n" -"POT-Creation-Date: 2005-12-01 16:11+0100\n" +"POT-Creation-Date: 2007-01-28 00:16+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 @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: cacti 0.8.6d-1\n" "Report-Msgid-Bugs-To: seanius@debian.org\n" -"POT-Creation-Date: 2005-12-01 16:11+0100\n" +"POT-Creation-Date: 2007-01-28 00:16+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,286 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## CVE-2006-6799.dpatch by +## +## DP: Fix SQL injection vulnerability + +@DPATCH@ +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:04:07.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:04:07.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