Executive Summary

Title Multiple SAML libraries may allow authentication bypass via incorrect XML canonicalization and DOM traversal
Name VU#475445 First vendor Publication 2018-02-27
Vendor VU-CERT Last vendor Modification 2018-06-05
Severity (Vendor) N/A Revision M

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:L/Au:N/C:P/I:P/A:P)
Cvss Base Score 7.5 Attack Range Network
Cvss Impact Score 6.4 Attack Complexity Low
Cvss Expoit Score 10 Authentication None Required
Calculate full CVSS 2.0 Vectors scores


Vulnerability Note VU#475445

Multiple SAML libraries may allow authentication bypass via incorrect XML canonicalization and DOM traversal

Original Release date: 27 Feb 2018 | Last revised: 05 Jun 2018


Multiple SAML libraries may incorrectly utilize the results of XML DOM traversal and canonicalization APIs in such a way that an attacker may be able to manipulate the SAML data without invalidating the cryptographic signature, allowing the attack to potentially bypass authentication to SAML service providers.


CWE-287: Improper Authentication

Security Assertion Markup Language (SAML) is an XML-based markup language for security assertions regarding authentication and permissions, most commonly used for single sign-on (SSO) services.

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

The following CVEs are assigned:

CVE-2017-11427 - OneLogin’s "python-saml"
CVE-2017-11428 - OneLogin’s "ruby-saml"
CVE-2017-11429 - Clever’s "saml2-js"
CVE-2017-11430 - "OmniAuth-SAML"
CVE-2018-0489 - Shibboleth openSAML C++
CVE-2018-5387 - Wizkunde SAMLBase

More information is available in the researcher's blog post.


By modifying SAML content without invalidating the cryptographic signature, a remote, unauthenticated attacker may be able to bypass primary authentication for an affected SAML service provider.


Apply updates

Affected SAML service providers should update software to utilize the latest releases of affected SAML libraries. Please see the vendor list below for more information.

Vendor Information (Learn More)

VendorStatusDate NotifiedDate Updated
Clever, Inc.Affected24 Jan 201826 Feb 2018
Duo SecurityAffected-28 Feb 2018
OmniAuthAffected24 Jan 201806 Feb 2018
OneLogin IncAffected24 Jan 201827 Feb 2018
Pulse SecureAffected-28 Mar 2018
Shibboleth ConsortiumAffected24 Jan 201814 Mar 2018
Wizkunde B.V.Affected-05 Apr 2018
AssureBridgeNot Affected-27 Feb 2018
BoxNot Affected23 Feb 201828 Feb 2018
CA TechnologiesNot Affected-07 Mar 2018
CiscoNot Affected23 Feb 201805 Jun 2018
ComponentSpace Pty LtdNot Affected-28 Feb 2018
Entr'ouvertNot Affected24 Jan 201828 Feb 2018
ForgeRockNot Affected-07 Mar 2018
GitHubNot Affected24 Jan 201801 Mar 2018
If you are a vendor and your product is affected, let us know.View More »

CVSS Metrics (Learn More)



  • https://duo.com/blog/duo-finds-saml-vulnerabilities-affecting-multiple-implementations
  • https://duo.com/labs/psa/duo-psa-2017-003
  • https://cwe.mitre.org/data/definitions/287.html


Thanks to Kelby Ludwig of Duo Security for reporting this vulnerability.

This document was written by Garret Wassermann.

Other Information

  • CVE IDs:CVE-2017-11427CVE-2017-11428CVE-2017-11429CVE-2017-11430CVE-2018-0489CVE-2018-5387
  • Date Public:27 Feb 2018
  • Date First Published:27 Feb 2018
  • Date Last Updated:05 Jun 2018
  • Document Revision:120


If you have feedback, comments, or additional information about this vulnerability, please send us email.

Original Source

Url : http://www.kb.cert.org/vuls/id/475445

CWE : Common Weakness Enumeration

% Id Name
83 % CWE-287 Improper Authentication
17 % CWE-347 Improper Verification of Cryptographic Signature

CPE : Common Platform Enumeration

Application 34
Application 1
Application 1
Application 1
Application 2
Application 1
Application 1
Os 3

Nessus® Vulnerability Scanner

Date Description
2018-02-28 Name : The remote Debian host is missing a security-related update.
File : debian_DSA-4126.nasl - Type : ACT_GATHER_INFO
2018-02-28 Name : The remote FreeBSD host is missing one or more security-related updates.
File : freebsd_pkg_224382401bd011e8a2ec6cc21735f730.nasl - Type : ACT_GATHER_INFO

Alert History

If you want to see full details history, please login or register.
Date Informations
2019-06-04 12:12:23
  • Multiple Updates
2018-07-24 21:21:46
  • Multiple Updates
2018-06-05 21:18:57
  • Multiple Updates
2018-05-19 05:17:21
  • Multiple Updates
2018-04-05 17:19:10
  • Multiple Updates
2018-03-29 05:17:32
  • Multiple Updates
2018-03-23 17:21:36
  • Multiple Updates
2018-03-19 17:18:37
  • Multiple Updates
2018-03-16 21:18:45
  • Multiple Updates
2018-03-14 17:18:15
  • Multiple Updates
2018-03-08 00:19:18
  • Multiple Updates
2018-03-07 21:19:37
  • Multiple Updates
2018-03-02 17:19:21
  • Multiple Updates
2018-03-01 21:18:44
  • Multiple Updates
2018-02-28 21:19:13
  • Multiple Updates
2018-02-28 00:18:41
  • Multiple Updates
2018-02-27 21:22:18
  • Multiple Updates
2018-02-27 21:19:18
  • Multiple Updates
2018-02-27 17:19:28
  • First insertion