subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
import subprocess script_path = os.path.join(autoglm_skill, 'scripts', 'generate.py') if os.path.exists(script_path): result = subprocess.run( [sys.executable, script_path, '--prompt', prompt, '--output', output_path],- Confidence
- 89% confidence
- Finding
- The code executes another local skill via subprocess based on a fixed path under the user's home directory. Although it does not use shell=True and passes arguments as a list, this still expands the trust boundary: if that external skill is modified, replaced, or untrusted, this module will execute arbitrary code during image search.
