subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
capture_output=True, timeout=10) # 实际标记以上面为准,这里只是为了后续 end 能引用 try: result = subprocess.run( cmd_args, capture_output=True, text=True, timeout=30, ) wall = subprocess.run([sys.executable, "-c", "import time; print(time.perf_counter())"],- Confidence
- 94% confidence
- Finding
- This function executes arbitrary cmd_args provided to it, with no validation, allowlisting, or trust boundary enforcement. In a security-testing engine that consumes blueprint- and plan-derived data, this can lead to execution of attacker-controlled commands or unintended local programs if upstream inputs are compromised.
