Files
claw3d/src
Nix 6666be0652 fix(security): resolve symlinks in path-suggestions home directory check (fixes #52) (#54)
The isWithinHome() check used path.relative() which is purely string-based
and does not follow symlinks. A symlink inside the home directory pointing
to an external path would bypass the containment check, allowing directory
listing of arbitrary filesystem locations.

Now uses fs.realpathSync() to resolve symlinks before the containment
comparison, ensuring the real filesystem path is validated.

Co-authored-by: ThankNIXlater <ThankNIXlater@users.noreply.github.com>
2026-03-24 11:03:24 -05:00
..
2026-03-19 23:14:04 -05:00