T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:36- Finding
Unnecessarily Broad Filesystem Reconnaissance
- Content
View full analysis
/dev/null | head -1 ``` ### Technical Analysis The Skill instructs the agent to search recursively from the filesystem root to locate an OpenClaw JavaScript asset. This search is broader than necessary for the stated patching task because the Skill also identifies a targeted alternative using `npm root -g`. Running `find /` traverses every directory and mounted filesystem accessible to the executing account. Redirecting standard error to `/dev/null` conceals permission failures and makes it difficult for the user to assess which protected locations were probed. In addition, `head -1` blindly selects the first matching file without verifying that it belongs to the intended OpenClaw installation. Although this command does not itself modify files or bypass operating-system permissions, it violates least-privilege principles by inspecting unrelated filesystem locations and may cause the agent to identify and subsequently modify an unintended installation. ### Attack Path 1. A user invokes the Skill to patch OpenClaw. 2. The agent executes the documented `find /` command. 3. The command recursively probes all readable directories and mounted filesystems. 4. Multiple OpenClaw installations or matching asset paths may be discovered. 5. `head -1` selects the first result without package-origin or installation validation. 6. Later patching instructions are applied to that path, potentially targeting the wrong installation. ### Impact Assessment The command can disclose accessible filesystem structure, including the presence and location of software installations on local or mounted filesystems. Its direct privileges remain limited to those of the executing account, but its scope includes every path that acc ...[truncated 290 chars]- Remediation
View remediation
