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
{{ message }}
Repository navigation
Commit 3bbf13c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(security): neutralize symlink replay via core.symlinks=false (closes#15) (#20)
REDESIGN after four cycles of detection-based fixes each found a new TOCTOU
bypass (index, refs/replace). Same pattern as worktree-cleanup whack-a-mole —
remove the vulnerable path rather than guard it.
Neutralize: apply with git -c core.symlinks=false apply --index. Symlink-mode
entries materialize as regular text files (target path as content), NOT symlinks.
Cannot point at host file, cannot exfil. Class disappears by construction.
Byte-preserving patch and --no-ext-diff kept; detection logic removed.
Tests (3, green): new symlink -> regular file; retargeted -> regular file;
regular file mentioning mode 120000 -> applied normally.
Verified: worktree 16/16; full npm test 159 pass / 4 pre-existing.
Co-authored-by: axisrow <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
detail: `Worktree contains symlinks (mode 120000); patch not applied to prevent a host-file redirect via repoRoot. Inspect and copy them manually from ${worktreePath}.`
0 commit comments