CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-V865-P3GQ-HW6M

GHSA-V865-P3GQ-HW6M: Path Canonicalization Bypass in OpenClaw Gateway

Alon Barad
Alon Barad
Software Engineer

Mar 3, 2026·5 min read·18 visits

Executive Summary (TL;DR)

OpenClaw versions prior to 2026.3.2 contain a logic flaw in the gateway's request path canonicalization. By using deeply nested URL encoding, an attacker can mask protected routes from the security filter while the downstream router correctly resolves them, granting unauthenticated access to internal APIs.

A path-based authentication bypass vulnerability exists in the OpenClaw AI Gateway due to insufficient URL decoding depth. Attackers can bypass the Policy Enforcement Point (PEP) by using multi-encoded path separators (e.g., %252f), allowing unauthorized access to sensitive plugin routes.

Vulnerability Overview

The OpenClaw AI infrastructure utilizes a centralized gateway acting as a Policy Enforcement Point (PEP). This component is responsible for intercepting incoming HTTP requests and enforcing authentication on protected routes, specifically those prefixed with /api/channels. The security model relies on comparing the incoming request path against a list of known protected prefixes.

However, the mechanism for normalizing these paths prior to inspection was insufficient. The gateway employed a shallow decoding strategy with a fixed limit on decoding passes. This created a discrepancy between how the security layer viewed the request path and how the internal plugin router interpreted it—a vulnerability class known as "Path Impedance Mismatch" (CWE-436).

Consequently, attackers can craft HTTP requests with multi-encoded characters (such as %25252f for /) that evade the gateway's blocklist but successfully resolve to sensitive endpoints within the application's routing logic. This effectively bypasses authentication for affected plugins.

Root Cause Analysis

The vulnerability arises from two distinct architectural flaws: bounded shallow canonicalization and implicit route registration.

First, the gateway's canonicalizePathForSecurity function enforced a hard limit of 3 decoding passes (MAX_PATH_DECODE_PASSES = 3). The intent was likely to prevent Denial of Service (DoS) via infinite decoding loops. However, this limit was too low. If an attacker encoded a slash character four times (e.g., %2525252f), the gateway would decode it three times, resulting in a string containing %2f. Since %2f is not a literal slash /, the prefix check path.startsWith("/api/channels") would fail, and the gateway would forward the request as "public" traffic.

Second, the plugin architecture utilized a generic api.registerHttpHandler() method. This method registered broad catch-all handlers without explicit authentication metadata. The internal router, typically using a robust framework-level decoder, would continue decoding the path until resolution, eventually interpreting the lingering %2f as a valid directory separator. This alignment failure allowed the request to reach the handler code, which assumed authentication had already been performed by the gateway.

Code Analysis

The remediation strategy involved shifting from a shallow decode to a bounded fixpoint strategy with fail-closed logic. Below is a conceptual representation of the vulnerability and the fix.

Vulnerable Logic (Simplified)

// Pre-fix: Limited passes allowed evasion
const MAX_PATH_DECODE_PASSES = 3;
 
function canonicalizePathForSecurity(path) {
  let decoded = path;
  for (let i = 0; i < MAX_PATH_DECODE_PASSES; i++) {
    const next = decodeURIComponent(decoded);
    if (next === decoded) break;
    decoded = next;
  }
  // If attacker used 4x encoding, 'decoded' still contains encoded chars
  // and might not match the protected prefix.
  return decoded;
}

Patched Logic

// Post-fix: Deep decode with anomaly detection
const MAX_PATH_DECODE_PASSES = 32;
 
function canonicalizePathForSecurity(path) {
  let decoded = path;
  let i = 0;
  
  while (i < MAX_PATH_DECODE_PASSES) {
    const next = decodeURIComponent(decoded);
    if (next === decoded) return decoded; // Stable
    decoded = next;
    i++;
  }
 
  // FIX: If we hit the limit, assume malicious intent (Fail-Closed)
  throw new SecurityAnomaly("Path canonicalization depth exceeded");
}
 
// Additional check: If result still looks encoded, treat as suspicious
if (decoded.includes("%")) {
    requireFullAuthentication();
}

The fix increases the decode limit significantly and, crucially, treats the exhaustion of this limit or the presence of residual encoded artifacts as a security anomaly, forcing a default-deny or full-auth state.

Exploitation Scenario

To exploit this vulnerability, an attacker targets a specific endpoint known to require authentication, such as the configuration profile for a messaging channel.

Target: /api/channels/nostr/default/profile

Attack Vector:

  1. The attacker constructs a request where the slashes are triple-encoded: /api%25252fchannels%25252fnostr.
  2. The OpenClaw gateway receives the request. Its decoder runs 3 times, stripping layers of encoding but stopping while the string still contains %2f (encoded slash).
  3. The gateway checks if the path starts with /api/channels. It does not, because the string is literally /api%2fchannels.
  4. The gateway classifies the request as public/unrestricted and forwards it.
  5. The internal router receives /api%2fchannels... and decodes it fully to /api/channels/nostr.
  6. The router matches this to the sensitive handler, which executes without checking for a session token.

This grants the attacker read/write access to the channel configuration depending on the HTTP method used.

Impact Assessment

This vulnerability represents a significant security lapse for deployments exposing the OpenClaw gateway to untrusted networks. The primary impact is Authentication Bypass, allowing unauthorized interaction with internal plugins.

Confidentiality: Attackers can access private channel data, chat history (via plugins like BlueBubbles or Zalo), and system configuration profiles.

