subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if os.path.exists(image_file): # 使用 openclaw message 命令推送 # 注意:--target 指定接收人,这里使用当前会话的 user message_result = subprocess.run( ["openclaw", "message", "send", "--channel", "feishu", "--target", "ou_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", # 替换为实际用户 ID- Confidence
- 86% confidence
- Finding
- This code performs outbound messaging to Feishu through an external CLI, enabling automated exfiltration or unreviewed distribution of generated content outside the local execution boundary. Even though the arguments are hardcoded and not shell-injected, the security issue is the presence of an external messaging capability in a skill whose stated purpose is report generation for learning/reference.
