subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if not script.is_file(): return try: proc = subprocess.run( [sys.executable, str(script), "--print-response"], capture_output=True, text=True, timeout=15, )- Confidence
- 86% confidence
- Finding
- The code executes a Python script located under the repository's skills directories without any trust validation, integrity check, or path ownership check. In a hostile or compromised repository, an attacker can place a malicious check_update.py at that expected location and get arbitrary code execution whenever this helper runs, making the update-check context more dangerous because the execution is automatic and appears routine.
