Skip to content

InResponseTo not validated when AllowIDPInitiated is set #3

Description

@aashh

When AllowIDPInitiated is true, the InResponseTo validation is not performed -- even for SP-initiated flows that have an InResponseTo value. This means enabling IdP-initiated SSO also disables request binding validation for SP-initiated flows, allowing assertion replay attacks.

The fix: only skip validation when InResponseTo is empty AND AllowIDPInitiated is true (i.e., a genuine unsolicited response). When InResponseTo is present and non-empty, validate it against tracked request IDs regardless of the flag.

Some IdPs (notably Rippling) set InResponseTo to arbitrary values on IdP-initiated flows. The existing ValidateRequestID hook handles that case.

Fix: fix/issue-03

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions