subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
] # 执行脚本 result = subprocess.run( cmd, capture_output=True, text=True,- Confidence
- 89% confidence
- Finding
- This code executes an external fault-handling script against a host and script identifier derived from runtime input, creating a powerful action boundary with limited validation or authorization checks in this file. In an automation workflow, that means a caller who can influence ip or script_id may trigger operationally dangerous actions on infrastructure, and the resulting output is trusted and propagated downstream.
