Repository navigation
v0.2.1: security fix for file search
A security fix. Everyone running evocord should upgrade.
What was wrong
The chat session's settings (config/runtime-settings.json) allowed the Grep and Glob tools with no path restriction. Someone in your server who talked the bot into it could have it search, and so read, files anywhere your user account can read: other projects in your home directory, documents, and so on.
Already protected before this fix: the bot token, config/bot.json, ~/.ssh, ~/.claude* and ~/.config. Those deny rules were not affected.
What changed
- File search (
Grep,Glob) now works only inside the bot directory, with the existing deny rules still applied. Anything outside is refused. - A new test fails if an unrestricted
Read,GreporGlobpermission comes back.
Upgrade
git pull- Restart the session with
!bot restart. The settings are read when the session starts.
If you edited config/runtime-settings.json yourself, delete the "Glob" and "Grep" entries from allow by hand.
Full changelog: CHANGELOG.md