subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if not command: raise RuntimeError("外部 skill 命令未配置") args = shlex.split(command) + list(extra_args or []) completed = subprocess.run( args, text=True, encoding="utf-8",- Confidence
- 84% confidence
- Finding
- The code executes an external command derived from a configurable string (`command`) plus additional arguments, with no allowlist, path restriction, or trust boundary enforcement. Although `subprocess.run` is invoked without `shell=True`, this still permits execution of arbitrary binaries if an attacker can influence the configured command or related inputs, which is especially sensitive in a skill-bridging component designed to call sibling skills.
