Mar 29, 2026·5 min read·37 visits
OpenClaw's Feishu extension parses unauthenticated JSON payloads before signature verification, enabling remote denial-of-service attacks.
The Feishu webhook extension in OpenClaw eagerly parses unauthenticated JSON payloads prior to verifying cryptographic signatures. This structural flow exposes the application to unauthenticated denial-of-service (DoS) attacks via resource exhaustion and introduces cryptographic fragility during signature reconstruction.
The @openclaw/extension-feishu module within the OpenClaw personal AI assistant exposes a webhook endpoint designed to receive event notifications from the Feishu (Lark) platform. This endpoint processes incoming HTTP requests, extracts payload data, and triggers corresponding actions within the assistant.
A structural vulnerability exists in how the extension processes unauthenticated HTTP requests prior to verifying their cryptographic signatures. The application reads and parses the request body as a JSON object before validating the x-lark-signature header provided by the Feishu platform.
This implementation pattern introduces an unauthenticated attack surface. By processing complex or excessively large JSON payloads before establishing trust, the application exposes the Node.js event loop to resource exhaustion. The vulnerability is classified as Uncontrolled Resource Consumption (CWE-400) and Insufficient Verification of Data Authenticity (CWE-345).
The root cause stems from an improper sequence of operations within the monitorWebhook function for the Feishu extension. The vulnerable implementation utilized a helper function named readJsonBodyWithLimit. This function automatically consumed the incoming HTTP request stream and invoked JSON.parse() to instantiate a JavaScript object.
Because this parsing operation occurred before the isFeishuWebhookSignatureValid function was called, the application inherently trusted the size and complexity of the incoming data. An unauthenticated attacker could submit deeply nested or exceptionally large JSON structures. Node.js processes JSON.parse() synchronously, meaning a complex payload blocks the main event loop, denying service to all other concurrent requests.
Furthermore, the original signature validation logic reconstructed the validation string by calling JSON.stringify(payload). JSON serialization is non-deterministic regarding key ordering and whitespace. This operational choice meant the stringified payload used for signature calculation might diverge from the raw bytes transmitted by Feishu, leading to false-negative validation failures or enabling potential bypass scenarios if serialization artifacts were manipulated.
The patch addresses the flaw by implementing a strict "Read-Validate-Parse" pipeline. The relevant changes in extensions/feishu/src/monitor.transport.ts demonstrate the shift from eager parsing to deferred parsing.
In the vulnerable version, the request body was parsed immediately:
// Vulnerable Implementation
const bodyResult = await readJsonBodyWithLimit(req, { limit: 1024 * 1024 });
// Signature validation occurs using the parsed object
if (!isFeishuWebhookSignatureValid({ headers: req.headers, payload: bodyResult.body, ... })) {
// ...
}The patched version replaces this with readRequestBodyWithLimit, which retrieves the raw byte stream as a string. Signature validation now operates directly on this raw string:
// Patched Implementation
const rawBody = await readRequestBodyWithLimit(req, { limit: 1024 * 1024 });
// Reject invalid signatures before any JSON parsing occurs
if (!isFeishuWebhookSignatureValid({ headers: req.headers, rawBody, ... })) {
respondText(res, 401, "Invalid signature");
return;
}
// Safe to parse only after cryptographic verification
const payload = parseFeishuWebhookPayload(rawBody);The cryptographic hash calculation was also updated to utilize params.rawBody instead of a stringified object:
const computedSignature = crypto
.createHash("sha256")
.update(timestamp + nonce + encryptKey + params.rawBody)
.digest("hex");This exact string matching ensures cryptographic integrity and completely removes the non-deterministic JSON.stringify operation from the validation path.
Exploiting this vulnerability requires network access to the OpenClaw instance's Feishu webhook endpoint (typically /hook/feishu). The attacker does not need valid credentials or a valid Feishu signature.
The primary attack methodology focuses on resource exhaustion. The attacker crafts an HTTP POST request containing a multi-megabyte JSON payload. This payload is structurally designed to maximize the CPU cycles required by the V8 JavaScript engine's JSON.parse() implementation. Deeply nested objects or large arrays of complex data types are highly effective for this purpose.
Upon receiving the request, the vulnerable OpenClaw server begins parsing the payload. Because Node.js is single-threaded, the synchronous parsing operation blocks the event loop. High-frequency submission of these payloads ensures the event loop remains blocked indefinitely, rendering the AI assistant unresponsive to legitimate user interactions and system events.
The primary impact of this vulnerability is a Denial of Service (DoS). Successful exploitation prevents the OpenClaw service from processing legitimate requests, severely degrading the availability of the personal AI assistant. The CVSS v3.1 vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L yields a base score of 6.5, reflecting the unauthenticated, remote nature of the attack.
Beyond resource exhaustion, the cryptographic fragility introduced by JSON.stringify presents a secondary integrity risk. While the primary observed behavior is a fail-closed scenario (where valid Feishu events are rejected due to serialization mismatches), the architectural flaw theoretically allows for forged event injection.
If an attacker identified a specific JSON structure that produced a predictable stringified output matching a previously captured signature, they could bypass the authentication check. This would grant the ability to inject forged commands into the OpenClaw assistant, impersonating authorized users or triggering unauthorized workflows.
The definitive remediation is to update the OpenClaw application to a release containing commit 5e8cb22176e9235e224be0bc530699261eb60e53 or later. This patch implements the correct Read-Validate-Parse operational sequence and resolves both the DoS vector and the cryptographic verification fragility.
For environments where immediate patching is not feasible, network-level mitigations should be applied. Administrators must restrict access to the /hook/feishu endpoint using firewalls or reverse proxy access control lists (ACLs). Only traffic originating from documented and verified Feishu/Lark IP address ranges should be permitted to reach the endpoint.
Security operations teams should monitor application telemetry for anomalies indicative of exploitation attempts. Specifically, high CPU utilization spikes originating from the Node.js process, coupled with an increased volume of 401 Unauthorized or 400 Bad Request responses on the webhook path, serve as strong indicators of active resource exhaustion attacks.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L| Product | Affected Versions | Fixed Version |
|---|---|---|
OpenClaw @openclaw/extension-feishu OpenClaw | < commit 5e8cb22176e9235e224be0bc530699261eb60e53 | 5e8cb22176e9235e224be0bc530699261eb60e53 |
| Attribute | Detail |
|---|---|
| Vulnerability Type | Denial of Service (DoS) / Cryptographic Bypass |
| CWE ID | CWE-400, CWE-345 |
| CVSS v3.1 Base Score | 6.5 |
| Attack Vector | Network |
| Authentication Required | None |
| Exploit Status | Unauthenticated DoS Possible |
The software does not properly control the allocation and maintenance of a limited resource thereby enabling an actor to influence the amount of resources consumed.
A symbolic link directory traversal vulnerability was identified in go-git, a pure Go implementation of the Git specification. This vulnerability allows an attacker to construct a repository that, when checked out or processed, bypasses directory boundaries to write or overwrite arbitrary files on the host filesystem.
CVE-2026-71557 is a path traversal vulnerability in go-git, a pure-Go implementation of Git. In vulnerable versions, the filesystem-backed storage engine fails to validate reference names before mapping them to on-disk paths. An attacker hosting a malicious Git server can advertise references containing directory traversal sequences, such as 'refs/heads/../../config', to write or overwrite files outside the intended reference storage directory.
An information disclosure vulnerability in the Nuxt development server allows adjacent network attackers to retrieve the absolute project root directory and a persistent workspace UUID by querying the unprotected Chrome DevTools workspace endpoint. This occurs when the development server is bound to a network-reachable interface, allowing requests that bypass the header-based security verification checks.
A Regular Expression Denial of Service (ReDoS) vulnerability exists in SvelteKit's content negotiation header parser prior to version 2.70.2. An unauthenticated remote attacker can exploit this vulnerability by sending a crafted Accept header with highly repetitive malformed values. This triggers catastrophic backtracking on the single-threaded Node.js/Bun event loop, leading to CPU exhaustion and full denial of service.
An OS command injection vulnerability exists in the npm package loading component of the jsii-diff CLI tool within the AWS jsii framework. Prior to version 1.131.0, when parsing package specifiers prefixed with `npm:`, the tool concatenated user-controlled inputs directly into a shell execution string via child_process.exec. This allows attackers to execute arbitrary shell commands under the context of the running Node.js process.
CodeIgniter4 versions prior to v4.7.4 contain a protocol-spoofing vulnerability due to improper verification of upstream reverse proxy forwarding headers. Remote, unauthenticated attackers can inject headers like X-Forwarded-Proto to deceive the framework into identifying an insecure HTTP request as a secure HTTPS connection.