[java-identity-provider] branch maint-5.1 updated: OSJ-427: Simple signature verification fails to detect parameter ...
Brent Putman
putmanb at georgetown.edu
Mon Mar 24 15:54:30 UTC 2025
This is an automated email from the git hooks/post-receive script.
putmanb pushed a commit to branch maint-5.1
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=4113f1fe0f76a85b879d8d51ccdd6622c7671ba7
The following commit(s) were added to refs/heads/maint-5.1 by this push:
new 4113f1fe0 OSJ-427: Simple signature verification fails to detect parameter ...
4113f1fe0 is described below
commit 4113f1fe0f76a85b879d8d51ccdd6622c7671ba7
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Mon Mar 24 11:53:20 2025 -0400
OSJ-427: Simple signature verification fails to detect parameter ...
HTTP request validator for SAML AuthN should require SAMLResponse not
SAMLRequest.
---
.../net/shibboleth/idp/conf/mvc-beans.xml | 2 +-
.../shibboleth/idp/conf/saml-binding-config.xml | 30 ++++++++++++++++++++++
.../idp/flows/authn/saml-authn-beans.xml | 3 ++-
3 files changed, 33 insertions(+), 2 deletions(-)
diff --git a/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/mvc-beans.xml b/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/mvc-beans.xml
index df230f3cb..dafb78809 100644
--- a/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/mvc-beans.xml
+++ b/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/mvc-beans.xml
@@ -65,7 +65,7 @@
<bean id="shibboleth.RaiseErrorController" class="net.shibboleth.shared.spring.error.ErrorRaisingController" />
<util:map id="shibboleth.SAMLAuthnPOSTController.HttpServletRequestValidatorMap">
- <entry key="POST" value-ref="shibboleth.HttpServletRequestValidator.BasicParams.SAML2.POST" />
+ <entry key="POST" value-ref="shibboleth.HttpServletRequestValidator.BasicParams.SAML2.POST.Response" />
</util:map>
<!-- Exception handling -->
diff --git a/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/saml-binding-config.xml b/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/saml-binding-config.xml
index f0aed3fec..3500b7402 100644
--- a/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/saml-binding-config.xml
+++ b/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/saml-binding-config.xml
@@ -318,6 +318,36 @@
</set>
</property>
</bean>
+
+ <bean id="shibboleth.HttpServletRequestValidator.BasicParams.SAML2.POST.Response"
+ parent="shibboleth.HttpServletRequestValidator.BasicParams.SAML.Abstract">
+ <property name="allowedParameters">
+ <set>
+ <value>SAMLResponse</value>
+ <value>RelayState</value>
+ </set>
+ </property>
+ <property name="requiredParameters">
+ <set>
+ <value>SAMLResponse</value>
+ </set>
+ </property>
+ <property name="uniqueParameters">
+ <set>
+ <value>SAMLRequest</value>
+ <value>SAMLResponse</value>
+ <value>RelayState</value>
+ </set>
+ </property>
+ <property name="mutuallyExclusiveParameters">
+ <set>
+ <set>
+ <value>SAMLRequest</value>
+ <value>SAMLResponse</value>
+ </set>
+ </set>
+ </property>
+ </bean>
<bean id="shibboleth.HttpServletRequestValidator.BasicParams.SAML2.POST.RequestOrResponse"
parent="shibboleth.HttpServletRequestValidator.BasicParams.SAML2.POST">
diff --git a/idp-conf-impl/src/main/resources/net/shibboleth/idp/flows/authn/saml-authn-beans.xml b/idp-conf-impl/src/main/resources/net/shibboleth/idp/flows/authn/saml-authn-beans.xml
index e6d96352b..730e4d3cd 100644
--- a/idp-conf-impl/src/main/resources/net/shibboleth/idp/flows/authn/saml-authn-beans.xml
+++ b/idp-conf-impl/src/main/resources/net/shibboleth/idp/flows/authn/saml-authn-beans.xml
@@ -199,7 +199,8 @@
p:messageEncoderFactory-ref="messageEncoderFactory"
p:messageHandler="#{getObject('shibboleth.BindingSpecificMessageHandler')}" />
- <!-- This is mostly a placeholder in case we get forced to support other bindings at some point. -->
+ <!-- This is mostly a placeholder in case we get forced to support other bindings at some point.
+ NOTE: If do support other bindings, need to also update HTTP validators defined in mvc-beans.xml. -->
<bean id="messageDecoderFactory" class="net.shibboleth.idp.saml.profile.impl.SpringAwareMessageDecoderFactory">
<property name="beanMappings">
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list