mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
* fix(security): path traversal in hooks_build-agents outputDir passed validatePath, which allows absolute paths, and format was spliced unvalidated into each config file name, so an MCP caller could make the tool create directories and overwrite files outside the project. Contain the real output directory in the real project root and restrict format to yaml/json. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01MfPHVKUis3yTcrY8a2cNer * fix(security): argv option injection and URL scheme check in browser adapter AgentBrowserAdapter passed caller values (selectors, text, URLs, paths) straight into agent-browser's argv, which parses options anywhere, so a value beginning with -- was read as an option. open/newTab also accepted any URL scheme, letting the exported browser MCP tools read local files. Reject unexpected options in command argv and allow only web URLs, mirroring the CLI's browser-argv guard. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01MfPHVKUis3yTcrY8a2cNer --------- Co-authored-by: Claude <noreply@anthropic.com>