Commit Graph
2 Commits
Author SHA1 Message Date
Meisoftcoltd 5d54025133 security: Gate Interact node debug REPL behind environment variable
This commit addresses a security vulnerability where the `Interact` node
exposed an interactive Python shell (`code.interact`) by default, allowing
arbitrary code execution.

Changes:
- Modified `debug.Interact.interact` to check for `COMFYUI_SB_ENABLE_INTERACTIVE_DEBUG` environment variable.
- The REPL is now disabled by default. It only activates if the variable is set to "1", "true", or "yes".
- Added a warning message when the node is executed without the flag.
- Updated the node's docstring to include a security warning and instructions.

Verification:
- Verified that `code.interact` is not called by default.
- Verified that `code.interact` is called when the environment variable is set.
- Confirmed `import os` exists in `debug.py`.
2026-02-06 13:30:19 +00:00
Meisoft ecc6836a41 Add files via upload 2026-01-26 03:32:33 +01:00