Binding SAML responses to their originating requests to prevent replay and session confusion
A valid SAML signature only proves who signed an assertion, not that it belongs to the browser session attempting to use it. Service providers should store each authentication request ID with the browser transaction and verify that the response's InResponseTo value matches it, consuming the ID only once. RelayState should be treated as untrusted input and validated against stored state or an allowlist to avoid open redirects. Unsolicited identity-provider-initiated responses should be rejected unless explicitly needed, and then must pass strict checks on issuer, destination, and audience. After success, a new session should be created and bound to the validated identity and authentication method.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in