AltimateAI / AltimateAI/altimate-code
fix: add path traversal guard for {file:path} config interpolation
未關閉
- 主要語言
- TypeScript
- 星號
- 811
- 分支
- 134
- 平均合併
- 3 天 2 小時
- 30 天內合併 PR
- 50
描述
Found during v0.5.21 release review. The `{file:path}` substitution in `config/paths.ts` has no path traversal guard — `{file:../../etc/passwd}` or `{file:~/.ssh/id_rsa}` would be resolved. Currently low risk since configs are user-authored, but should be hardened if configs are ever loaded from less-trusted sources (e.g. shared repo `.opencode/opencode.json`).
Deferred because: requires design (path jail under config dir or project root, ~45 min).
貢獻指南
評估
這個 Issue 還沒有評估資料。