T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:24- Finding
Bypass of Image Tool Directory Access Controls
- Content
View full analysis
~/.openclaw/media/<文件名> ``` ``` The subsequent instructions at lines 51-54 provide a concrete implementation: ```bash # QQBot 下载的图片 cp ~/.openclaw/qqbot/downloads/86635B3805C6F6E405B847EC5B242684_1773402564132.png ~/.openclaw/media/86635B3805C6F6E405B847EC5B242684_1773402564132.png ``` ### Technical Analysis The Skill explicitly identifies that the `image` tool denies access to `~/.openclaw/qqbot/downloads/` because that directory is outside its allowlist. It then instructs the Agent to use the more privileged `exec` tool and the `cp` binary to copy the protected file into `~/.openclaw/media/`, where the `image` tool is permitted to read it. This changes the file's location without changing the underlying authorization decision. It therefore circumvents the `image` tool's directory-based access-control boundary rather than obtaining authorization through a trusted import mechanism. The Skill's declared requirements for `exec` and `cp` provide filesystem capabilities that are broader than the image-analysis task itself requires. The documented command also uses unrestricted `cp` behavior. It does not require canonical-path validation, symlink rejection, exclusive destination creation, file type or size validation, or automatic cleanup. Consequently, an implementation following these instructions could copy an unintended file, follow a ...[truncated 1676 chars]- Remediation
View remediation
