Skip to content

Commit

Permalink
Bug 1056 - blacklist MD5 in incoming aggregates
Browse files Browse the repository at this point in the history
Refactor so that the blacklisting happens in a parent bean.
  • Loading branch information
iay committed Nov 12, 2013
1 parent a0c8177 commit 45ff25f
Show file tree
Hide file tree
Showing 31 changed files with 56 additions and 68 deletions.
3 changes: 1 addition & 2 deletions mdx/at_aconet/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@
<!--
Check signing signature.
-->
<bean id="at_aconet_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="at_aconet_checkSignature" parent="XMLSignatureValidationStage"
p:id="at_aconet_checkSignature">
<property name="verificationCertificate" ref="at_aconet_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/au_aaf/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
<!--
Check signing signature.
-->
<bean id="au_aaf_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="au_aaf_checkSignature" parent="XMLSignatureValidationStage"
p:id="au_aaf_checkSignature">
<property name="verificationCertificate" ref="au_aaf_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/be_belnet/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
<!--
Check signing signature.
-->
<bean id="be_belnet_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="be_belnet_checkSignature" parent="XMLSignatureValidationStage"
p:id="be_belnet_checkSignature">
<property name="verificationCertificate" ref="be_belnet_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/br_cafe/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
<!--
Check signing signature.
-->
<bean id="br_cafe_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="br_cafe_checkSignature" parent="XMLSignatureValidationStage"
p:id="br_cafe_checkSignature">
<property name="verificationCertificate" ref="br_cafe_signingCertificate"/>
</bean>
Expand Down
6 changes: 2 additions & 4 deletions mdx/ca_caf/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@
<!--
Check signing signature.
-->
<bean id="ca_caf_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="ca_caf_checkSignature" parent="XMLSignatureValidationStage"
p:id="ca_caf_checkSignature">
<property name="verificationCertificate" ref="ca_caf_signingCertificate"/>
</bean>
Expand All @@ -86,8 +85,7 @@
<!--
Check "cafshib" signing signature.
-->
<bean id="ca_caf_cafShibCheckSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="ca_caf_cafShibCheckSignature" parent="XMLSignatureValidationStage"
p:id="ca_caf_checkSignature">
<property name="verificationCertificate" ref="ca_caf_cafShibSigningCertificate"/>
</bean>
Expand Down
6 changes: 2 additions & 4 deletions mdx/ch_switchaai/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,15 @@
<!--
Check against federation signature.
-->
<bean id="ch_switchaai_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="ch_switchaai_checkSignature" parent="XMLSignatureValidationStage"
p:id="ch_switchaai_checkSignature">
<property name="verificationCertificate" ref="ch_switchaai_signingCertificate"/>
</bean>

<!--
Check against federation signature.
-->
<bean id="ch_switchaai_checkInterfedSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="ch_switchaai_checkInterfedSignature" parent="XMLSignatureValidationStage"
p:id="ch_switchaai_checkInterfedSignature">
<property name="verificationCertificate" ref="ch_switchaai_interfedSigningCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/cl_cofre/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
<!--
Check signing signature.
-->
<bean id="cl_cofre_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="cl_cofre_checkSignature" parent="XMLSignatureValidationStage"
p:id="cl_cofre_checkSignature">
<property name="verificationCertificate" ref="cl_cofre_signingCertificate"/>
</bean>
Expand Down
22 changes: 22 additions & 0 deletions mdx/common-beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,28 @@
<bean id="CompositeStage" abstract="true" parent="stage_parent"
class="net.shibboleth.metadata.pipeline.CompositeStage"/>

<!--
XMLSignatureValidationStage
Parent for XML Signature validation stages.
Applies global algorithm blacklists. For values, see:
http://www.w3.org/TR/xmlsec-algorithms/
-->
<bean id="XMLSignatureValidationStage" abstract="true" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage">
<property name="blacklistedDigests">
<list>
<value>http://www.w3.org/2001/04/xmldsig-more#md5</value>
</list>
</property>
<property name="blacklistedSignatureMethods">
<list>
<value>http://www.w3.org/2001/04/xmldsig-more#rsa-md5</value>
</list>
</property>
</bean>

