GHSA-5p5w-j3g7-w4wv

Suggest an improvement
Source
https://github.com/advisories/GHSA-5p5w-j3g7-w4wv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/07/GHSA-5p5w-j3g7-w4wv/GHSA-5p5w-j3g7-w4wv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5p5w-j3g7-w4wv
Aliases
  • CVE-2017-11429
Published
2019-07-05T21:11:18Z
Modified
2023-11-08T03:58:49.417767Z
Severity
  • 7.7 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N CVSS Calculator
Summary
Authentication bypass via incorrect XML canonicalization and DOM traversal in saml2-js
Details

Versions of saml2-js prior to 1.12.4 or 2.0.2 are vulnerable to authentication bypass.

The saml2-js library 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.

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

Recommendation

If you use 1.x upgrade to version 1.12.4 or greater If you use 2.x upgrade to version 2.02 or greater

Database specific
{
    "cwe_ids": [
        "CWE-287"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T21:16:53Z",
    "nvd_published_at": null,
    "severity": "MODERATE"
}
References

Affected packages

npm / saml2-js

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.12.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/07/GHSA-5p5w-j3g7-w4wv/GHSA-5p5w-j3g7-w4wv.json"

npm / saml2-js

Package

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.0.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/07/GHSA-5p5w-j3g7-w4wv/GHSA-5p5w-j3g7-w4wv.json"