[java-plugin-shibd-saml] branch main updated: JSHIBDSAML-11 - Hardening

Codeberg noreply at shibboleth.net
Mon Nov 30 17:22:43 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository java-plugin-shibd-saml.

View the commit online:
https://codeberg.org/Shibboleth/java-plugin-shibd-saml/commit/e95ad481626d53d64a12b3fd775ab21823b50332

The following commit(s) were added to refs/heads/main by this push:
     new e95ad48  JSHIBDSAML-11 - Hardening
e95ad48 is described below

commit e95ad481626d53d64a12b3fd775ab21823b50332
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Mon Nov 30 12:22:27 2026 -0500

    JSHIBDSAML-11 - Hardening
    
    Create binding-specific signature handler "chain" in logout consumers.
---
 .../consumer/saml2/artifact/artifact-beans.xml     | 11 ++++++++++
 .../post-simplesign/post-simplesign-beans.xml      | 15 +++++++++++++
 .../sp/logout/consumer/saml2/post/post-beans.xml   | 11 ++++++++++
 .../consumer/saml2/redirect/redirect-beans.xml     | 13 +++++++++++
 .../flows/sp/logout/consumer/saml2/saml2-beans.xml | 25 ----------------------
 5 files changed, 50 insertions(+), 25 deletions(-)

diff --git a/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/artifact/artifact-beans.xml b/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/artifact/artifact-beans.xml
index eb377bd..d4675ab 100644
--- a/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/artifact/artifact-beans.xml
+++ b/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/artifact/artifact-beans.xml
@@ -29,4 +29,15 @@
         </constructor-arg>
     </bean>
 
+    <bean id="CheckSignature" class="net.shibboleth.sp.profile.impl.WebFlowMessageHandlerAdaptor" scope="prototype"
+            c:executionDirection="INBOUND"
+            p:activationCondition-ref="NotIgnoreRequestSignaturesPredicate">
+        <constructor-arg>
+            <bean class="org.opensaml.saml.common.binding.security.impl.SAMLProtocolMessageXMLSignatureSecurityHandler" scope="prototype" />
+        </constructor-arg>
+        <property name="errorEvent">
+            <util:constant static-field="org.opensaml.profile.action.EventIds.INVALID_MESSAGE" />
+        </property>
+    </bean>
+
 </beans>
diff --git a/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/post-simplesign/post-simplesign-beans.xml b/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/post-simplesign/post-simplesign-beans.xml
index 8c0542e..ae2f72f 100644
--- a/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/post-simplesign/post-simplesign-beans.xml
+++ b/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/post-simplesign/post-simplesign-beans.xml
@@ -20,4 +20,19 @@
         </constructor-arg>
     </bean>
 
+    <bean id="CheckSignature" class="net.shibboleth.sp.profile.impl.WebFlowMessageHandlerAdaptor" scope="prototype"
+            c:executionDirection="INBOUND"
+            p:activationCondition-ref="NotIgnoreRequestSignaturesPredicate">
+        <constructor-arg>
+            <bean class="org.opensaml.saml.saml2.binding.security.impl.SAML2HTTPPostSimpleSignSecurityHandler" scope="prototype"
+                p:checkDuringInit="false"
+                p:httpServletRequestSupplier-ref="shibboleth.RemotedHttpServletRequestSupplier"
+                p:parser-ref="shibboleth.ParserPool"
+                p:keyInfoResolver-ref="shibboleth.KeyInfoCredentialResolver" />
+        </constructor-arg>
+        <property name="errorEvent">
+            <util:constant static-field="org.opensaml.profile.action.EventIds.INVALID_MESSAGE" />
+        </property>
+    </bean>
+
 </beans>
diff --git a/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/post/post-beans.xml b/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/post/post-beans.xml
index accc7e1..cda1544 100644
--- a/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/post/post-beans.xml
+++ b/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/post/post-beans.xml
@@ -20,4 +20,15 @@
         </constructor-arg>
     </bean>
 
