AltimateAI / AltimateAI/altimate-code

fix: add path traversal guard for {file:path} config interpolation

Đang mở
#698 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
811
Fork
134
Merge trung bình
3 ngày 2 giờ
Pull request đã merge (30 ngày)
50

Mô tả

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).

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.