Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS12ZjVtLXhyaG0tdjk5Oc4AA4AF
Nautobot missing object-level permissions enforcement when running Job Buttons
Impact
When submitting a Job to run via a Job Button, only the model-level extras.run_job
permission is checked (i.e., does the user have permission to run Jobs in general?). Object-level permissions (i.e., does the user have permission to run this specific Job?) are not enforced by the URL/view used in this case (/extras/job-button/<uuid>/run/
) The effect is that a user with permissions to run even a single Job can actually run all configured JobButton Jobs.
Not all Jobs can be configured as JobButtons; only those implemented as subclasses of
JobButtonReceiver
can be used in this way, so this vulnerability only applies specifically toJobButtonReceiver
subclasses.
Additionally, although the documentation states that both extras.run_job
permission and extras.run_jobbutton
permission must be granted to a user in order to run Jobs via JobButton, the extras.run_jobbutton
permission is not actually enforced by the view code, only by the UI by disabling the button from being clicked normally. Furthermore, the extras.run_jobbutton
permission never prevented invoking Jobs (including JobButtonReceiver
subclasses) via the normal "Job Run" UI, so after some discussion, we've decided that the extras.run_jobbutton
permission is redundant, and as it never achieved its stated/documented purpose, the fixes below will remove the UI check for extras.run_jobbutton
and all other references to the extras.run_jobbutton
permission, rather than adding enforcement of this previously unenforced permission.
Patches
Has the problem been patched? What versions should users upgrade to?
Fix will be available in Nautobot 1.6.8 (https://github.com/nautobot/nautobot/pull/4995) and 2.1.0 (https://github.com/nautobot/nautobot/pull/4993)
Workarounds
Is there a way for users to fix or remediate the vulnerability without upgrading?
Partial mitigation can be achieved by auditing JobButtonReceiver
subclasses defined in the system and restricting which users are permitted to create or edit JobButton records.
References
- https://github.com/nautobot/nautobot/issues/4988
- https://github.com/nautobot/nautobot/pull/4993
- https://github.com/nautobot/nautobot/pull/4995
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS12ZjVtLXhyaG0tdjk5Oc4AA4AF
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Low
Classification: General
Published: 11 months ago
Updated: 11 months ago
CVSS Score: 3.5
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:L
Identifiers: GHSA-vf5m-xrhm-v999, CVE-2023-51649
References:
- https://github.com/nautobot/nautobot/security/advisories/GHSA-vf5m-xrhm-v999
- https://nvd.nist.gov/vuln/detail/CVE-2023-51649
- https://github.com/nautobot/nautobot/issues/4988
- https://github.com/nautobot/nautobot/pull/4993
- https://github.com/nautobot/nautobot/pull/4995
- https://github.com/nautobot/nautobot/commit/3d964f996f4926126c1d7853ca87b2ff475997a2
- https://github.com/nautobot/nautobot/commit/d33d0c15a36948c45244e5b5e10bc79b8e62de7f
- https://github.com/advisories/GHSA-vf5m-xrhm-v999
Blast Radius: 5.9
Affected Packages
pypi:nautobot
Dependent packages: 34Dependent repositories: 47
Downloads: 14,888 last month
Affected Version Ranges: >= 2.0.0, < 2.1.0, >= 1.5.14, < 1.6.8
Fixed in: 2.1.0, 1.6.8
All affected versions: 1.5.14, 1.5.15, 1.5.16, 1.5.17, 1.5.18, 1.5.19, 1.5.20, 1.5.21, 1.5.22, 1.5.23, 1.5.24, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6
All unaffected versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.2.8, 1.2.9, 1.2.10, 1.2.11, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.3.8, 1.3.9, 1.3.10, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.7, 1.4.8, 1.4.9, 1.4.10, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5,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