T05 · Unauthorized Access and Privilege Escalation
- Location
feishu_handler.py:48- Finding
Administrative Commands Execute Without Explicit Authorization
- Content
View full analysis
' ''", file=sys.stderr) sys.exit(1) result = handle(sys.argv[1]) if result is None: sys.exit(0) msg_type, content = result if msg_type == "card": ok = send_card(sys.argv[2], json.dumps(content)) print("Card sent successfully" if ok else "Card delivery failed") else: print(content) ``` The dispatched command reaches the following privileged operations: ```python def cmd_toggle(): cur = get_streaming(); new_val = not cur if cur in (True,False) else True subprocess.run(["openclaw","config","set","channels.feishu.streaming",str(new_val).lower()], capture_output=True, timeout=5) return make_card("📡 Typing Effect", [ md(f"**{'✅ Enabled' if new_val else '❌ Disabled'}**"), hr(), md(f"Typing effect has been {'enabled' if new_val else 'disabled'}"), ]) def cmd_set_mention(mode): val = "true" if mode.upper()=="A" else "false" subprocess.run(["openclaw","config","set","channels.feishu.requireMention",val], capture_output=True, timeout=5) label = "✅ Rep ...[truncated 3193 chars]- Remediation
View remediation
