T09 · Insecure Skill Coding Practices
- Location
lib/comfyui_automation.py:256- Finding
ComfyUI Service Is Exposed on All Network Interfaces Without Access Controls
- Content
View full analysis
`. The skill does not add authentication, authorization, transport encryption, or source-address restrictions. The actual exposure also depends on the host firewall and ComfyUI configuration, but the launch command makes remote access possible by default. ComfyUI installations can include custom nodes with extensive filesystem, network, model-loading, or command-execution capabilities. Exposing such an instance increases the consequences of any weakness in ComfyUI or an installed custom node. ### Attack Path 1. A user invokes image generation while ComfyUI is not already running. 2. `ensure_comfyui_running()` calls `start_comfyui()`. 3. `_build_start_command()` adds `--listen 0.0.0.0`. 4. ComfyUI begins listening on every network interface at the configured port. 5. A host with network access connects to the exposed ComfyUI API. 6. The remote host may inspect API data, submit workflows, consume system resources, or reach capabilities exposed by installed custom nodes. ### Impact Assessment An attacker able to reach the port may obtain unauthorized access to the ComfyUI API and its workflow-processing capabilities. Potential effects include disclosure of workflow history, unauthorized generation jobs, GPU or CPU resource exhaustion, access to generated content, and abuse of installed custom nodes. The scope is the ComfyUI process and any files, devices, network resources, or custom-node capabilities access ...[truncated 44 chars]- Remediation
View remediation
