subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
]) def cmd_restart(): subprocess.run(["openclaw","gateway","restart"], capture_output=True, timeout=10) return make_card("🚀 重启中", [ md("**重启指令已发出**"), hr(),- Confidence
- 82% confidence
- Finding
- This fixed subprocess call triggers a service restart from a chat command, creating a remote administrative control path. In a messaging-skill context, that can be abused for denial of service or operational disruption if unauthorized users can invoke the skill or if command provenance is weak.
