Summary
OpenClaw's ClickClack agent-mode dispatch feature contains an authorization bypass that can ignore the toolsAllow policy check under specific conditions.
When the feature is enabled and reachable, a lower-trust caller or configured input path may trigger actions that should require stronger authorization, increasing the risk of misuse or privilege boundary violations.
Affected context
This vulnerability arises in deployments that use the ClickClack agent-mode dispatch feature in OpenClaw, particularly when it is exposed through APIs, automation pipelines, or integrated workflows.
It is most relevant where multiple trust tiers of callers exist, and policy checks such as toolsAllow are expected to enforce access boundaries between low-privilege and high-privilege actions.
Exploit preconditions
- Attack surface: ClickClack agent-mode dispatch endpoints or integrations that are reachable by lower-trust callers or automated inputs.
- Required access: Ability to invoke the affected dispatch feature or supply data through the configured input path that the agent-mode dispatch consumes.
- Trigger point: An authorization decision where the
toolsAllowpolicy should be consulted but can be skipped or ignored during agent-mode dispatch. - Why exploitation is possible: The authorization flow is incomplete or mis-ordered, allowing actions to be executed without consistently enforcing the intended policy gate for all code paths.
Why this happens
The issue stems from an authorization logic flaw in how ClickClack agent-mode dispatch consults the toolsAllow policy.
Certain control flows can bypass or omit the policy check, mapping directly to CWE-863: Improper Authorization, where the system fails to verify that the requester is permitted to perform an operation relative to the configured access rules.
Abstractly, the pattern is: an entry point capable of powerful actions is reachable from a lower-trust context, but the enforcement of required policy checks is conditional, incomplete, or not applied uniformly across all execution paths.
Potential impact
- Lower-trust callers may trigger high-impact operations that should require stronger authorization.
- Policy boundaries between tools or actions can be weakened or effectively disabled.
- Workflows and automation may perform unintended side effects, including configuration changes or sensitive data operations.
- Potential lateral movement across internal capabilities exposed through the ClickClack dispatch mechanism.
General mitigation guidance
Effective mitigation focuses on ensuring consistent, centralized authorization enforcement for all agent-mode dispatch paths.
Recommended patterns include:
- Applying a single, mandatory authorization gate that is invoked for every dispatch operation, regardless of caller or input source.
- Treating all external and semi-trusted inputs as untrusted, and binding policy decisions explicitly to the authenticated principal rather than to implicit context.
- Designing dispatch mechanisms so that powerful actions require explicit opt-in policies and cannot be reached via lower-trust routes.
- Limiting the privileges of tools and actions invoked by agent-mode dispatch, using least-privilege principles and separate roles for high-risk operations.
- Using configuration defaults that deny access to sensitive actions unless clearly and narrowly authorized.
How teams detect issues like this
Detection typically focuses on authorization flows and policy enforcement consistency:
- Static analysis and code review to trace all entry points into ClickClack agent-mode dispatch and verify that the
toolsAllow(or equivalent) policy is enforced on every path. - Inspection of access control logic for "early returns", exception handlers, or alternate execution branches that invoke actions without passing through the central authorization check.
- Logging and monitoring of dispatch decisions, including caller identity, requested action, and policy evaluation outcome, to detect anomalies where lower-trust callers perform high-privilege operations.
- Use of automated security review tools or policy-as-code engines that can validate that all relevant routes and handlers declare and enforce required authorization rules.

