The vulnerability lies in the improper handling of authentication and authorization in OpenClaw's Feishu integration. Specifically, the application failed to enforce security checks when certain configurations were missing, leading to a fail-open state. The analysis of the patch commit c8003f1b33ed2924be5f62131bd28742c5a41aae reveals two primary weaknesses that were addressed:
-
Webhook Signature Bypass: The isFeishuWebhookSignatureValid function in extensions/feishu/src/monitor.transport.ts would incorrectly return true if the encryptKey was not provided. This allowed an attacker to bypass signature verification by simply not providing a signature. The monitorWebhook function, which sets up the webhook listener, also failed to enforce the presence of this key, allowing the application to start in this insecure state.
-
Blank Token Acceptance in Card Actions: The beginFeishuCardActionToken function in extensions/feishu/src/card-action.ts treated blank or empty tokens as valid. This logic error was exploited in the handleFeishuCardAction function, which processed these tokens without proper validation, allowing for unauthorized actions and replay attacks.
The identified vulnerable functions are the ones that directly implemented this flawed logic. An attacker could exploit these vulnerabilities to send unauthenticated requests to the command dispatch, potentially leading to arbitrary command execution.