Skip to content

Commit 42beb0b

Browse files
committed
Clarify IdP-initiated SSO section: specify login CSRF, remove MITM reference #1876
1 parent 8ca4b58 commit 42beb0b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cheatsheets/SAML_Security_Cheat_Sheet.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ Need an architectural diagram? The [SAML technical overview](https://www.oasis-o
9393

9494
## Unsolicited Response (ie. IdP Initiated SSO) Considerations for Service Providers
9595

96-
Unsolicited Response is inherently [less secure](https://www.identityserver.com/articles/the-dangers-of-saml-idp-initiated-sso) by design due to the lack of [CSRF](https://owasp.org/www-community/attacks/csrf) protection. However, it is supported by many due to the backwards compatibility feature of SAML 1.1. The general security recommendation is to not support this type of authentication, but if it must be enabled, the following steps (in addition to everything mentioned above) should help you secure this flow:
96+
Unsolicited Response is inherently less secure by design due to the lack of **login [CSRF](https://owasp.org/www-community/attacks/csrf)** protection. This limitation arises because the Service Provider (SP) has no opportunity to create a pre-login session or verify that the authentication request was intentionally initiated by the user.
97+
98+
While this design does not make IdP-initiated SSO uniquely vulnerable to Man-in-the-Middle (MITM) attacks—those risks apply equally to SP-initiated flows if transport security is compromised—it does remove an important layer of login intent validation.
99+
100+
Despite these concerns, IdP-initiated SSO remains supported for backward compatibility (notably with SAML 1.1). If it must be enabled, the following steps (in addition to those mentioned above) should help secure this flow:
101+
97102

98103
- Follow the validation process mentioned in [SAML Profiles (section 4.1.5)](https://docs.oasis-open.org/security/saml/v2.0/saml-profiles-2.0-os.pdf). This step will help counter the following attacks:
99104
- Replay (6.1.2)

0 commit comments

Comments
 (0)