Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. ruby-saml
  4. ›
  5. CVE-2017-11428

CVE-2017-11428: Authentication bypass via incorrect DOM traversal and canonicalization

April 17, 2019 (updated October 9, 2019)

Some XML DOM traversal and canonicalization APIs may be inconsistent in handling of comments within XML nodes. Incorrect use of these APIs by some SAML libraries results in incorrect parsing of the inner text of XML nodes such that any inner text after the comment is lost prior to cryptographically signing the SAML message. Text after the comment therefore has no impact on the signature on the SAML message. A remote attacker can modify SAML content for a SAML service provider without invalidating the cryptographic signature, which may allow attackers to bypass primary authentication for the affected SAML service provider

References

  • cwe.mitre.org/data/definitions/287.html
  • duo.com/blog/duo-finds-saml-vulnerabilities-affecting-multiple-implementations
  • github.com/onelogin/ruby-saml/commit/048a544730930f86e46804387a6b6fad50d8176f
  • github.com/onelogin/ruby-saml/releases/tag/v1.6.2
  • shibboleth.net/community/advisories/secadv_20180112.txt
  • www.kb.cert.org/vuls/id/475445

Code Behaviors & Features

Detect and mitigate CVE-2017-11428 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.6.2

Fixed versions

  • 1.6.2

Solution

Upgrade to 1.6.2 or above

Impact 7.5 HIGH

AV:N/AC:L/Au:N/C:P/I:P/A:P

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

gem/ruby-saml/CVE-2017-11428.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:15 +0000.