OpenC3 COSMOS
OpenC3 COSMOS: Administrative Actions via the Script Runner Tool
OpenC3 COSMOS provides the functionality needed to send commands to and receive data from one or more embedded systems. Prior to version 7.0.0-rc3, the Script Runner widget allows users to execute Python and Ruby scripts directly from the openc3-COSMOS-script-runner-api container. Because all the docker containers share a network, users can execute specially crafted scripts to bypass the API permissions check and perform administrative actions, including reading and modifying data inside the Redis database, which can be used to read secrets and change COSMOS settings, as well as read and write to the buckets service, which holds configuration, log, and plugin files. These actions are normally only available from the Admin Console or with administrative privileges. Any user with permission to create and run scripts can connect to any service in the docker network. This issue has been patched in version 7.0.0-rc3.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 7.0.0-rc3
Fixed in 7.0.0-rc3
Mitigation
Upgrade cosmos to 7.0.0-rc3 or later.
References
- Vendor advisory github.com/OpenC3/cosmos/security/advisories/G…
- Release notes github.com/OpenC3/cosmos/releases/tag/v7.0.0
- Release notes github.com/OpenC3/cosmos/releases/tag/v7.0.0-r…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.