+    <bean id="CheckSignature" class="net.shibboleth.sp.profile.impl.WebFlowMessageHandlerAdaptor" scope="prototype"
+            c:executionDirection="INBOUND"
+            p:activationCondition-ref="NotIgnoreRequestSignaturesPredicate">
+        <constructor-arg>
+            <bean class="org.opensaml.saml.common.binding.security.impl.SAMLProtocolMessageXMLSignatureSecurityHandler" scope="prototype" />
+        </constructor-arg>
+        <property name="errorEvent">
+            <util:constant static-field="org.opensaml.profile.action.EventIds.INVALID_MESSAGE" />
+        </property>
+    </bean>
+
 </beans>
diff --git a/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/redirect/redirect-beans.xml b/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/redirect/redirect-beans.xml
index cdd5e41..d226249 100644
--- a/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/redirect/redirect-beans.xml
+++ b/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/redirect/redirect-beans.xml
@@ -20,4 +20,17 @@
         </constructor-arg>
     </bean>
 
+    <bean id="CheckSignature" class="net.shibboleth.sp.profile.impl.WebFlowMessageHandlerAdaptor" scope="prototype"
+            c:executionDirection="INBOUND"
+            p:activationCondition-ref="NotIgnoreRequestSignaturesPredicate">
+        <constructor-arg>
+            <bean class="org.opensaml.saml.saml2.binding.security.impl.SAML2HTTPRedirectDeflateSignatureSecurityHandler" scope="prototype"
+                p:checkDuringInit="false"
+                p:httpServletRequestSupplier-ref="shibboleth.RemotedHttpServletRequestSupplier" />
+        </constructor-arg>
+        <property name="errorEvent">
+            <util:constant static-field="org.opensaml.profile.action.EventIds.INVALID_MESSAGE" />
+        </property>
+    </bean>
+
 </beans>
diff --git a/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/saml2-beans.xml b/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/saml2-beans.xml
index c501bca..9fb5eb3 100644
--- a/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/saml2-beans.xml
+++ b/sp-saml-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/sp/logout/consumer/saml2/saml2-beans.xml
@@ -119,31 +119,6 @@
         </constructor-arg>
     </bean>
 
-    <bean id="CheckSignature" class="net.shibboleth.sp.profile.impl.WebFlowMessageHandlerAdaptor" scope="prototype"
-            c:executionDirection="INBOUND"
-            p:activationCondition-ref="NotIgnoreRequestSignaturesPredicate">
-        <constructor-arg>
-            <bean class="org.opensaml.messaging.handler.impl.BasicMessageHandlerChain">
-                <property name="handlers">
-                    <list>
-                        <bean class="org.opensaml.saml.saml2.binding.security.impl.SAML2HTTPRedirectDeflateSignatureSecurityHandler" scope="prototype"
-                            p:checkDuringInit="false"
-                            p:httpServletRequestSupplier-ref="shibboleth.RemotedHttpServletRequestSupplier" />
-                        <bean class="org.opensaml.saml.common.binding.security.impl.SAMLProtocolMessageXMLSignatureSecurityHandler" scope="prototype" />
-                        <bean class="org.opensaml.saml.saml2.binding.security.impl.SAML2HTTPPostSimpleSignSecurityHandler" scope="prototype"
-                            p:checkDuringInit="false"
-                            p:httpServletRequestSupplier-ref="shibboleth.RemotedHttpServletRequestSupplier"
-                            p:parser-ref="shibboleth.ParserPool"
-                            p:keyInfoResolver-ref="shibboleth.KeyInfoCredentialResolver" />
-                    </list>
-                </property>
-             </bean>
-        </constructor-arg>
-        <property name="errorEvent">
-            <util:constant static-field="org.opensaml.profile.action.EventIds.INVALID_MESSAGE" />
-        </property>
-    </bean>
-
     <bean id="InboundEntityIDLookup" parent="shibboleth.Functions.Compose">
         <constructor-arg name="g">
             <bean class="org.opensaml.saml.common.messaging.context.navigate.SAMLEntityIDFunction" />

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list