CVE-2021-23365: Github.com/tyktechnologies/tyk identity broker Authentication Bypass Vulnerability
CRITICALCVE-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
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).
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.
Upgrade github.com/tyktechnologies/tyk-identity-broker to 1.1.1
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
CVE-2021-23365 Affected Github.com/tyktechnologies/tyk identity broker Versions
1 component(s)| 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?
Which Github.com/tyktechnologies/tyk identity broker versions are affected?
What version fixes CVE-2021-23365?
Is github.com/tyktechnologies/tyk-identity-broker affected?
What is the CVSS score of CVE-2021-23365?
What CWE is associated with CVE-2021-23365?
How can I check Go dependencies for CVE-2021-23365?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}