subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"""调用 bridge_to_self_improving 同步到 ~/self-improving/""" if BRIDGE_SCRIPT.exists(): import subprocess result = subprocess.run( [sys.executable, str(BRIDGE_SCRIPT)], capture_output=True, text=True, timeout=30) print(result.stdout)- Confidence
- 93% confidence
- Finding
- The code launches an external Python script via subprocess, which is a real code-execution sink. In this file, the executed path is not hardcoded to a trusted location but derived from configurable state, so invoking sync() can run attacker-controlled code if the environment or repository layout is manipulated.
