Mar 4, 2026·5 min read·47 visits
OpenClaw reuses the primary gateway authentication token as a salt for hashing user IDs sent to LLM providers. Attackers with access to LLM logs can brute-force these hashes to recover the admin token, granting full control over the AI assistant. Fixed in version 2026.2.22.
A critical vulnerability in OpenClaw allows for the recovery of high-privilege gateway authentication tokens due to an insecure fallback mechanism in the privacy-preservation logic. When anonymizing owner identifiers for external LLM prompts, the system defaults to using the sensitive `gateway.auth.token` as a cryptographic salt if no dedicated display secret is configured. This results in the transmission of hashes derived from the authentication token to third-party providers, enabling offline brute-force attacks to recover the administrative credentials.
OpenClaw, a personal AI assistant, interacts with third-party Large Language Model (LLM) providers by sending system prompts that often include user context. To preserve privacy, the system supports an ownerDisplay: "hash" configuration, which replaces cleartext owner identifiers (such as phone numbers or user names) with cryptographic hashes before transmission.
However, prior to version 2026.2.22, the implementation of this hashing mechanism contained a critical flaw in its key management logic. If the user did not explicitly configure a commands.ownerDisplaySecret, the application fell back to using the gateway.auth.token or gateway.remote.token as the salt for the hash operation. These tokens are high-privilege credentials used for authenticating with the OpenClaw gateway and executing administrative commands.
By using the authentication token as a salt for low-entropy inputs (like phone numbers) and transmitting the resulting hash to external entities (LLM providers), OpenClaw inadvertently exposed the token to offline cryptographic attacks. This violation of the principle of key separation transforms a privacy feature into a mechanism for credential exfiltration.
The vulnerability resides in the configuration resolution logic within the agent runners, specifically in src/agents/cli-runner/helpers.ts and embedded runner counterparts. The root cause is an insecure fallback chain implemented using the nullish coalescing operator (??) in the buildAgentSystemPrompt or helper functions.
When the system prepares the prompt context, it attempts to resolve the ownerDisplaySecret. The vulnerable code path prioritized the specific secret but dangerously fell back to sensitive authentication tokens if the specific secret was undefined. This logic effectively treated the authentication token as a dual-use secret: both for API access control and as entropy for data masking.
Technically, this manifests as a CWE-1204 (Generation of Weak Initialization Vector/Salt) and CWE-200 (Exposure of Sensitive Information). Because the output of this operation (the hashed owner ID) is sent to external servers (OpenAI, Anthropic, etc.), the secret material used to generate the hash leaves the trust boundary of the local OpenClaw instance.
The following analysis of src/agents/cli-runner/helpers.ts illustrates the insecure fallback and the subsequent remediation.
Vulnerable Code (Pre-Patch):
The code directly accesses the gateway tokens if ownerDisplaySecret is missing. This tightly couples the hashing logic with administrative credentials.
// src/agents/cli-runner/helpers.ts
const ownerDisplaySecret =
params.config?.commands?.ownerDisplaySecret ??
params.config?.gateway?.auth?.token ?? // <--- CRITICAL: Leaks Auth Token
params.config?.gateway?.remote?.token; // <--- CRITICAL: Leaks Remote TokenFixed Code (Patch 2026.2.22):
The fix involves decoupling the display secret from the gateway configuration. The fallback to gateway.auth.token is removed entirely. A new helper function resolveOwnerDisplaySetting is introduced to ensure a dedicated secret exists, generating a random 32-byte buffer if necessary.
// src/agents/cli-runner/helpers.ts
import { resolveOwnerDisplaySetting } from '../utils/config';
// ... inside function
const ownerDisplay = resolveOwnerDisplaySetting(params.config);
return buildAgentSystemPrompt({
// ... other params
ownerDisplay: ownerDisplay.ownerDisplay,
// FALLBACK REMOVED: Now uses a strictly dedicated secret
ownerDisplaySecret: ownerDisplay.ownerDisplaySecret,
});This change ensures that even if the configuration is incomplete, the system will never silently downgrade security by reusing the master authentication token.
An attacker does not need direct access to the OpenClaw instance to exploit this vulnerability; they require access to the data sent to the LLM provider or the logs thereof. This could be achieved by an attacker with access to the LLM provider's logs, a Man-in-the-Middle (MitM) attacker on the network (if TLS is compromised or terminated early), or through shared access to conversation histories.
Attack Steps:
Hash("+15550199", Salt).Salt value is revealed. Due to the vulnerability, this Salt is the gateway.auth.token.The impact of this vulnerability is critical because it breaks the fundamental security barrier of the application: authentication.
gateway.auth.token is the master key for the OpenClaw instance. Its compromise allows full read access to all stored data, conversation history, and connected integrations.CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (Score: 9.8). The attack vector is Network, complexity is Low (once logs are accessed), and no privileges or user interaction are required.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
OpenClaw OpenClaw | < 2026.2.22 | 2026.2.22 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-1204 (Weak Salt) |
| CVSS v3.1 | 9.8 (Critical) |
| Attack Vector | Network |
| Impact | Credential Exposure / RCE |
| Exploit Status | Poc Available |
| Patch Date | 2026-02-22 |
WWBN AVideo versions through 29.0 contain an OS command injection vulnerability (CWE-78) in the standalone API utility function listFFmpegProcesses(). The function constructs a shell pipeline to monitor active FFmpeg processes by interpolating a user-controlled keyword parameter directly into a single-quoted grep argument without sanitization or shell escaping. An attacker capable of crafting or submitting a valid encrypted codeToExec payload can break out of the single-quoted argument context and execute arbitrary operating system commands with the privileges of the web server user.
Ruflo versions prior to 3.16.3 expose the Model Context Protocol (MCP) bridge HTTP endpoints (`POST /mcp` and `POST /mcp/:group`) on all network interfaces (`0.0.0.0:3001`) without authentication. Because the primary JSON-RPC tool dispatcher (`executeTool()`) bypasses existing tool blocklists, an unauthenticated network attacker can invoke the `terminal_execute` tool to achieve arbitrary command execution inside the bridge container. This initial access permits full exfiltration of third-party LLM provider API keys, unauthorized access to the co-located MongoDB instance, and manipulation of the AgentDB learning store.
In etcd versions prior to 3.5.32 and 3.6.13, configuring the server with --listen-client-http-urls decouples HTTP and gRPC traffic onto distinct network listeners. Due to an implementation flaw in how TLS configurations are passed to the gRPC server instance, the Certificate Revocation List (CRL) defined by --client-crl-file is enforced exclusively on the HTTP listener and omitted entirely on the dedicated gRPC listener. This allows an adversary possessing a revoked, CA-signed client certificate to bypass mutual TLS (mTLS) revocation checks and authenticate directly to the gRPC interface.
GitHub CLI (gh) versions 2.10.0 through 2.95.0 contain an input validation vulnerability in the `gh codespace jupyter` command path. When connecting to a remote Codespace to launch a JupyterLab session, the CLI retrieves a server URL via a remote procedure call (RPC) and passes it directly to the host operating system's default URL dispatcher without validating the scheme or target host. A compromised or malicious Codespace can return a custom protocol URI, such as `vscode://` or `vscode-insiders://`, allowing an attacker to invoke local desktop application handlers and achieve arbitrary command execution on the developer's workstation.
A path traversal vulnerability exists in the cakephp/twig-view plugin for the CakePHP framework prior to versions 1.3.3 and 2.1.2. The Cake\TwigView\Twig\FileLoader::findTemplate() method verifies template existence using PHP's native file_exists() function without ensuring the target path resides within configured application or plugin template directories. When user-controlled input is passed to template inclusion mechanisms, an unauthenticated remote attacker can read arbitrary local files accessible to the PHP runtime.
CVE-2026-64855 (GHSA-859w-52fx-hcm6) is a cryptographic signature verification and authentication bypass vulnerability in the soapbar Python library prior to version 0.13.0. In vulnerable versions, the verify_envelope_bsp() function derives its trust anchor directly from the incoming SOAP message by extracting an untrusted X.509 certificate embedded inside the wsse:BinarySecurityToken header. Because the function checks only the temporal validity of the extracted certificate without performing Certificate Authority (CA) chain validation or certificate pinning, an unauthenticated network attacker can generate a self-signed certificate, sign an arbitrary SOAP payload, and pass verification.