Summary
OpenClaw may expose owner-only infrastructure tools to authenticated, write-scoped non-owner callers through the chat.send endpoint in certain identity-aware Gateway deployments. If the model invokes those tools and the caller can influence the chat turn, the caller may cause unauthorized configuration or scheduling changes, including persistent state modifications.
Affected context
The issue occurs in OpenClaw Gateway deployments that honor caller identity and apply narrower operator scopes. In this context, a non-owner caller with write access to chat.send may receive an agent tool inventory containing the owner-only gateway and cron tools. Shared-secret token and password callers are treated as fully trusted operators under the product's security model and are outside the described issue scope.
Exploit preconditions
- Attack surface: The authenticated
chat.sendendpoint in an OpenClaw Gateway deployment - Required access: A non-owner identity-bearing caller with write-scoped access to
chat.send - Trigger point: Starting a chat turn for which the agent can access the
gatewayorcrontools - Why exploitation is possible: Tool exposure is not sufficiently restricted by the caller's owner or operator privileges, allowing the model to perform operations intended only for owners
- Additional dependency: Practical impact depends on the model selecting a privileged tool and the caller being able to steer the conversation
Why this happens
The underlying bug is a failure to enforce authorization at the boundary between caller identity and agent tool availability. Owner-only infrastructure capabilities are included in a non-owner caller's tool inventory despite narrower operator scope, allowing an otherwise authorized request to reach privileged operations. This maps to CWE-269: Improper Privilege Management, because the system does not consistently maintain privilege boundaries when delegating actions through the chat agent.
Potential impact
- A non-owner caller may perform unauthorized Gateway configuration changes
- A caller could schedule, modify, or remove cron-based operations
- Persistent application state may be altered without owner authorization
- Operational behavior or automation could be disrupted
- Security controls or deployment settings could be weakened
General mitigation guidance
Mitigation generally focuses on enforcing authorization before capabilities are exposed or executed.
Common defensive patterns include:
- Restricting
chat.sendto administrators in identity-bearing deployments - Removing
gatewayandcronfrom agent tool policies for non-owner contexts - Deriving tool inventories from the authenticated caller's effective privileges
- Applying authorization checks again at each privileged tool execution boundary
- Treating privileged configuration and scheduling actions as deny-by-default
- Separating trusted operator credentials from narrower identity-based permissions
- Running agents with the minimum operational authority required for their tasks
How teams detect issues like this
Organizations can look for this class of issue through:
- Static analysis and code review checks comparing endpoint authorization with tool-registration logic
- Tests that exercise every supported caller role against the complete agent tool inventory
- Policy checks ensuring owner-only tools are excluded from non-owner sessions
- Audit-log monitoring for privileged
gatewayorcronactions initiated by non-owner identities - Alerts for persistent configuration or scheduling changes that lack owner authorization
Automated application-security review tools may help identify inconsistent privilege checks across API and tool-execution layers.

