Version in base suite: 3.3.15+ds-2 Base version: postfixadmin_3.3.15+ds-2 Target version: postfixadmin_3.3.15+ds-2+deb13u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/p/postfixadmin/postfixadmin_3.3.15+ds-2.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/p/postfixadmin/postfixadmin_3.3.15+ds-2+deb13u1.dsc changelog | 9 +++++ patches/CVE-2026-127178.patch | 64 ++++++++++++++++++++++++++++++++++++++++++ patches/series | 1 3 files changed, 74 insertions(+) dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmpnwr5iq0v/postfixadmin_3.3.15+ds-2.dsc: no acceptable signature found dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmpnwr5iq0v/postfixadmin_3.3.15+ds-2+deb13u1.dsc: no acceptable signature found diff -Nru postfixadmin-3.3.15+ds/debian/changelog postfixadmin-3.3.15+ds/debian/changelog --- postfixadmin-3.3.15+ds/debian/changelog 2025-02-02 16:29:44.000000000 +0000 +++ postfixadmin-3.3.15+ds/debian/changelog 2026-11-20 05:04:15.000000000 +0000 @@ -1,3 +1,12 @@ +postfixadmin (3.3.15+ds-2+deb13u1) trixie-security; urgency=high + + * Correctly use smarty escape:quotes (CVE-2026-127178) + This fixes a stored XSS attack when viewing email aliases. A malicious + logged in admin may inject crafted aliases to hijack other admin sessions. + (Closes: #1154298) + + -- Luke Yasuda Fri, 20 Nov 2026 14:04:15 +0900 + postfixadmin (3.3.15+ds-2) unstable; urgency=medium * postinst: second try to fix the symlink to smarty4 when upgrading diff -Nru postfixadmin-3.3.15+ds/debian/patches/CVE-2026-127178.patch postfixadmin-3.3.15+ds/debian/patches/CVE-2026-127178.patch --- postfixadmin-3.3.15+ds/debian/patches/CVE-2026-127178.patch 1970-01-01 00:00:00.000000000 +0000 +++ postfixadmin-3.3.15+ds/debian/patches/CVE-2026-127178.patch 2026-11-20 03:53:58.000000000 +0000 @@ -0,0 +1,64 @@ +From 8c69c99745474c30fa169f421451664829b7f8db Mon Sep 17 00:00:00 2001 +From: David Goodwin +Date: Wed, 18 Nov 2026 09:24:21 +0000 +Subject: [PATCH] patch some XSS issues in 3.3.x: incorrect use of smarty + escape:quotes, failure to escape output from viewlog.php +Forwarded: not-needed +Origin: upstream, https://github.com/postfixadmin/postfixadmin/commit/8c69c99745474c30fa169f421451664829b7f8db.patch + +[jing]: trim down unrelated changes + +diff --git a/model/AliasHandler.php b/model/AliasHandler.php +index a0551b449..8badc26c5 100644 +--- a/model/AliasHandler.php ++++ b/model/AliasHandler.php +@@ -186,6 +186,16 @@ protected function validate_new_id() { + return false; + } + ++ # A valid alias address contains exactly one "@": either "localpart@domain" ++ # or a "@domain" catch-all. Reject anything else here - otherwise an address ++ # such as "@domain@@domain" slips past the catch-all shortcut below ++ # (explode() yields an empty local part, so check_email() is skipped) and is ++ # stored verbatim, which allows stored HTML/JS injection in the alias list. ++ if (substr_count($this->id, '@') !== 1) { ++ $this->errormsg[$this->id_field] = Config::lang('pCreate_alias_address_text_error1'); ++ return false; ++ } ++ + list($local_part, $domain) = explode('@', $this->id); + + if (!$this->create_allowed($domain)) { +diff --git a/templates/list-virtual_mailbox.tpl b/templates/list-virtual_mailbox.tpl +index c1389e8da..d24376a27 100644 +--- a/templates/list-virtual_mailbox.tpl ++++ b/templates/list-virtual_mailbox.tpl +@@ -98,9 +98,9 @@ + +
+ +- ++ + +- +
+diff --git a/templates/list.tpl b/templates/list.tpl +index a5a7b1552..e5d643ff1 100644 +--- a/templates/list.tpl ++++ b/templates/list.tpl +@@ -131,10 +131,10 @@ + {if $item._can_delete} +
+ +- ++ + + +- +
diff -Nru postfixadmin-3.3.15+ds/debian/patches/series postfixadmin-3.3.15+ds/debian/patches/series --- postfixadmin-3.3.15+ds/debian/patches/series 2025-01-09 07:03:04.000000000 +0000 +++ postfixadmin-3.3.15+ds/debian/patches/series 2026-11-20 05:03:22.000000000 +0000 @@ -2,3 +2,4 @@ 0002-drop-use-of-the-deprecated-PHP-imap-extension.patch 0003-use-shared-libs.patch 0005-additions-fetchmail-script-debianize.patch +CVE-2026-127178.patch