Gortex - это высокопроизводительный механизм код-интеллекта для агентов AI и интегрированных сред разработки. До 0.55.0, resolveFilePath в internal/mcp/tools_fileops.go принимает абсолютные пути без проверки индексированных корней репозитория, в то время как write_file, edit_file и move_inline в internal/mcp/tools_move_inline.go пропускают guardSymlinkWithinRepo до достижения AtomicWriteFile и связанных с ним стоков записи. Звонящий, который может влиять на аргументы инструмента MCP, может создавать или перезаписывать файлы в любом месте, к которому может получить доступ пользователь демона, включая файлы запуска или крюка, которые выполняют код на более позднем триггере.
Недостаток нарушает инвариант Gortex's repository-confinement и может привести к произвольному выполнению кода хоста. Эта проблема исправлена в версии 0.55.0.
Показать оригинальное описание (EN)
Gortex is a high-performance code-intelligence engine for AI agents and integrated development environments. Prior to 0.55.0, resolveFilePath in internal/mcp/tools_fileops.go accepts absolute paths without checking indexed repository roots, while write_file, edit_file, and move_inline in internal/mcp/tools_move_inline.go omit guardSymlinkWithinRepo before reaching AtomicWriteFile and related write sinks. A caller that can influence MCP tool arguments can therefore create or overwrite files anywhere the daemon user can access, including startup or hook files that execute code on a later trigger. The flaw violates Gortex's repository-confinement invariant and can lead to arbitrary host code execution. This issue is fixed in version 0.55.0.
Характеристики атаки
Последствия
Строка CVSS v3.1