Tool Parameter Abuse
- Category
- Tool Misuse
- Confidence
- 94% confidence
- Finding
The cleanup step uses a shell command with a placeholder filename, which encourages direct interpolation into
rm /tmp/openclaw/uploads/<filename>. If<filename>is derived from untrusted input, an agent may construct unsafe shell commands, leading to command injection or unintended file deletion; even without injection, path traversal or wildcard misuse could delete files outside the intended target.- Content
bash # Remove uploaded image from temp directory rm /tmp/openclaw/uploads/<filename> # Optional: Clean up browser screenshots older than 7 days find ~/.openclaw/media/browser/ -type f -mtime +7 -delete