<!--
XSLTransformationStage
Expand Down
3 changes: 1 addition & 2 deletions mdx/cz_eduid/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@
<!--
Check the signature on a document.
-->
<bean id="cz_eduid_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="cz_eduid_checkSignature" parent="XMLSignatureValidationStage"
p:id="cz_eduid_checkSignature">
<property name="verificationCertificate" ref="cz_eduid_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/de_dfnaai/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
<!--
Check signing signature.
-->
<bean id="de_dfnaai_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="de_dfnaai_checkSignature" parent="XMLSignatureValidationStage"
p:id="de_dfnaai_checkSignature">
<property name="verificationCertificate" ref="de_dfnaai_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/dk_wayf/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@
<!--
Check signing signature.
-->
<bean id="dk_wayf_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="dk_wayf_checkSignature" parent="XMLSignatureValidationStage"
p:id="dk_wayf_checkSignature">
<property name="verificationCertificate" ref="dk_wayf_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/es_sir/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
<!--
Check signing signature.
-->
<bean id="es_sir_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="es_sir_checkSignature" parent="XMLSignatureValidationStage"
p:id="es_sir_checkSignature">
<property name="verificationCertificate" ref="es_sir_signingCertificate"/>
</bean>
Expand Down
6 changes: 2 additions & 4 deletions mdx/fi_haka/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
<!--
Check federation signature.
-->
<bean id="fi_haka_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="fi_haka_checkSignature" parent="XMLSignatureValidationStage"
p:id="fi_haka_checkSignature">
<property name="verificationCertificate" ref="fi_haka_signingCertificate"/>
</bean>
Expand All @@ -82,8 +81,7 @@
<!--
Check eduGAIN signature.
-->
<bean id="fi_haka_checkEdugainSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="fi_haka_checkEdugainSignature" parent="XMLSignatureValidationStage"
p:id="fi_haka_checkEdugainSignature">
<property name="verificationCertificate" ref="fi_haka_edugainSigningCertificate"/>
</bean>
Expand Down
6 changes: 2 additions & 4 deletions mdx/fr_renater/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@
<!--
Check signing signature.
-->
<bean id="fr_renater_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="fr_renater_checkSignature" parent="XMLSignatureValidationStage"
p:id="fr_renater_checkSignature">
<property name="verificationCertificate" ref="fr_renater_signingCertificate"/>
</bean>
Expand All @@ -98,8 +97,7 @@
<!--
Check eduGAIN signing signature.
-->
<bean id="fr_renater_edugainCheckSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="fr_renater_edugainCheckSignature" parent="XMLSignatureValidationStage"
p:id="fr_renater_edugainCheckSignature">
<property name="verificationCertificate" ref="fr_renater_edugainSigningCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/gr_grnet/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
<!--
Check signing signature.
-->
<bean id="gr_grnet_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="gr_grnet_checkSignature" parent="XMLSignatureValidationStage"
p:id="gr_grnet_checkSignature">
<property name="verificationCertificate" ref="gr_grnet_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/hr_eduhr/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
<!--
Check signing signature.
-->
<bean id="hr_eduhr_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="hr_eduhr_checkSignature" parent="XMLSignatureValidationStage"
p:id="hr_eduhr_checkSignature">
<property name="verificationCertificate" ref="hr_eduhr_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/hu_eduid/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
<!--
Check the signature on a document.
-->
<bean id="hu_eduid_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="hu_eduid_checkSignature" parent="XMLSignatureValidationStage"
p:id="hu_eduid_checkSignature">
<property name="verificationCertificate" ref="hu_eduid_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/ie_edugate/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
<!--
Check the signature on a document.
-->
<bean id="ie_edugate_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="ie_edugate_checkSignature" parent="XMLSignatureValidationStage"
p:id="ie_edugate_checkSignature">
<property name="verificationCertificate" ref="ie_edugate_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/int_edugain/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@
<!--
Check a signature against the eduGAIN signing certificate.
-->
<bean id="int_edugain_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="int_edugain_checkSignature" parent="XMLSignatureValidationStage"
p:id="int_edugain_checkSignature">
<property name="verificationCertificate" ref="int_edugain_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/it_idem/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
<!--
Check signing signature.
-->
<bean id="it_idem_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="it_idem_checkSignature" parent="XMLSignatureValidationStage"
p:id="it_idem_checkSignature">
<property name="verificationCertificate" ref="it_idem_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/jp_gakunin/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
<!--
Check signing signature.
-->
<bean id="jp_gakunin_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="jp_gakunin_checkSignature" parent="XMLSignatureValidationStage"
p:id="jp_gakunin_checkSignature">
<property name="verificationCertificate" ref="jp_gakunin_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/lv_laife/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@
<!--
Check signing signature.
-->
<bean id="lv_laife_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="lv_laife_checkSignature" parent="XMLSignatureValidationStage"
p:id="lv_laife_checkSignature">
<property name="verificationCertificate" ref="lv_laife_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/nl_surfconext/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
<!--
Check the signature on a document.
-->
<bean id="nl_surfconext_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="nl_surfconext_checkSignature" parent="XMLSignatureValidationStage"
p:id="nl_surfnet_checkSignature">
<property name="verificationCertificate" ref="nl_surfconext_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/nl_surfnet/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
<!--
Check the signature on a document.
-->
<bean id="nl_surfnet_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="nl_surfnet_checkSignature" parent="XMLSignatureValidationStage"
p:id="nl_surfnet_checkSignature">
<property name="verificationCertificate" ref="nl_surfnet_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/no_feide/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@
<!--
Check signing signature.
-->
<bean id="no_feide_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="no_feide_checkSignature" parent="XMLSignatureValidationStage"
p:id="no_feide_checkSignature">
<property name="verificationCertificate" ref="no_feide_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/nz_tuakiri/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
<!--
Check signing signature.
-->
<bean id="nz_tuakiri_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="nz_tuakiri_checkSignature" parent="XMLSignatureValidationStage"
p:id="nz_tuakiri_checkSignature">
<property name="verificationCertificate" ref="nz_tuakiri_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/se_swamid/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@
<!--
Check signing signature.
-->
<bean id="se_swamid_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="se_swamid_checkSignature" parent="XMLSignatureValidationStage"
p:id="se_swamid_checkSignature">
<property name="verificationCertificate" ref="se_swamid_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/si_arnes/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
<!--
Check ARNES signing signature.
-->
<bean id="si_arnes_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="si_arnes_checkSignature" parent="XMLSignatureValidationStage"
p:id="si_arnes_checkSignature">
<property name="verificationCertificate" ref="si_arnes_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/uk/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@
<!--
Check the signature on a document.
-->
<bean id="uk_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="uk_checkSignature" parent="XMLSignatureValidationStage"
p:id="uk_checkSignature">
<property name="verificationCertificate" ref="uk_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/uk_eduserv/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
<!--
Check the signature on a document.
-->
<bean id="uk_eduserv_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="uk_eduserv_checkSignature" parent="XMLSignatureValidationStage"
p:id="uk_eduserv_checkSignature">
<property name="verificationCertificate" ref="uk_eduserv_signingCertificate"/>
</bean>
Expand Down
3 changes: 1 addition & 2 deletions mdx/us_incommon/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
<!--
Check InCommon signing signature.
-->
<bean id="us_incommon_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
<bean id="us_incommon_checkSignature" parent="XMLSignatureValidationStage"
p:id="us_incommon_checkSignature">
<property name="verificationCertificate" ref="us_incommon_signingCertificate"/>
</bean>
Expand Down

0 comments on commit 45ff25f

Please sign in to comment.