CRITICAL10.0
GHSA-jw9c-mfg7-9rx2
SAML authentication bypass via Incorrect XPath selector
Quick fix
GHSA-jw9c-mfg7-9rx2 — ruby-saml: upgrade to the fixed version with the command below.
bundle update ruby-samlDetails
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 (ahacker1@securesaml.com)
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2[WEB]
- https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-cvp8-5r8g-fhvq[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2024-45409[ADVISORY]
- https://github.com/SAML-Toolkits/ruby-saml/commit/1ec5392bc506fe43a02dbb66b68741051c5ffeae[WEB]
- https://github.com/SAML-Toolkits/ruby-saml/commit/4865d030cae9705ee5cdb12415c654c634093ae7[WEB]
- https://github.com/omniauth/omniauth-saml/commit/4274e9d57e65f2dcaae4aa3b2accf831494f2ddd[WEB]
- https://github.com/SAML-Toolkits/ruby-saml[PACKAGE]
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/CVE-2024-45409.yml[WEB]
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/GHSA-cvp8-5r8g-fhvq.yml[WEB]
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2024-45409.yml[WEB]