ADVISORIES

GitHub Advisory Database

GHSA-jw9c-mfg7-9rx2

SAML authentication bypass via Incorrect XPath selector

Details

Ruby-SAML in <= 12.2 and 1.13.0 <= 1.16.0 does not properly verify the signature of the SAML Response. An unauthenticated attacker with access to any signed saml document (by the IdP) can thus forge a SAML Response/Assertion with arbitrary contents. This would allow the attacker to log in as arbitrary user within the vulnerable system.

This vulnerability was reported by ahacker1 of SecureSAML ([email protected])

Affected packages

EcosystemPackageAffected versions
RubyGemsruby-saml
All versions before 1.12.3 (fixed in 1.12.3)
RubyGemsruby-saml
From 1.13.0 before 1.17.0 (fixed in 1.17.0)

References