google-colab-runner
Audited by Socket on Nov 4, 2026
2 alerts found:
Anomalyx2This code generates and runs a Colab-based ComfyUI rendering workflow, including archive extraction, dependency installation, model downloads, and execution of a bundled runner. It has concrete risks if bundle inputs are untrusted: ZIP path traversal, shell command injection, and possible disclosure of the `HF_TOKEN` bearer credential to a model URL specified in bundle metadata. The optional Cloudflare tunnel can expose ComfyUI without authentication, but is disabled by the generated `MODE = "package"` setting. Severity is medium for untrusted inputs; the fragment alone does not establish malicious intent.
This is a local mock server that generates synthetic media and simulates ComfyUI responses; it contains no evident credential theft, external network communication, or dynamic execution of submitted workflows. Its unauthenticated /upload/image and /view endpoints use unsanitized client filenames, enabling traversal-based file writes or reads if a local client can reach the server. The loopback binding limits exposure, but the file access behavior is a security concern; the configurable process exit appears intended for testing. Severity: moderate when accessible to untrusted local clients.