{"description":"Trending threats, MITRE ATT\u0026CK coverage, and detection metadata — refreshed continuously.","feed_url":"https://feed.craftedsignal.io/products/openc3/","home_page_url":"https://feed.craftedsignal.io/","items":[{"_cs_actors":[],"_cs_cves":[],"_cs_exploited":false,"_cs_products":["OpenC3"],"_cs_severities":["critical"],"_cs_tags":["sql-injection","openc3","cosmos","questdb","telemetry"],"_cs_type":"advisory","_cs_vendors":["rubygems"],"content_html":"\u003cp\u003eA SQL injection vulnerability has been identified in the OpenC3 COSMOS Time-Series Database (TSDB) component, which utilizes QuestDB. The vulnerability resides within the \u003ccode\u003etsdb_lookup\u003c/code\u003e function in the \u003ccode\u003ecvt_model.rb\u003c/code\u003e file, where user-supplied input is directly incorporated into SQL queries without proper sanitization. An authenticated attacker with \u0026ldquo;tlm\u0026rdquo; permissions, which includes Admin, Operator, Viewer, or Runner roles, can exploit this flaw to inject arbitrary SQL commands. This can lead to unauthorized data access, modification, or deletion within the TSDB. The affected versions are OpenC3 rubygems package versions \u0026gt;= 6.7.0 and \u0026lt; 7.0.0-rc3. Successful exploitation allows attackers to compromise the confidentiality, integrity, and availability of telemetry data stored within the COSMOS system.\u003c/p\u003e\n\u003ch2 id=\"attack-chain\"\u003eAttack Chain\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eAn attacker authenticates to the COSMOS system with a role that possesses \u0026ldquo;tlm\u0026rdquo; permissions (Admin, Operator, Viewer, or Runner).\u003c/li\u003e\n\u003cli\u003eThe attacker crafts a malicious JSON-RPC request targeting the \u003ccode\u003eget_tlm_values\u003c/code\u003e endpoint.\u003c/li\u003e\n\u003cli\u003eWithin the request body, the attacker injects a SQL payload into the \u003ccode\u003estart_time\u003c/code\u003e parameter, such as \u003ccode\u003e' OR 1=1 --\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe \u003ccode\u003etsdb_lookup\u003c/code\u003e function incorporates the unsanitized input into a SQL query.\u003c/li\u003e\n\u003cli\u003eThe injected SQL payload manipulates the query logic, allowing the attacker to bypass intended restrictions.\u003c/li\u003e\n\u003cli\u003eThe attacker can then exfiltrate all telemetry data within the database by manipulating the SQL query.\u003c/li\u003e\n\u003cli\u003eThe attacker modifies the SQL payload to execute arbitrary commands, such as \u003ccode\u003eDROP TABLE\u003c/code\u003e statements.\u003c/li\u003e\n\u003cli\u003eThe attacker successfully deletes historical data from the database, impacting data availability and system integrity.\u003c/li\u003e\n\u003c/ol\u003e\n\u003ch2 id=\"impact\"\u003eImpact\u003c/h2\u003e\n\u003cp\u003eSuccessful exploitation of this SQL injection vulnerability allows an attacker to perform unauthorized actions on the OpenC3 COSMOS Time-Series Database (TSDB). An attacker with \u0026ldquo;tlm\u0026rdquo; permissions can disclose sensitive telemetry data, modify existing data, or delete data altogether. The vulnerability impacts systems running OpenC3 rubygems package versions \u0026gt;= 6.7.0 and \u0026lt; 7.0.0-rc3. Depending on the role of the compromised account and the specific SQL commands executed, an attacker could potentially cause significant disruption to operations relying on the integrity and availability of telemetry data.\u003c/p\u003e\n\u003ch2 id=\"recommendation\"\u003eRecommendation\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003eUpgrade the \u003ccode\u003erubygems/openc3\u003c/code\u003e package to version 7.0.0-rc3 or later to remediate the SQL injection vulnerability.\u003c/li\u003e\n\u003cli\u003eImplement input sanitization on user-supplied data within the \u003ccode\u003etsdb_lookup\u003c/code\u003e function in \u003ccode\u003ecvt_model.rb\u003c/code\u003e to prevent SQL injection attacks.\u003c/li\u003e\n\u003cli\u003eDeploy the Sigma rule \u0026ldquo;Detect Suspicious OpenC3 Telemetry Requests\u0026rdquo; to identify potential exploitation attempts targeting the \u003ccode\u003eget_tlm_values\u003c/code\u003e endpoint.\u003c/li\u003e\n\u003cli\u003eReview and restrict \u0026ldquo;tlm\u0026rdquo; permissions to the \u003ccode\u003eget_tlm_values\u003c/code\u003e RPC endpoint according to the principle of least privilege, limiting access to only those users who require it.\u003c/li\u003e\n\u003c/ul\u003e\n","date_modified":"2026-04-23T14:12:02Z","date_published":"2026-04-23T14:12:02Z","id":"/briefs/2024-01-09-openc3-sql-injection/","summary":"A SQL injection vulnerability exists in the Time-Series Database (TSDB) component of COSMOS, allowing an authenticated remote user to execute arbitrary SQL commands, including telemetry data disclosure and deletion.","title":"OpenC3 COSMOS SQL Injection Vulnerability in QuestDB Time-Series Database","url":"https://feed.craftedsignal.io/briefs/2024-01-09-openc3-sql-injection/"},{"_cs_actors":[],"_cs_cves":[],"_cs_exploited":false,"_cs_products":["openc3"],"_cs_severities":["critical"],"_cs_tags":["openc3","cosmos","script-runner","permissions-bypass","privilege-escalation"],"_cs_type":"advisory","_cs_vendors":["rubygems"],"content_html":"\u003cp\u003eThe openc3-COSMOS-script-runner-api container includes a Script Runner widget that enables users to execute Python and Ruby scripts. A vulnerability exists where users with script execution privileges can bypass API permission checks due to shared networking among Docker containers. This bypass allows unauthorized administrative actions such as reading and modifying data within the Redis database, which can lead to the exposure of sensitive credentials and alteration of COSMOS settings. Attackers can also read and write to the buckets service, affecting configuration, logs, and plugins. The vulnerability affects versions prior to 7.0.0-rc3 of the rubygems/openc3 package, posing a significant risk to data integrity and system security. Any authenticated user with script execution capabilities can exploit this flaw to connect to any service within the Docker network, escalating their privileges and gaining control over critical system components.\u003c/p\u003e\n\u003ch2 id=\"attack-chain\"\u003eAttack Chain\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eAn attacker logs into the OpenC3 COSMOS platform with a valid, non-administrative user account that has access to the Script Runner widget.\u003c/li\u003e\n\u003cli\u003eThe attacker crafts a Ruby script to extract Redis credentials (username, password, hostname, port) by querying the environment variables within the \u003ccode\u003eopenc3-COSMOS-script-runner-api\u003c/code\u003e container using a command like \u003ccode\u003eputs \\\u003c/code\u003eenv | grep redis``.\u003c/li\u003e\n\u003cli\u003eThe attacker executes the Ruby script within the Script Runner widget, successfully retrieving the Redis credentials, which are then displayed in the script\u0026rsquo;s output.\u003c/li\u003e\n\u003cli\u003eThe attacker crafts a Python script using the obtained Redis credentials to connect to the Redis database. The script is designed to create a new entry or modify an existing one. For example, \u003ccode\u003er.hset('openc3__settings_hacked','store_url',json.dumps(setting_data))\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003eThe attacker executes the Python script within the Script Runner widget, successfully adding or modifying data in the Redis database, bypassing normal permission controls.\u003c/li\u003e\n\u003cli\u003eThe attacker leverages the ability to write to the buckets service to modify critical system configuration files, such as the plugin store URL, by uploading a malicious file via a Python or Ruby script.\u003c/li\u003e\n\u003cli\u003eThe attacker verifies the changes by using \u003ccode\u003eredis-cli\u003c/code\u003e to confirm the new data was added to the Redis database, or by observing the altered behavior of the system due to the modified configuration files.\u003c/li\u003e\n\u003cli\u003eThe attacker gains complete control over the OpenC3 COSMOS environment by exploiting modified settings, potentially leading to data exfiltration, service disruption, or further lateral movement within the network.\u003c/li\u003e\n\u003c/ol\u003e\n\u003ch2 id=\"impact\"\u003eImpact\u003c/h2\u003e\n\u003cp\u003eSuccessful exploitation of this vulnerability allows unauthorized data disclosure and manipulation within the OpenC3 COSMOS environment. An attacker can access sensitive information such as Redis credentials, modify system settings, and alter configuration files, leading to privilege escalation. The number of affected installations is currently unknown, but the vulnerability poses a significant risk to organizations using OpenC3 COSMOS, potentially resulting in complete system compromise and loss of data integrity. The vulnerability allows unauthorized access to data and functionality typically restricted to administrators, bypassing intended security controls.\u003c/p\u003e\n\u003ch2 id=\"recommendation\"\u003eRecommendation\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003eUpgrade the \u003ccode\u003erubygems/openc3\u003c/code\u003e package to version 7.0.0-rc3 or later to remediate the vulnerability (reference: rubygems/openc3 v7.0.0-rc3).\u003c/li\u003e\n\u003cli\u003eImplement network segmentation to isolate the \u003ccode\u003eopenc3-COSMOS-script-runner-api\u003c/code\u003e container from other critical services like Redis, limiting the blast radius of potential attacks.\u003c/li\u003e\n\u003cli\u003eDeploy the Sigma rule to detect the execution of suspicious scripts within the Script Runner widget that attempt to access Redis or modify configuration files.\u003c/li\u003e\n\u003cli\u003eMonitor process creation events within the \u003ccode\u003eopenc3-COSMOS-script-runner-api\u003c/code\u003e container for commands such as \u003ccode\u003eenv | grep redis\u003c/code\u003e or any calls to \u003ccode\u003eredis-cli\u003c/code\u003e which is abnormal behavior, and create alerts (reference: process_creation log source).\u003c/li\u003e\n\u003c/ul\u003e\n","date_modified":"2024-11-08T12:00:00Z","date_published":"2024-11-08T12:00:00Z","id":"/briefs/2024-11-openc3-cosmos-bypass/","summary":"The OpenC3 COSMOS Script Runner widget allows authenticated users to bypass API permissions checks and execute administrative actions by running specially crafted Python and Ruby scripts, leading to data manipulation and privilege escalation.","title":"OpenC3 COSMOS Script Runner Permissions Bypass","url":"https://feed.craftedsignal.io/briefs/2024-11-openc3-cosmos-bypass/"}],"language":"en","title":"CraftedSignal Threat Feed — OpenC3","version":"https://jsonfeed.org/version/1.1"}