Vulnerabilities in pkg:nuget/Sustainsys.Saml2

PACKAGE
Advisory Identifier: GHSA-fv2h-753j-9g39
Advisory Summary

CVE-2023-41890 is a HIGH (CVSS 7.5) sustainsys.saml2 insufficient identity provider issuer vulnerability (CWE-294: Authentication Bypass by Capture-replay) affecting Sustainsys.Saml2 libraries in the NuGet ecosystem. The issue involves sustainsys.saml2 insufficient identity provider issuer validation. Remediation is available by upgrading affected packages to version 1.0.3, 2.9.2.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:nuget/Sustainsys.Saml2

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:nuget/Sustainsys.Saml2. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-fv2h-753j-9g39 CVE-2023-41890 HIGH Sustainsys.Saml2 Insufficient Identity Provider Issuer Validation
GHSA-g6j2-ch25-5mmv CVE-2020-5261 HIGH Missing Token Replay Detection in Saml2 Authentication services for ASP.NET
GHSA-9475-xg6m-j7pw CVE-2020-5268 MODERATE Subject Confirmation Method not validated in Saml2 Authentication Services for ASP.NET

CVE-2023-41890 at a Glance

CVE Identifier CVE-2023-41890
GHSA Identifier GHSA-fv2h-753j-9g39
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-294: Authentication Bypass by Capture-replay
Affected Product Sustainsys.Saml2
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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

How to Fix CVE-2023-41890

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

Sustainsys.Saml2 fixed: 1.0.3
Upgrade Sustainsys.Saml2 to 1.0.3
Sustainsys.Saml2 fixed: 2.9.2
Upgrade Sustainsys.Saml2 to 2.9.2
Kentor.AuthServices fixed: Latest secure release
Upgrade Kentor.AuthServices to Latest secure release
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 Sustainsys.Saml2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-41890, inspect your project dependencies for Sustainsys.Saml2:

inspect dependencies for Sustainsys.Saml2

Analyze the terminal output to locate any version of Sustainsys.Saml2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.3), 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-294: Authentication Bypass by Capture-replay, where a capture-replay flaw exists when the design of the product makes it possible for a malicious user to sniff network traffic and bypass authentication by replaying it to the server in question to the same effect as the original message (or with minor changes). In Sustainsys.Saml2, 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

### Impact When a response is processed, the issuer of the Identity Provider is not sufficiently validated. This could allow a malicious identity provider to craft a Saml2 response that is processed as if issued by another identity provider. It is also possible for a malicious end user to cause stored state intended for one identity provider to be used when processing the response from another provider. An application is impacted if they rely on any of these features in their authentication/authorization logic: * the issuer of the generated identity and claims * items in the stored request state (AuthenticationProperties) ### Patches Patched in version 2.9.2 and 1.0.3. All previous versions are vulnerable. ### Workarounds The `AcsCommandResultCreated` notification can be used to add the validation required if an upgrade to patched packages is not possible. ### References The patch is linked to https://github.com/Sustainsys/Saml2/issues/712 and https://github.com/Sustainsys/Saml2/issues/713

CVE-2023-41890 Affected Sustainsys.Saml2 Versions

3 component(s)
Fixed Versions:
1.0.32.9.2
Product / Package Ecosystem Affected Versions Fixed Version
Sustainsys.Saml2
NuGet
< 1.0.3
1.0.3
Sustainsys.Saml2
NuGet
≥ 2.0.0
< 2.9.2
2.9.2
Kentor.AuthServices
NuGet
≤ 0.23.0

References

Frequently Asked Questions

What is CVE-2023-41890?
CVE-2023-41890 is a security vulnerability in Sustainsys.Saml2 involving Sustainsys.Saml2 Insufficient Identity Provider Issuer Validation under CWE-294: Authentication Bypass by Capture-replay.
Which Sustainsys.Saml2 versions are affected?
Affected versions include releases prior to 1.0.3, 2.9.2 across affected packages: Sustainsys.Saml2, Kentor.AuthServices.
What version fixes CVE-2023-41890?
Upgrading to 1.0.3, 2.9.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Sustainsys.Saml2 affected?
Yes, Sustainsys.Saml2 is affected in releases prior to 1.0.3, 2.9.2. Upgrade your dependency to 1.0.3, 2.9.2 or later.
Is Kentor.AuthServices affected?
Yes, Kentor.AuthServices is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2023-41890?
CVE-2023-41890 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2023-41890?
CVE-2023-41890 is classified under CWE-294: Authentication Bypass by Capture-replay (A capture-replay flaw exists when the design of the product makes it possible for a malicious user to sniff network traffic and bypass authentication by replaying it to the server in question to the same effect as the original message (or with minor changes).).
How can I check NuGet dependencies for CVE-2023-41890?
Run the dependency tree command: 'inspect dependencies for Sustainsys.Saml2'. 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-fv2h-753j-9g39",
  "modified" : "2024-10-11T15:37:58Z",
  "published" : "2023-09-20T23:01:52Z",
  "aliases" : [ "CVE-2023-41890" ],
  "summary" : "Sustainsys.Saml2 Insufficient Identity Provider Issuer Validation",
  "details" : "### Impact\nWhen a response is processed, the issuer of the Identity Provider is not sufficiently validated. This could allow a malicious identity provider to craft a Saml2 response that is processed as if issued by another identity provider. It is also possible for a malicious end user to cause stored state intended for one identity provider to be used when processing the response from another provider.\n\nAn application is impacted if they rely on any of these features in their authentication/authorization logic:\n* the issuer of the generated identity and claims\n* items in the stored request state (AuthenticationProperties)\n\n### Patches\nPatched in version 2.9.2 and 1.0.3. All previous versions are vulnerable.\n\n### Workarounds\nThe `AcsCommandResultCreated` notification can be used to add the validation required if an upgrade to patched packages is not possible.\n\n### References\nThe patch is linked to https://github.com/Sustainsys/Saml2/issues/712 and https://github.com/Sustainsys/Saml2/issues/713\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Sustainsys.Saml2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Sustainsys.Saml2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.9.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Kentor.AuthServices"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.23.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Sustainsys/Saml2/security/advisories/GHSA-fv2h-753j-9g39"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-41890"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Sustainsys/Saml2/issues/712"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Sustainsys/Saml2/issues/713"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Sustainsys/Saml2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-289", "CWE-294" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-09-20T23:01:52Z",
    "nvd_published_at" : "2023-09-19T15:15:52Z"
  }
}