CVE-2017-11430: Omniauth saml Authentication Bypass Vulnerability

HIGH
Advisory Identifier: GHSA-94hm-8q65-rmxm
CVSS 7.7
CWE-287
Published
Advisory Summary

CVE-2017-11430 is a HIGH (CVSS 7.7) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Omniauth saml libraries in the RubyGems ecosystem. The issue involves omniauth-saml authentication bypass via incorrect xml canonicalization and dom traversal. Remediation is available by upgrading affected packages to version 1.10.0.

CVE-2017-11430 at a Glance

CVE Identifier CVE-2017-11430
GHSA Identifier GHSA-94hm-8q65-rmxm
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-287: Improper Authentication
Affected Product Omniauth saml
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 7.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2017-11430

To remediate this vulnerability, upgrade all affected Omniauth saml dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

omniauth-saml fixed: 1.10.0
Upgrade omniauth-saml to 1.10.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for omniauth-saml

How to Check if You Are Affected

To determine whether your application is affected by CVE-2017-11430, inspect your project dependencies for Omniauth saml:

inspect dependencies for omniauth-saml

Analyze the terminal output to locate any version of Omniauth saml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.10.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Omniauth saml, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

OmniAuth OmniAuth-SAML 1.9.0 and earlier 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.

CVE-2017-11430 Affected Omniauth saml Versions

1 component(s)
Fixed Versions:
1.10.0
Product / Package Ecosystem Affected Versions Fixed Version
omniauth-saml
RubyGems
< 1.10.0
1.10.0

References

Frequently Asked Questions

What is CVE-2017-11430?
CVE-2017-11430 is a security vulnerability in Omniauth saml involving OmniAuth-SAML authentication bypass via incorrect XML canonicalization and DOM traversal under CWE-287: Improper Authentication.
Which Omniauth saml versions are affected?
Affected versions include releases prior to 1.10.0 across affected packages: omniauth-saml.
What version fixes CVE-2017-11430?
Upgrading to 1.10.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is omniauth-saml affected?
Yes, omniauth-saml is affected in releases prior to 1.10.0. Upgrade your dependency to 1.10.0 or later.
What is the CVSS score of CVE-2017-11430?
CVE-2017-11430 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2017-11430?
CVE-2017-11430 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check RubyGems dependencies for CVE-2017-11430?
Run the dependency tree command: 'inspect dependencies for omniauth-saml'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-94hm-8q65-rmxm",
  "modified" : "2023-08-29T14:57:21Z",
  "published" : "2019-07-05T21:11:43Z",
  "aliases" : [ "CVE-2017-11430" ],
  "summary" : "OmniAuth-SAML authentication bypass via incorrect XML canonicalization and DOM traversal",
  "details" : "OmniAuth OmniAuth-SAML 1.9.0 and earlier 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "omniauth-saml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.10.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-11430"
  }, {
    "type" : "WEB",
    "url" : "https://duo.com/blog/duo-finds-saml-vulnerabilities-affecting-multiple-implementations"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/omniauth/omniauth-saml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/CVE-2017-11430.yml"
  }, {
    "type" : "WEB",
    "url" : "https://www.kb.cert.org/vuls/id/475445"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:27:27Z",
    "nvd_published_at" : null
  }
}