Skip to content

RelayState max length not respected #10227

Closed

Description

@evtr

Describe the bug

According to 3.5.3 in the specification
https://docs.oasis-open.org/security/saml/v2.0/saml-bindings-2.0-os.pdf
"RelayState data MAY be included with a SAML protocol message transmitted with this binding. The valueMUST NOT exceed 80 bytes in length and SHOULD be integrity protected by the entity creating themessage independent of any other protections that may or may not exist during message transmission"
Keycloak does not respect this.

Version

17.0.0

Expected behavior

Keycloak should respect the length restriction.

Actual behavior

The relay state length restriction is not enforced

How to Reproduce?

Test will be provided

Anything else?

No response

Activity

  1. added
    kind/bug
    on Feb 15, 2022
  2. added
    area/saml
    on Feb 16, 2022
  3. ahus1 commented on Apr 12, 2022

    @ahus1
    Member

    There is a community PR #10231 open that requires a review.

    I see two people voted "thumbs up" for this issue: A review would include (but wouldn't be limited to) that the implementation aligns with the specification, and if people think it might break existing implementations. Thanks!

  4. self-assigned this
    on Apr 12, 2022
  5. added a commit that references this issue on Sep 6, 2022
    4469bdc
  6. added this to the 20.0.0 milestone on Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/samlkind/bugstatus/triage

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions