OpenC3 COSMOS Credential Leak Vulnerability

Vulnerability

A credential leak vulnerability exists in OpenC3 COSMOS version 6.0.0, allowing attackers to access service credentials through environment variables stored in all containers. This vulnerability arises because the Docker containers run as root by default and the environment variables can be modified by users via the application’s web interface. Once altered, the variables can be exposed by rebooting the container, leading to a dump of all credentials, including those for other services.

Impact

Exploitation of this vulnerability results in unauthorized access to sensitive service credentials, which can be leveraged to compromise other services or systems.

Reproduction

The vulnerability can be reproduced by modifying the default scripts included with the OpenC3 COSMOS Script Runner tool. After removing the lines that unset the environment variables, the container can be rebooted, allowing all credentials to be dumped from the environment.

Remediation

It is recommended to remove unnecessary credentials from Docker containers, ensure that essential scripts are read-only and not modifiable by users, and restrict Docker containers from running as root by default.

Added: Sep 1, 2025, 7:22 PM
Updated: Sep 1, 2025, 7:22 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
6.6
remediation
0.0
relevance
0.2
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.