Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS0zNzgzLTYydmMtanI3eM4AA8K_
ConsoleMe has an Arbitrary File Read Vulnerability via Limited Git command
ID: NFLX-2024-002
Impact
Authenticated users can achieve limited RCE in ConsoleMe, restricted to flag inputs on a single CLI command. Due to this constraint, it is not currently known whether full RCE is possible but it is unlikely.
However, a specific flag allows authenticated users to read any server files accessible by the ConsoleMe process. Given ConsoleMe's role as an AWS identity broker, accessing files containing secrets on the server could potentially be exploited for privilege escalation.
Deployments of ConsoleMe that allow templated resources are impacted and urged to patch immediately. Deployments that do not permit templated resources are not affected.
To determine if your ConsoleMe deployment uses templated resources, check the configuration value for cache_resource_templates.repositories
. If this value does not exist or is an empty array, your deployment is not impacted.
Description
The self-service flow for templated resources in ConsoleMe accepts a user-supplied JSON post body, which includes the filename for the templated resource. However, this user-supplied filename is not properly sanitized and is passed directly as a string to a CLI command. This allows users to input flags instead of filenames. By passing a specific flag with a filename value, users can induce an error that reveals the contents of the specified file, allowing them to read any files readable by the system user executing the ConsoleMe server process.
Patches
This issue has been patched in version v1.4.0 via https://github.com/Netflix/consoleme/pull/9380.
If you are unable to upgrade to the latest version, users can selectively apply the code changes in the above PR. Alternatively, removing the configuration item cache_resource_templates.repositories
or adding it as an empty array should mitigate the issue, but will result in broken functionality (templated resources will no longer be supported for self-service).
Credit Permalink: https://github.com/advisories/GHSA-3783-62vc-jr7x
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS0zNzgzLTYydmMtanI3eM4AA8K_
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: 6 months ago
Updated: 6 months ago
CVSS Score: 9.6
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
Identifiers: GHSA-3783-62vc-jr7x, CVE-2024-5023
References:
- https://github.com/Netflix/consoleme/security/advisories/GHSA-3783-62vc-jr7x
- https://nvd.nist.gov/vuln/detail/CVE-2024-5023
- https://github.com/Netflix/consoleme/pull/9380
- https://github.com/Netflix/consoleme/commit/2795a2bd553938a21c0643b37452971625ce67f5
- https://github.com/Netflix/security-bulletins/blob/master/advisories/nflx-2024-002.md
- https://github.com/advisories/GHSA-3783-62vc-jr7x
Blast Radius: 1.0
Affected Packages
pypi:consoleme
Dependent packages: 0Dependent repositories: 0
Downloads: 3,162 last month
Affected Version Ranges: < 1.4.0
Fixed in: 1.4.0
All affected versions: 0.0.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.1.8, 1.1.9, 1.2.0, 1.2.1, 1.2.2, 1.3.0, 1.3.1
All unaffected versions: 1.4.0