T05 · Unauthorized Access and Privilege Escalation
- Location
- config.json:4
- Finding
- Elevated Privileges and Full Tool Access Enabled by Default<![CDATA[ ## Vulnerability Details **File Location**: `config.json`, lines 4-12 and 46-61 **Vulnerability Type**: `T05: Unauthorized Access and Privilege Escalation` **Risk Level**: High ### Vulnerable Code ```json "defaults": { "workspace": "/home/dezritawre/.openclaw/workspace", "model": { "primary": "ollama/gemma4" }, "models": { "ollama/gemma4": {} }, "elevatedDefault": "on", "thinkingDefault": "low" } ``` ```json "tools": { "profile": "full", "web": { "search": { "provider": "duckduckgo", "enabled": true } }, "elevated": { "enabled": true, "allowFrom": { "discord": [ "1196026771036975145" ] } }, ``` ### Technical Analysis The agent starts with elevated operation enabled and uses the unrestricted `full` tool profile. Elevated access is also explicitly exposed to a Discord identity. This breaks least privilege because the documented purpose is local theoretical-physics research and model optimization, which does not inherently require privileged host operations or a complete tool set. Although execution requests are configured with `"ask": "always"` elsewhere in the file, approval prompts are only a mitigating control. They do not remove the elevated capability, and their effectiveness depends on correct runtime enforcement and informed operator approval. ### Attack Path 1. An attacker compromises the authorized Discord account, impersonates an accepted identity through another configuration weakness, or injects malicious instructions into a trusted conversation. 2. The agent processes the malicious request with the full tool profile. 3. The request causes the model to propose an elevated tool operation. 4. If approval is bypassed, incorrectly enforced, or obtained through social engineering, the operation executes with elevated privileges. 5. The attacker can then access or modify resources available to the elevated runtime. ### Impact Assessment Successful exploita ...[truncated 279 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Set `"elevatedDefault"` to `"off"`. - Replace `"profile": "full"` with a minimal profile containing only tools required for local physics research. - Disable the elevated tool facility unless there is a documented operational requirement. - If elevation is unavoidable, restrict it to local administration sessions rather than chat channels. - Preserve mandatory per-operation approval and require the prompt to display the exact command, arguments, working directory, and requested privilege. - Run the agent under a dedicated, unprivileged operating-system account with filesystem and process isolation. - Add audit logging for every privileged request, approval decision, and resulting operation. ]]>
