Files
hermes-agent/hermes_cli/web_routers
emozilla d67c9d2a28 fix(dashboard): apply the sensitive-path guard to fs_read_text and fs_list
_is_sensitive_path documents itself as the read-side guard for list/read/
download (#57505), but only fs_read_data_url and fs_download called it.
fs_read_text returned .env / auth.json / mcp-tokens/* contents to an
authenticated dashboard session and fs_list enumerated them.

Move the check into _fs_regular_file, the resolver every fs reader goes
through, and drop the two per-handler copies. fs_list filters on the same
predicate alongside _FS_READDIR_HIDDEN.

Reported-by: Brian Grablin <bgrablin@gmail.com>
2026-09-13 23:20:01 -04:00
..