Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signature verification #15

Merged
merged 4 commits into from
Feb 3, 2022
Merged

Conversation

comawill
Copy link
Contributor

@comawill comawill commented Feb 3, 2022

This PR intends to fix the following flaw in the SAML signature verification process.

hsaml2 maintains a pair of an optional RSA and an optional DSA key.
It may be used under the assumption that one could pass hsam2 an RSA key and an empty slot for the DSA key.

However, this has the effect that the DSA key from the signature itself will be added to the pair of trusted keys.
DSA has precedence over RSA, so the signature validation will be successful if (and only if) one provides a DSA public key matching her own signature.

fisx and others added 4 commits February 3, 2022 11:02
This avoids 'Nothings' and the Monoid can never inject keys from the
signature itself.
This test does no longer work, since the behavior changed
@comawill comawill mentioned this pull request Feb 3, 2022
@dylex dylex merged commit fdbe963 into dylex:master Feb 3, 2022
@comawill comawill deleted the pr/signature_verification branch February 7, 2022 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants