CVE-2020-26276: Github.com/fleetdm/fleet/v4 SAML Authentication Vulnerability Due To Vulnerability
HIGHCVE-2020-26276 is a HIGH saml authentication vulnerability due to vulnerability (CWE-290: Authentication Bypass by Spoofing) affecting Github.com/fleetdm/fleet/v4 libraries in the Go ecosystem. The issue involves saml authentication vulnerability due to stdlib xml parsing. Remediation is available by upgrading affected packages to version 3.5.1.
CVE-2020-26276 at a Glance
How to Fix CVE-2020-26276
To remediate this vulnerability, upgrade all affected Github.com/fleetdm/fleet/v4 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/fleetdm/fleet/v4 to 3.5.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/fleetdm/fleet/v4
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-26276, inspect your project dependencies for Github.com/fleetdm/fleet/v4:
inspect dependencies for github.com/fleetdm/fleet/v4
Analyze the terminal output to locate any version of Github.com/fleetdm/fleet/v4 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.5.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-290: Authentication Bypass by Spoofing, where this attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks. In Github.com/fleetdm/fleet/v4, 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-2020-26276 Affected Github.com/fleetdm/fleet/v4 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/fleetdm/fleet/v4
|
Go |
< 3.5.1
|
3.5.1
|
References
Frequently Asked Questions
What is CVE-2020-26276?
Which Github.com/fleetdm/fleet/v4 versions are affected?
What version fixes CVE-2020-26276?
Is github.com/fleetdm/fleet/v4 affected?
What CWE is associated with CVE-2020-26276?
How can I check Go dependencies for CVE-2020-26276?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w3wf-cfx3-6gcx",
"modified" : "2022-02-11T23:59:14Z",
"published" : "2022-02-11T23:59:14Z",
"aliases" : [ "CVE-2020-26276" ],
"summary" : "SAML authentication vulnerability due to stdlib XML parsing",
"details" : "### Impact\nDue to issues in Go's standard library XML parsing, a valid SAML response may be mutated by an attacker to modify the trusted document. This can result in allowing unverified logins from a SAML IdP.\n\nUsers that configure Fleet with SSO login may be vulnerable to this issue.\n\n### Patches\nThis issue is patched in 3.5.1 using https://github.com/mattermost/xml-roundtrip-validator.\n\n### Workarounds\nIf upgrade to 3.5.1 is not possible, users should disable SSO authentication in Fleet.\n\n### References\nSee https://mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities/ for more information about the underlying vulnerabilities.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [security@fleetdm.com](mailto:security@fleetdm.com)\n* Join #fleet in [osquery Slack](https://join.slack.com/t/osquery/shared_invite/zt-h29zm0gk-s2DBtGUTW4CFel0f0IjTEw)",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/fleetdm/fleet/v4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.5.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/fleetdm/fleet/security/advisories/GHSA-w3wf-cfx3-6gcx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-26276"
}, {
"type" : "WEB",
"url" : "https://github.com/fleetdm/fleet/commit/57812a532e5f749c8e18c6f6a652eca65c083607"
}, {
"type" : "WEB",
"url" : "https://github.com/fleetdm/fleet/blob/master/CHANGELOG.md#fleet-351-dec-14-2020"
}, {
"type" : "WEB",
"url" : "https://github.com/mattermost/xml-roundtrip-validator"
}, {
"type" : "WEB",
"url" : "https://mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-290" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-21T20:46:21Z",
"nvd_published_at" : "2020-12-17T20:15:00Z"
}
}