Version in base suite: 3.3.1-2 Base version: opensaml_3.3.1-2 Target version: opensaml_3.3.1-2+deb13u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/o/opensaml/opensaml_3.3.1-2.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/o/opensaml/opensaml_3.3.1-2+deb13u1.dsc changelog | 11 +++ gbp.conf | 2 patches/XML-handling-improvements.patch | 114 ++++++++++++++++++++++++++++++++ patches/series | 1 4 files changed, 127 insertions(+), 1 deletion(-) dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmpu0cfzf0d/opensaml_3.3.1-2.dsc: no acceptable signature found dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmpu0cfzf0d/opensaml_3.3.1-2+deb13u1.dsc: no acceptable signature found diff -Nru opensaml-3.3.1/debian/changelog opensaml-3.3.1/debian/changelog --- opensaml-3.3.1/debian/changelog 2025-04-27 20:47:08.000000000 +0000 +++ opensaml-3.3.1/debian/changelog 2026-11-30 14:04:48.000000000 +0000 @@ -1,3 +1,14 @@ +opensaml (3.3.1-2+deb13u1) trixie-security; urgency=high + + * [f1beec6] New patch: XML handling improvements. + Fix ECP and SOAP request forgery vulnerability + Under the right conditions, forged messages could appear to come + from any trusted Identity Provider and contain any data desired by + the attacker. + Thanks to Scott Cantor + + -- Ferenc Wágner Mon, 30 Nov 2026 15:04:48 +0100 + opensaml (3.3.1-2) unstable; urgency=medium * [963c684] Update Standards-Version to 4.7.2 (no changes required) diff -Nru opensaml-3.3.1/debian/gbp.conf opensaml-3.3.1/debian/gbp.conf --- opensaml-3.3.1/debian/gbp.conf 2025-03-16 13:38:13.000000000 +0000 +++ opensaml-3.3.1/debian/gbp.conf 2026-11-30 06:13:02.000000000 +0000 @@ -1,5 +1,5 @@ [DEFAULT] -debian-branch = debian/master +debian-branch = debian/trixie upstream-branch = upstream/latest pristine-tar = True diff -Nru opensaml-3.3.1/debian/patches/XML-handling-improvements.patch opensaml-3.3.1/debian/patches/XML-handling-improvements.patch --- opensaml-3.3.1/debian/patches/XML-handling-improvements.patch 1970-01-01 00:00:00.000000000 +0000 +++ opensaml-3.3.1/debian/patches/XML-handling-improvements.patch 2026-11-30 13:56:08.000000000 +0000 @@ -0,0 +1,114 @@ +From: Scott Cantor +Date: Mon, 30 Nov 2026 08:29:54 -0500 +Subject: XML handling improvements + +--- + saml/binding/impl/SimpleSigningRule.cpp | 12 ++++++++++++ + saml/saml1/binding/impl/SAML1SOAPDecoder.cpp | 8 +++++++- + saml/saml2/binding/impl/SAML2ECPDecoder.cpp | 4 ++++ + saml/saml2/binding/impl/SAML2SOAPDecoder.cpp | 6 ++++++ + saml/signature/SignatureProfileValidator.cpp | 2 +- + 5 files changed, 30 insertions(+), 2 deletions(-) + +diff --git a/saml/binding/impl/SimpleSigningRule.cpp b/saml/binding/impl/SimpleSigningRule.cpp +index 9c2122e..8cd7d5c 100644 +--- a/saml/binding/impl/SimpleSigningRule.cpp ++++ b/saml/binding/impl/SimpleSigningRule.cpp +@@ -153,6 +153,18 @@ bool SimpleSigningRule::evaluate(const XMLObject& message, const GenericRequest* + return false; + } + ++ const char* method = httpRequest->getMethod(); ++ if (!strcmp(method, "POST")) { ++ if (httpRequest->getContentType().find("application/x-www-form-urlencoded") == string::npos) { ++ log.debug("ignoring message, POST without form-urlencoded content type"); ++ return false; ++ } ++ } ++ else if (strcmp(method, "GET")) { ++ log.debug("ignoring message, unsupported HTTP method (%s)", method); ++ return false; ++ } ++ + // Make sure Signature only shows up once. + vector valueHolder; + request->getParameters("Signature", valueHolder); +diff --git a/saml/saml1/binding/impl/SAML1SOAPDecoder.cpp b/saml/saml1/binding/impl/SAML1SOAPDecoder.cpp +index 5525490..9dd17a0 100644 +--- a/saml/saml1/binding/impl/SAML1SOAPDecoder.cpp ++++ b/saml/saml1/binding/impl/SAML1SOAPDecoder.cpp +@@ -33,6 +33,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -85,8 +86,13 @@ XMLObject* SAML1SOAPDecoder::decode( + Category& log = Category::getInstance(SAML_LOGCAT ".MessageDecoder.SAML1SOAP"); + + log.debug("validating input"); ++ const HTTPRequest* httpRequest = dynamic_cast(&genericRequest); ++ if (httpRequest && strcmp(httpRequest->getMethod(), "POST")) { ++ log.warn("ignoring non-POST request (%s)", httpRequest->getMethod()); ++ throw BindingException("Invalid HTTP method ($1).", params(1, httpRequest->getMethod())); ++ } + string s = genericRequest.getContentType(); +- if (s.find("text/xml") == string::npos) { ++ if (s.find("text/xml") == string::npos || s.find("application/x-www-form-urlencoded") != string::npos) { + log.warn("ignoring incorrect content type (%s)", s.c_str() ? s.c_str() : "none"); + throw BindingException("Invalid content type for SOAP message."); + } +diff --git a/saml/saml2/binding/impl/SAML2ECPDecoder.cpp b/saml/saml2/binding/impl/SAML2ECPDecoder.cpp +index 3d1c180..b88142b 100644 +--- a/saml/saml2/binding/impl/SAML2ECPDecoder.cpp ++++ b/saml/saml2/binding/impl/SAML2ECPDecoder.cpp +@@ -85,6 +85,10 @@ XMLObject* SAML2ECPDecoder::decode( + log.debug("validating input"); + const HTTPRequest* httpRequest = dynamic_cast(&genericRequest); + if (httpRequest) { ++ if (strcmp(httpRequest->getMethod(), "POST")) { ++ log.warn("ignoring non-POST request (%s)", httpRequest->getMethod()); ++ throw BindingException("Invalid HTTP method ($1).", params(1, httpRequest->getMethod())); ++ } + string s = httpRequest->getContentType(); + if (s.find("application/vnd.paos+xml") == string::npos || + s.find("application/x-www-form-urlencoded") != string::npos) { +diff --git a/saml/saml2/binding/impl/SAML2SOAPDecoder.cpp b/saml/saml2/binding/impl/SAML2SOAPDecoder.cpp +index 62bffd5..241bff2 100644 +--- a/saml/saml2/binding/impl/SAML2SOAPDecoder.cpp ++++ b/saml/saml2/binding/impl/SAML2SOAPDecoder.cpp +@@ -33,6 +33,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -85,6 +86,11 @@ XMLObject* SAML2SOAPDecoder::decode( + Category& log = Category::getInstance(SAML_LOGCAT ".MessageDecoder.SAML2SOAP"); + + log.debug("validating input"); ++ const HTTPRequest* httpRequest = dynamic_cast(&genericRequest); ++ if (httpRequest && strcmp(httpRequest->getMethod(), "POST")) { ++ log.warn("ignoring non-POST request (%s)", httpRequest->getMethod()); ++ throw BindingException("Invalid HTTP method ($1).", params(1, httpRequest->getMethod())); ++ } + string s = genericRequest.getContentType(); + if (s.find("text/xml") == string::npos || s.find("application/x-www-form-urlencoded") != string::npos) { + log.warn("ignoring incorrect content type (%s)", s.c_str() ? s.c_str() : "none"); +diff --git a/saml/signature/SignatureProfileValidator.cpp b/saml/signature/SignatureProfileValidator.cpp +index 5bc0ebb..76d7728 100644 +--- a/saml/signature/SignatureProfileValidator.cpp ++++ b/saml/signature/SignatureProfileValidator.cpp +@@ -87,7 +87,7 @@ void SignatureProfileValidator::validateSignature(const Signature& sigObj) const + const XMLCh* ID=signableObj->getXMLID(); + if (URI==nullptr || *URI==0 || (*URI==chPound && ID && !XMLString::compareString(URI+1,ID))) { + const DSIGTransformList* tlist=ref->getTransforms(); +- if (tlist->getSize() <= 2) { ++ if (tlist && tlist->getSize() <= 2) { + for (unsigned int i=0; tlist && igetSize(); i++) { + const DSIGTransform* t = tlist->item(i); + if (dynamic_cast(t)) { diff -Nru opensaml-3.3.1/debian/patches/series opensaml-3.3.1/debian/patches/series --- opensaml-3.3.1/debian/patches/series 2025-04-27 20:45:46.000000000 +0000 +++ opensaml-3.3.1/debian/patches/series 2026-11-30 13:56:08.000000000 +0000 @@ -1,3 +1,4 @@ Update-SAML2-signatures-to-RSA-SHA256.patch Skip-SAML1-tests-depending-on-the-old-RSA-SHA1-default-si.patch Use-the-new-InCommon-metadata-source.patch +XML-handling-improvements.patch