Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2019-16742: Nomad ACL Checks Bypass Namespace Restriction on Allocation Endpoints #6432

Closed
notnoop opened this issue Oct 7, 2019 · 1 comment · Fixed by #6442
Closed

Comments

@notnoop
Copy link
Contributor

notnoop commented Oct 7, 2019

After an internal investigation, we discovered that allocation endpoints do not correctly check the namespace and allow a user to bypass namespace checking if they know the allocation ID and have permissions for another namespace. This vulnerability affects Nomad Enterprise versions since 0.8.0.

This document outlines details about this vulnerability and describes steps for remediation.

Please note that this is a customer notification, and that HashiCorp will make similar content public in release notes and with a notification sent to our public mailing list.

Background

When determining whether an authenticated user request has access to an allocation, the user’s ACL token is checked against the request’s namespace instead of the allocation’s namespace. This means a user with allocation capabilities (e.g., “read-fs”) to one namespace (e.g., “staging”), effectively has that capability for all allocations in any namespace.

Users must know the allocation IDs they wish to access as the /v1/allocations endpoint is filtered by namespace. However, allocation IDs are not considered sensitive and exposed in metrics APIs and logs, and are generally considered discoverable by operators.

This vulnerability constitutes an unintentional bypass of authorization, and Nomad 0.9.6 will correctly check the allocation namespace in all requests.

Remediation

Operators should upgrade Nomad clients and servers to 0.9.6 to patch this vulnerability.

@notnoop notnoop changed the title reserved 16742 CVE-2019-16742: Nomad ACL Checks Bypass Namespace Restriction on Allocation Endpoints Oct 8, 2019
@notnoop notnoop closed this as completed Oct 8, 2019
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants