Skip to content

v0.2.1: security fix for file search

Choose a tag to compare

@jerry729 jerry729 released this 21 Nov 15:59
· 1 commit to main since this release

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, Grep or Glob permission comes back.

Upgrade

  1. git pull
  2. 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