CVE-2021-23365: Github.com/tyktechnologies/tyk identity broker Authentication Bypass Vulnerability

CRITICAL
Advisory Identifier: GHSA-599h-8wpj-75xj
CVSS 9.1
CWE-287
Published
Advisory Summary

CVE-2021-23365 is a CRITICAL (CVSS 9.1) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Github.com/tyktechnologies/tyk identity broker libraries in the Go ecosystem. The issue involves authentication bypass in tyk-identity-broker. Remediation is available by upgrading affected packages to version 1.1.1.

CVE-2021-23365 at a Glance

CVE Identifier CVE-2021-23365
GHSA Identifier GHSA-599h-8wpj-75xj
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-287: Improper Authentication
Affected Product Github.com/tyktechnologies/tyk identity broker
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.1

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:H/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 High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2021-23365

To remediate this vulnerability, upgrade all affected Github.com/tyktechnologies/tyk identity broker dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/tyktechnologies/tyk-identity-broker fixed: 1.1.1
Upgrade github.com/tyktechnologies/tyk-identity-broker to 1.1.1
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 github.com/tyktechnologies/tyk-identity-broker

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-23365, inspect your project dependencies for Github.com/tyktechnologies/tyk identity broker:

inspect dependencies for github.com/tyktechnologies/tyk-identity-broker

Analyze the terminal output to locate any version of Github.com/tyktechnologies/tyk identity broker in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.1), 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 Github.com/tyktechnologies/tyk identity broker, 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

The package github.com/tyktechnologies/tyk-identity-broker before 1.1.1 are vulnerable to Authentication Bypass via the Go XML parser which can cause SAML authentication bypass. This is because the XML parser doesn’t guarantee integrity in the XML round-trip (encoding/decoding XML data).

CVE-2021-23365 Affected Github.com/tyktechnologies/tyk identity broker Versions

1 component(s)
Fixed Versions:
1.1.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/tyktechnologies/tyk-identity-broker
Go
< 1.1.1
1.1.1

References

Frequently Asked Questions

What is CVE-2021-23365?
CVE-2021-23365 is a security vulnerability in Github.com/tyktechnologies/tyk identity broker involving Authentication Bypass in tyk-identity-broker under CWE-287: Improper Authentication.
Which Github.com/tyktechnologies/tyk identity broker versions are affected?
Affected versions include releases prior to 1.1.1 across affected packages: github.com/tyktechnologies/tyk-identity-broker.
What version fixes CVE-2021-23365?
Upgrading to 1.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/tyktechnologies/tyk-identity-broker affected?
Yes, github.com/tyktechnologies/tyk-identity-broker is affected in releases prior to 1.1.1. Upgrade your dependency to 1.1.1 or later.
What is the CVSS score of CVE-2021-23365?
CVE-2021-23365 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2021-23365?
CVE-2021-23365 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 Go dependencies for CVE-2021-23365?
Run the dependency tree command: 'inspect dependencies for github.com/tyktechnologies/tyk-identity-broker'. 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-599h-8wpj-75xj",
  "modified" : "2021-05-20T21:24:49Z",
  "published" : "2021-06-23T17:23:30Z",
  "aliases" : [ "CVE-2021-23365" ],
  "summary" : "Authentication Bypass in tyk-identity-broker",
  "details" : "The package github.com/tyktechnologies/tyk-identity-broker before 1.1.1 are vulnerable to Authentication Bypass via the Go XML parser which can cause SAML authentication bypass. This is because the XML parser doesn’t guarantee integrity in the XML round-trip (encoding/decoding XML data).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/tyktechnologies/tyk-identity-broker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-23365"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TykTechnologies/tyk-identity-broker/pull/147"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TykTechnologies/tyk-identity-broker/commit/243092965b0f93a95a14cb882b5b9a3df61dd5c0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TykTechnologies/tyk-identity-broker/commit/46f70420e0911e4e8b638575e29d394c227c75d0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TykTechnologies/tyk-identity-broker/releases/tag/v1.1.1"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMTYKTECHNOLOGIESTYKIDENTITYBROKER-1089720"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-20T21:24:49Z",
    "nvd_published_at" : "2021-04-26T10:15:00Z"
  }
}