Update from samael 0.0.19 to 0.0.22#10793
Open
jmpesp wants to merge 2 commits into
Open
Conversation
This update broke a few tests because of samael's new behaviour of removing parts of the XML documents (in a process they call reducing) if they aren't signed. Notably this reducing process includes removing the signature nodes themselves, meaning Nexus cannot check the signature algorithm and reject the deprecated ones. Luckily the ServiceProvider builder now accepts an allowed signature algorithms list, and the values in the enum of allowed algorithms match the existing list we were checking against. There's also a behaviour change: this new version of samael will return a signature error for XML documents with comments. This means that instead of Nexus accepting SAML Responses with comments in them and correctly figuring out the canonicalized content, they will now be rejected, which still keeps us safe from the original vulnerability mentioned by the failing test comments, but could potentially cause an issue if a customer's IDP is sending documents with comments in them. This seems worth the tradeoff as version 0.0.22 contains what looks like a few security related fixes that we should pull in. Fixes oxidecomputer#10702
Contributor
Author
|
I also pushed a test to validate that we reject documents signed with non-allowed signature algorithms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This update broke a few tests because of samael's new behaviour of removing parts of the XML documents (in a process they call reducing) if they aren't signed. Notably this reducing process includes removing the signature nodes themselves, meaning Nexus cannot check the signature algorithm and reject the deprecated ones. Luckily the ServiceProvider builder now accepts an allowed signature algorithms list, and the values in the enum of allowed algorithms match the existing list we were checking against.
There's also a behaviour change: this new version of samael will return a signature error for XML documents with comments. This means that instead of Nexus accepting SAML Responses with comments in them and correctly figuring out the canonicalized content, they will now be rejected, which still keeps us safe from the original vulnerability mentioned by the failing test comments, but could potentially cause an issue if a customer's IDP is sending documents with comments in them. This seems worth the tradeoff as version 0.0.22 contains what looks like a few security related fixes that we should pull in.
Fixes #10702