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

Bug Fix: SAML Response Initialize Arguments Passed in the Wrong Order #198

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

chris-clifford
Copy link
Contributor

This fixes an issue in the SamlIdp::Controller#encode_authn_response method where arguments where being passed in the wrong order. This issue was introduced in v0.15.0.

In the call to SamlResponse#initialize the value of false for signed_message_opts was, by default, getting passed as the argument for signed_assertion_opts which caused SAML Responses to be generated without a signed assertion.

This wasn't caught in the tests because signed assertions were not checked when validating the SAML response, so a test was added to confirm that the assertion is being signed by default.

This could present a potential security concern, as SAML assertions are typically signed by default. It is expected that SAML Service Providers (SPs) validate these signatures. However, if a user of this gem upgrades to version 0.15.0 and mistakenly assumes that the assertion signature continues to be transmitted, this could lead to a potential security vulnerability.

@Zogoo Zogoo self-requested a review January 3, 2024 17:59
@Zogoo
Copy link
Collaborator

Zogoo commented Jan 3, 2024

@chris-clifford can you update your branch with the latest master branch? That should fix the test.

Copy link
Collaborator

@Zogoo Zogoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Zogoo Zogoo added the bug label Jan 3, 2024
@Zogoo Zogoo merged commit c7cf1b6 into saml-idp:master Jan 4, 2024
12 of 14 checks passed
@Zogoo
Copy link
Collaborator

Zogoo commented Jan 4, 2024

@jphenow I think we need to release a minor version with this bug fix (current master branch). Could you please take a look at this PR and the latest master branch and release a new minor version?

@jphenow
Copy link
Collaborator

jphenow commented Jan 5, 2024

v0.16.0 released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants