You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. fetch_outboard skips the symlink-containment and regular-file checks its siblings have
crates/cache/src/origin/fs.rs:348-396 — fetch, fetch_range_data and size canonicalize and check containment (:173-194); fetch_outboard does not. Its metadata() length gate rejects oversized regular files, but a symlink to a char device (/dev/zero: metadata length 0 passes, then tokio::fs::read grows unboundedly → OOM — the post-read TOCTOU re-check comes too late) or to a FIFO (blocks a blocking-pool thread forever) bypasses it, and a symlink out of the base directory reads foreign file contents into memory. Needs write access to the origin directory (the "hostile sibling" the module's own comments consider).
Apply the same containment check plus is_file(), and read through a take(outboard_max_bytes + 1) limit
2. The node identity key is read into a non-zeroized buffer
crates/common/src/identity.rs:597-608 — the key file is read into a Vec that is never zeroized, so key bytes linger in freed heap memory.
Zeroize the intermediate buffer (zeroize is the usual tool)
Activity
fix(cache): fallible outboard presize; tighten #2775 docs and CHANGELOG
fix(cache): contain and bound the fs origin's outboard read; zeroize …