T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/lib/clawdbot_api.js:75- Finding
Unrestricted Clawdbot Tool Invocation Through the Main Session
- Content
View full analysis
'' ``` 3. `clawdb ...[truncated 795 chars]- Remediation
View remediation
` forwarding interface. 2. Define a strict allowlist containing only the minimum required operations, such as a dedicated notification endpoint. 3. Validate every tool argument against a fixed schema and reject unknown properties. 4. Use a dedicated Agent Zero session rather than the `main` session. 5. Issue a separate, least-privilege gateway token that cannot invoke unrelated tools. 6. Require explicit user approval before invoking tools that access files, execute commands, alter state, or communicate externally. 7. Enforce authorization at the gateway endpoint; client-side restrictions must not be the only control. 8. Record auditable logs containing the requesting identity, selected tool, session, authorization decision, and result. ]]>