Integrity: If the protected endpoints support state-changing operations (POST/PUT/DELETE), an attacker could modify channel settings, inject malicious configuration, or disrupt service operations.

Availability: While primarily an access control issue, the "Service Shadowing" effect mentioned in the advisory could allow malicious plugins to hijack routes intended for legitimate services, leading to denial of service for specific features.

Official Patches

OpenClawFix Commit: Fail-closed path canonicalization

Fix Analysis (2)

Technical Appendix

CVSS Score
6.5/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Affected Systems

OpenClaw AI GatewayOpenClaw Plugin RouterBlueBubbles PluginZalo PluginGoogle Chat Plugin

Affected Versions Detail

Product
Affected Versions
Fixed Version
OpenClaw
OpenClaw
< 2026.3.22026.3.2
AttributeDetail
CWECWE-436 (Interpretation Conflict)
Attack VectorNetwork (Remote)
ImpactAuthentication Bypass
SeverityModerate
StatusPatched
ExploitabilityHigh (Low Complexity)

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1027Obfuscated Files or Information
Defense Evasion
CWE-436
Interpretation Conflict

Interpretation Conflict

Known Exploits & Detection

GitHub AdvisoryPath-based authentication bypass via canonicalization mismatch

Vulnerability Timeline

Fix committed to main branch
2026-03-02
OpenClaw version 2026.3.2 released
2026-03-02
GHSA-V865-P3GQ-HW6M published
2026-03-03

References & Sources

  • [1]GHSA-V865-P3GQ-HW6M Advisory
  • [2]OpenClaw Security Policy

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 4 hours ago•CVE-2026-54347
8.7

CVE-2026-54347: Stored Cross-Site Scripting in Froxlor DNS TXT Record Configuration

A critical stored Cross-Site Scripting (XSS) vulnerability was identified in Froxlor server administration software panel before version 2.3.8. Authenticated customers with DNS editor privileges can inject malicious JavaScript into DNS TXT records. Because the application processes these values via a raw formatting callback without context-aware HTML entity encoding, the payload executes in the security context of administrative users who view the affected domain's DNS zones.

Amit Schendel
Amit Schendel
3 views•6 min read
•about 5 hours ago•CVE-2026-54348
7.2

CVE-2026-54348: Second-Order SQL Injection in Froxlor API Layer

An authenticated administrator with privileges to manage admin accounts (such as change_serversettings) can execute arbitrary SQL commands via a second-order SQL injection vulnerability. The flaw resides in Froxlor's administrative API endpoints, specifically during the handling of IP address mapping parameters which are stored as serialized arrays and later interpolated without sanitization into active database queries. This vulnerability allows high-privileged administrative attackers to compromise the database. By injecting a payload into administrative profile metadata, an attacker can extract sensitive credentials, manipulate backend settings, or potentially disrupt database integrity. The vulnerability affects all versions of Froxlor prior to 2.3.8.

Amit Schendel
Amit Schendel
3 views•6 min read
•about 6 hours ago•CVE-2026-54543
5.4

CVE-2026-54543: DNS Resource Record (RR) Injection in Froxlor DomainZones API

CVE-2026-54543 is a DNS Resource Record (RR) Injection vulnerability in Froxlor, an open-source server administration control panel. Prior to version 2.3.8, the DomainZones.add API command failed to perform strict sanitization and validation on the user-controlled record (label) and type parameters before serializing them into BIND-compatible zone files. An authenticated customer with DNS zone management permissions can inject control characters, breaking out of the original record context to define unauthorized resource records within managed zones.

Amit Schendel
Amit Schendel
4 views•7 min read
•about 6 hours ago•CVE-2026-42533
9.2

CVE-2026-42533: NGINX Map Directive and Regex Matching Pre-Auth Heap Buffer Overflow & Info Leak

CVE-2026-42533 is a critical security vulnerability discovered in NGINX Open Source, NGINX Plus, NGINX Ingress Controller, and related products, referred to as the 'Two-Pass Capture-Clobbering' bug. The flaw is situated within NGINX's internal evaluation engine when handling complex variables, exposing a heap-based buffer overflow and information leak when a configuration chains regular expression-based map directives with numbered capture groups. An unauthenticated remote attacker can exploit this weakness by transmitting crafted HTTP requests to trigger remote code execution or defeat ASLR.

Alon Barad
Alon Barad
7 views•7 min read
•about 7 hours ago•CVE-2026-55593
6.5

CVE-2026-55593: Persistent Administrative Hijacking via Cross-Site Request Forgery in Froxlor Ajax Router

Froxlor prior to version 2.3.8 contains a high-severity architectural flaw where the standalone lib/ajax.php entry point bypasses the centralized request validation in lib/init.php. Unauthenticated remote attackers can leverage Cross-Site Request Forgery (CSRF) to induce authenticated administrators to submit forged requests that modify API key whitelists and expiration dates, potentially yielding persistent, out-of-band administrative control.

Amit Schendel
Amit Schendel
5 views•8 min read
•about 8 hours ago•CVE-2026-62988
9.0

CVE-2026-62988: Multi-Factor Authentication and Credential Bypass in Froxlor API

An insecure data retrieval flaw in the Froxlor server administration panel API allows authenticated remote attackers to retrieve unredacted bcrypt password hashes and Base32-encoded Time-Based One-Time Password (TOTP) seeds. Affected endpoints include several 'get' and 'listing' handlers for customers, administrators, and FTP accounts. Utilizing these leaked parameters, attackers can crack the password hashes offline and concurrently generate valid second-factor authentication codes to completely bypass access controls.

Amit Schendel
Amit Schendel
8 views•6 min read