OpenC3 COSMOS allows arbitrary writes to plugins directory via path-traversed config filenames
OpenC3 COSMOS contains a design flaw in the save_tool_config() function that allows saving tool configuration files at arbitrary locations inside the shared /plugins directory tree by supplying crafted configuration filenames. Although the implementation sufficiently mitigates standard path traversal attacks, by canonicalizing filename to an absolute path, all plugins share this same root directory. That enables users to create arbitrary file structures and overwrite existing configuration files within the shared /plugins directory.
In function save_tool_config() (local_mode.rb) responsible for saving user-supplied tool configuration, the desired saving directory is not sufficiently enforced, instead allowing writes inside entire OPENC3_LOCAL_MODE_PATH.
openc3-COSMOS-cmd-tlm-api) or using Bucket Explorer (plugin_default)Modifying the data of other plugins
왜 이 VPI인가 (설명가능 · 실험적)
VPI 산정 기준
| 영향도 | 43.00 |
| 악용 신호(추가 악용신호 없음) | ×1.00 |
| VPI | 43.00 |
VPI 공식 vpi-v1 기준