subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
usage_output=str(usage_path) if usage_path else "", ) try: subprocess.run(shlex.split(command), check=True) except subprocess.CalledProcessError as exc: raise SystemExit( f"Frame editor failed on frame {frame.name} with exit code {exc.returncode}: {command}"- Confidence
- 93% confidence
- Finding
- The script executes a user-supplied command template via subprocess after formatting it with file paths and other values. Although shell metacharacter injection is reduced by avoiding shell=True, this still permits arbitrary program execution because --editor-cmd is fully attacker-controlled and is run once per frame, which can lead to destructive local command execution or large-scale abuse if untrusted input can reach this parameter.
