Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. Sustainsys.Saml2
  4. ›
  5. CVE-2020-5268

CVE-2020-5268: Improper Authentication

April 21, 2020 (updated May 6, 2020)

In Saml2 Authentication Services for ASP.NET, and between, there is a vulnerability in how tokens are validated in some cases. Saml2 tokens are usually used as bearer tokens - a caller that presents a token is assumed to be the subject of the token. There is also support in the Saml2 protocol for issuing tokens that is tied to a subject through other means, e.g. holder-of-key where possession of a private key must be proved. The Sustainsys.Saml2 library incorrectly treats all incoming tokens as bearer tokens, even though they have another subject confirmation method specified. This could be used by an attacker that could get access to Saml2 tokens with another subject confirmation method than bearer. The attacker could then use such a token to create a log in session.

References

  • github.com/Sustainsys/Saml2/commit/e58e0a1aff2b1ead6aca080b7cdced55ee6d5241
  • github.com/Sustainsys/Saml2/issues/712
  • github.com/Sustainsys/Saml2/security/advisories/GHSA-9475-xg6m-j7pw
  • nvd.nist.gov/vuln/detail/CVE-2020-5268
  • www.nuget.org/packages/Sustainsys.Saml2/

Code Behaviors & Features

Detect and mitigate CVE-2020-5268 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.0.2, all versions starting from 2.0.0 before 2.7.0

Fixed versions

  • 1.0.2
  • 2.7.0

Solution

Upgrade to versions 1.0.2, 2.7.0 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

nuget/Sustainsys.Saml2/CVE-2020-5268.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:47 +0000.