subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def has_self_test(fp): r = subprocess.run([sys.executable, fp, "self-test"], capture_output=True, text=True, timeout=30) return r.returncode == 0 and "PASS" in r.stdout- Confidence
- 97% confidence
- Finding
- This helper executes arbitrary Python files from the target product directory as part of verification. In a CI context, that means an untrusted skill author can place malicious code in a .py file and have it run automatically during validation, resulting in arbitrary code execution in the verifier's environment.
