CVE-2022-23600: Github.com/fleetdm/fleet/v4 Limited Ability To Spoof SAML Vulnerability

MODERATE
Advisory Identifier: GHSA-ch68-7cf4-35vr
CVSS 5.3
CWE-284 CWE-287
Published
Advisory Summary

CVE-2022-23600 is a MODERATE (CVSS 5.3) limited ability to spoof saml vulnerability (CWE-284: Improper Access Control) affecting Github.com/fleetdm/fleet/v4 libraries in the Go ecosystem. The issue involves limited ability to spoof saml authentication with missing audience verification in fleet. Remediation is available by upgrading affected packages to version 4.9.1.

CVE-2022-23600 at a Glance

CVE Identifier CVE-2022-23600
GHSA Identifier GHSA-ch68-7cf4-35vr
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-284: Improper Access Control
Affected Product Github.com/fleetdm/fleet/v4
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2022-23600

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.

github.com/fleetdm/fleet/v4 fixed: 4.9.1
Upgrade github.com/fleetdm/fleet/v4 to 4.9.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/fleetdm/fleet/v4

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-23600, 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 4.9.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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. 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

### Impact This impacts deployments using SAML SSO in two specific cases: 1. A malicious or compromised Service Provider (SP) could reuse the SAML response to log into Fleet as a user -- only if the user has an account with the same email in Fleet, _and_ the user signs into the malicious SP via SAML SSO from the same Identity Provider (IdP) configured with Fleet. 2. A user with an account in Fleet could reuse a SAML response intended for another SP to log into Fleet. This is only a concern if the user is blocked from Fleet in the IdP, but continues to have an account in Fleet. If the user is blocked from the IdP entirely, this cannot be exploited. ### Patches Fleet 4.9.1 resolves this issue. ### Workarounds and good practices * Reduce the length of sessions on your IdP to reduce the window for malicious re-use. * Limit the amount of SAML Service Providers/Applications used by user accounts with access to Fleet. * When removing access to Fleet in the IdP, delete the Fleet user from Fleet as well. ### For more information If you have any questions or comments about this advisory: * Join us in the #fleet channel of [osquery Slack](https://join.slack.com/t/osquery/shared_invite/zt-h29zm0gk-s2DBtGUTW4CFel0f0IjTEw). * Email us at [security@fleetdm.com](mailto:security@fleetdm.com).

CVE-2022-23600 Affected Github.com/fleetdm/fleet/v4 Versions

1 component(s)
Fixed Versions:
4.9.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/fleetdm/fleet/v4
Go
< 4.9.1
4.9.1

References

Frequently Asked Questions

What is CVE-2022-23600?
CVE-2022-23600 is a security vulnerability in Github.com/fleetdm/fleet/v4 involving Limited ability to spoof SAML authentication with missing audience verification in Fleet under CWE-284: Improper Access Control.
Which Github.com/fleetdm/fleet/v4 versions are affected?
Affected versions include releases prior to 4.9.1 across affected packages: github.com/fleetdm/fleet/v4.
What version fixes CVE-2022-23600?
Upgrading to 4.9.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/fleetdm/fleet/v4 affected?
Yes, github.com/fleetdm/fleet/v4 is affected in releases prior to 4.9.1. Upgrade your dependency to 4.9.1 or later.
What is the CVSS score of CVE-2022-23600?
CVE-2022-23600 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2022-23600?
CVE-2022-23600 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Go dependencies for CVE-2022-23600?
Run the dependency tree command: 'inspect dependencies for github.com/fleetdm/fleet/v4'. 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-ch68-7cf4-35vr",
  "modified" : "2022-02-07T21:57:38Z",
  "published" : "2022-02-07T21:57:38Z",
  "aliases" : [ "CVE-2022-23600" ],
  "summary" : "Limited ability to spoof SAML authentication with missing audience verification in Fleet",
  "details" : "### Impact\n\nThis impacts deployments using SAML SSO in two specific cases:\n\n1. A malicious or compromised Service Provider (SP) could reuse the SAML response to log into Fleet as a user -- only if the user has an account with the same email in Fleet, _and_ the user signs into the malicious SP via SAML SSO from the same Identity Provider (IdP) configured with Fleet.\n2. A user with an account in Fleet could reuse a SAML response intended for another SP to log into Fleet. This is only a concern if the user is blocked from Fleet in the IdP, but continues to have an account in Fleet. If the user is blocked from the IdP entirely, this cannot be exploited.\n\n### Patches\nFleet 4.9.1 resolves this issue.\n\n### Workarounds and good practices\n* Reduce the length of sessions on your IdP to reduce the window for malicious re-use.\n* Limit the amount of SAML Service Providers/Applications used by user accounts with access to Fleet.\n* When removing access to Fleet in the IdP, delete the Fleet user from Fleet as well.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Join us in the #fleet channel of [osquery Slack](https://join.slack.com/t/osquery/shared_invite/zt-h29zm0gk-s2DBtGUTW4CFel0f0IjTEw).\n* Email us at [security@fleetdm.com](mailto:security@fleetdm.com).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/fleetdm/fleet/v4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.9.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/fleetdm/fleet/security/advisories/GHSA-ch68-7cf4-35vr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-23600"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fleetdm/fleet/commit/35d5a7b285f15ddd47486fa656e8b1acf3d48374"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/fleetdm/fleet"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284", "CWE-287" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-02-03T17:19:00Z",
    "nvd_published_at" : "2022-02-04T23:15:00Z"
  }
}