subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"Check mirror archive structure") if not os.path.isfile(ENV_FILE): os.makedirs(os.path.dirname(ENV_FILE), exist_ok=True) subprocess.run(RUNTIME_INIT, capture_output=True) # Config .env config = get_keyring_config()- Confidence
- 93% confidence
- Finding
- The script executes RUNTIME_INIT as a subprocess without validating that the target file is trusted, immutable, or confined to an expected directory. In this skill, the runtime is described as downloaded/extracted from a mirror, so invoking an extracted init script can lead to arbitrary code execution if the archive or path is tampered with.
