CVE-2025-25291 ruby-saml vulnerable to SAML authentication bypass due to DOCTYPE handling (parser differential)
DOCTYPE 처리로 SAML 인증 우회에 취약한 ruby-saml (parser differential)
설명
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.
ruby-saml은 Ruby에 대한 보안 어설션 마크업 언어(SAML) 싱글 사인온(SSO)을 제공합니다. 인증 우회 취약점은 파서 차이로 인해 버전 1.12.4 및 1.18.0 이전 버전에서 발견되었습니다. ReXML과 Nokogiri는 XML을 다르게 구문 분석한다; 파서는 동일한 XML 입력으로부터 완전히 다른 문서 구조를 생성할 수 있다. 이를 통해 공격자는 Signature Wrapping 공격을 실행할 수 있습니다. 이 문제는 인증 우회로 이어질 수 있습니다. 버전 1.12.4 및 1.18.0은이 문제를 해결합니다.
영향 받는 제품 제품 1개
-
해결 버전 있음
SAML-Toolkits
ruby-saml
영향 받는 버전
- 1.12.4 미만
- 1.13.0 이상 1.18.0 미만
해결 버전
- 1.12.4 이상
- 1.18.0 이상
참고 자료 10건
- about.gitlab.com https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released (새 창)
- github.blog https://github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials (새 창)
- github.com https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-hw46-3hmr-x9xv (새 창)
- github.com https://github.com/SAML-Toolkits/ruby-saml/commit/e76c5b36bac40aedbf1ba7ffaaf495be63328cd9 (새 창)
- github.com https://github.com/SAML-Toolkits/ruby-saml/commit/e9c1cdbd0f9afa467b585de279db0cbd0fb8ae97 (새 창)
- github.com https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.12.4 (새 창)
- github.com https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.0 (새 창)
- github.com https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-4vc4-m8qh-g8jm (새 창)
- portswigger.net https://portswigger.net/research/saml-roulette-the-hacker-always-wins (새 창)
- securitylab.github.com https://securitylab.github.com/advisories/GHSL-2024-329_GHSL-2024-330_ruby-saml (새 창)