T05 · Unauthorized Access and Privilege Escalation
Error
- Location
- SKILL.md:125
- Finding
- Global Disabling of Command Execution Restrictions## Vulnerability Details **File Location**: `SKILL.md:125-126` **Vulnerability Type**: `T05: Unauthorized Access and Privilege Escalation` **Risk Level**: High **Complete Code Snippet**: ```markdown ### Task reports "exec denied: allowlist miss" Cause: `tools.exec.security` is set to `allowlist`, but `paths` is empty. Fix: Run `openclaw config set tools.exec.security full`, then restart the gateway. ``` The same unsafe recommendation also appears in `references/config-guide.md:77`: ```markdown 1. Task reports "exec denied" → `openclaw config set tools.exec.security full` ``` ### Technical Analysis The documented remediation changes OpenClaw command execution security from an allowlist model to unrestricted execution. An allowlist establishes a least-privilege boundary by limiting the agent to explicitly approved executables. Setting the mode to `full` removes that boundary globally instead of authorizing only the commands legitimately required for stock monitoring. This configuration change is broader than the Skill's declared purpose. The Skill needs to create and manage cron tasks, but it does not establish that unrestricted access to every executable on the host is necessary. The recommendation also instructs the user to restart the gateway, causing the weakened configuration to take effect beyond the immediate troubleshooting operation. ### Attack Path 1. The user encounters an `allowlist miss` while configuring or running the Skill. 2. The user follows the documented troubleshooting command and changes `tools.exec.security` to `full`. 3. The user restarts the gateway, activating unrestricted command execution. 4. A subsequently loaded malicious Skill, compromised instruction source, prompt-injected task, or attacker-controlled agent input requests execution of an arbitrary local command. 5. Because the allowlist boundary has been removed, the command can execute with the operating-system privileges of the ...[truncated 659 chars]
- Remediation
- ## Remediation Suggestions - Keep `tools.exec.security` configured in allowlist mode. - Identify the exact trusted executable paths required for cron administration and add only those paths to the allowlist. - Restrict executable arguments or command patterns where the platform supports argument-level controls. - Run the gateway under a dedicated, unprivileged operating-system account with access only to the files and services required by the Skill. - Do not present unrestricted execution as a general troubleshooting fix. - Add instructions for reviewing denied commands and approving them individually. - Document how to restore the secure configuration after testing and verify the effective configuration after gateway restart. - Replace the same unsafe recommendation in `references/config-guide.md:77`.
