Security considerations for Ruby SAML
masterWhen implementing SAML with this library, keep the following security responsibilities in mind:
- IdP Metadata URL Validation: Ruby SAML does not validate if a supplied IdP Metadata URL is correct or safe. You must ensure the URL is from a trusted source.
- Replay Attack Mitigation: While the library provides tools to help, it is the developer's responsibility to implement the logic required to prevent attackers from reusing intercepted SAML assertions.
- Nokogiri Security: You may see security warnings regarding the
Nokogiridependency. These can be ignored; Ruby SAML uses Nokogiri safely by disablingDTDLOADand enablingNONEToptions.