SecurityContext

CVE-2020-5268: Sustainsys.Saml2 - Authentication Bypass

  • Cve: CVE-2020-5268
  • Name: Sustainsys.Saml2 - Authentication Bypass
  • Description: In Saml2 Authentication Services for ASP.NET versions before 1.0.2, and between 2.0.0 and 2.6.0, 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. This vulnerability is patched in versions 1.0.2 and 2.7.0.
  • Impact: Attackers with non-bearer tokens can create login sessions, potentially leading to unauthorized access.
  • Remediation: Update to version 1.0.2 or 2.7.0.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
  • Epss score: 0.01086
  • Epss percentile: 0.66178
  • Assignee: [email protected]
  • Published at: 2020-04-21T17:15:13Z
  • Age in days: 2408
  • Modified at: 2026-06-17T03:21:10Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-5268
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-303Incorrect Implementation of Authentication Algorithm
CWE-287Improper Authentication

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/Sustainsys/Saml2/commit/e58e0a1aff2b1ead6aca080b7cdced55ee6d5241Patch, Third Party Advisory
https://github.com/Sustainsys/Saml2/security/advisories/GHSA-9475-xg6m-j7pwMitigation, Third Party Advisory
https://github.com/Sustainsys/Saml2/issues/712Third Party Advisory
https://www.nuget.org/packages/Sustainsys.Saml2/Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
sustainsys:saml2>= 2.0.0, < 2.7.0; < 1.0.2nonvd/v1/products/sustainsys/saml2

Projects

RepositoryLink kindsIndexedUrl
Sustainsys/Saml2commit, fix, issues, security_advisoryyes/v1/repositories/Sustainsys/Saml2

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts