This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org
Difference between revisions of "SAML Security Cheat Sheet"
(→Authors and Primary Editors) |
(edits from Gunnar Peterson) |
||
Line 82: | Line 82: | ||
− | = First Mile Considerations = | + | = First and Last Mile Considerations = |
+ | |||
+ | The SAML protocol is rarely the vector of choice, though its important to have cheatsheets to make sure that this is robust. The various endpoints are more targeted, so how the SAML token is generated and how it is consumed are both important in practice. | ||
+ | |||
+ | == First Mile Considerations == | ||
* Strong Authentication options for generating the SAML token | * Strong Authentication options for generating the SAML token | ||
* IDP validation (which IDP mints the token) | * IDP validation (which IDP mints the token) | ||
− | |||
= Last Mile Considerations = | = Last Mile Considerations = |
Revision as of 01:35, 1 September 2015
Last revision (mm/dd/yy): 09/1/2015 Introduction
The Security Assertion Markup Language (SAML) is an open standard for exchanging authorization and authentication information. The Web Browser SAML/SSO Profile with Redirect/POST bindings is one of the most common SSO implementation. This cheatsheet will focus primarily on that profile.
Validate Message Confidentiality and Integrity
Validate Protocol UsageThis is a common area for security gaps - see Google SSO vulnerability (AVANTSSAR 2008) for a real life example. Their SSO profile was vulnerable to a Man-in-the-middle attack from a malicious SP (Service Provider). The SSO Web Browser Profile is most susceptible to attacks from trusted partners. This particular security flaw was exposed because the SAML Response did not contain all of the required data elements necessary for a secure message exchange. Following the SAML Profile usage requirements for AuthnRequest (4.1.4.1) and Response (4.1.4.2) will help counter this attack. The AVANTSSAR team suggested the following data elements should be required:
Further vulnerabilities in SAML implementations were described in 2012 (On Breaking SAML: Be Whoever You Want to Be). The following recommendations were proposed in response (Secure SAML validation to prevent XML signature wrapping attacks):
Validate Protocol Processing RulesThis is another common area for security gaps simply because of the vast number of steps to assert. Processing a SAML response is an expensive operation but all steps must be validated.
Validate Binding Implementation
Validate Security CountermeasuresRevisit each security threat that exists within the SAML Security document and assert you have applied the appropriate countermeasures for threats that may exist for your particular implementation. Additional countermeasures considererd should include:
Need an architectural diagram? The SAML technical overview contains the most complete diagrams. For the Web Browser SSO Profile with Redirect/POST bindings refer to the section 4.1.3. In fact, of all the SAML documentation, the technical overview is the most valuable from a high-level perspective.
First and Last Mile ConsiderationsThe SAML protocol is rarely the vector of choice, though its important to have cheatsheets to make sure that this is robust. The various endpoints are more targeted, so how the SAML token is generated and how it is consumed are both important in practice. First Mile Considerations
Last Mile Considerations
Input ValidationJust because SAML is a security protocol does not mean that input validation goes away.
Authors and Primary Editors
Other Cheatsheets |