subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"or pass --stage-media-script." ) result = subprocess.run( [sys.executable, str(script), str(source)], capture_output=True, text=True,- Confidence
- 90% confidence
- Finding
- The code executes an external Python script whose path can come from a CLI argument or environment variable, then trusts its output. That creates a code-execution boundary outside this skill's control; if an attacker can influence the path or environment, they can cause arbitrary local code execution under the user's privileges.
