subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
] print(f"\nRunning Vina...") result = subprocess.run(cmd, capture_output=True, text=True, cwd=output_dir) output = result.stdout + result.stderr print(output[-2000:])- Confidence
- 72% confidence
- Finding
- The script executes a user-supplied binary path via --vina_path, allowing whoever controls inputs to make the program run an arbitrary executable. Although this is not shell injection, it is still an execution sink that can be abused if this skill is exposed in an automation platform or multi-tenant environment where users can supply parameters.
