T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/enable-cross-agent.sh:4- Finding
Global Configuration Enables Unrestricted Cross-Agent Session Visibility
- Content
View full analysis
/tmp/openclaw_config.json # 验证 if [ $? -eq 0 ]; then mv /tmp/openclaw_config.json "$CONFIG_FILE" ``` ### Technical Analysis The script unconditionally changes the user-wide OpenClaw configuration by setting: ```json { "tools": { "sessions": { "visibility": "all" } } } ``` This expands session visibility globally rather than granting narrowly scoped access to only the agents required for a specific communication task. It violates the principle of least privilege because every component governed by this configuration may receive broader session access than its assigned function requires. The privilege expansion is not prominently disclosed in the primary `SKILL.md` documentation, and the script does not ask for confirmation, inspect the existing policy, or restrict visibility using an allowlist. Although the precise operations permitted by `visibility = "all"` depend on the OpenClaw runtime, the intended effect of the script is explicitly to enable cross-agent access to all sessions. ### Attack Path 1. A user installs the skill and runs `scripts/enable-cross-agent.sh`. 2. The script rewrites `$HOME/.openclaw/openclaw.json`, setting session visibility to `all`. 3. The user restarts the OpenClaw gateway as instructed by the script. 4. Any agent operating under this global configuration can attempt to discover or communicate with sessions outside the minimum set needed for its task. 5. A compromised, malicious, or incorrectly instructed agent can use this expanded access to target unrelated sessions. ### Impact Assessment The ...[truncated 504 chars]- Remediation
View remediation
