subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# 使用OpenClaw CLI发送到飞书 feishu_user_id = os.getenv("FEISHU_USER_ID", "ou_eb6695d143b4010149cbf8de7f0e39bd") cmd = f"openclaw message send --channel feishu --target {feishu_user_id} --message {shlex.quote(message_text)}" result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=30) if result.returncode == 0: logger.info("飞书通知已发送")- Confidence
- 98% confidence
- Finding
- result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=30)
