漏洞描述
ruby-saml provides security assertion markup language (SAML) single sign-on (SSO) for Ruby. An authentication bypass vulnerability was found in ruby-saml prior to versions 1.12.4 and 1.18.0 due to a parser differential. ReXML and Nokogiri parse XML differently; the parsers can generate entirely different document structures from the same XML input. That allows an attacker to be able to execute a Signature Wrapping attack. This issue may lead to authentication bypass. Versions 1.12.4 and 1.18.0 fix the issue.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。
参考链接
portswigger.nethttps://portswigger.net/research/saml-roulette-the-hacker-always-wins↗github.bloghttps://github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials/↗about.gitlab.comhttps://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released↗github.bloghttps://github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials↗github.comhttps://github.com/SAML-Toolkits/ruby-saml/commit/e76c5b36bac40aedbf1ba7ffaaf495be63328cd9↗