[security] Harden tar extraction against traversal, link escape, and zip bombs #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/3-extract-tar-safety"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #3.
Why: extractArchive did a raw
tar -xfwith no zip-slip / symlink / size-cap protection. download-artifact has this hardening; upload's copy drifted. Fixed before it gets wired into an extraction path.Note: carries a 'keep in sync with download-artifact-action' comment; the two extraction paths should be unified later to prevent re-drift.
Testing: tests/artifact-tar.test.js + repo CI.
DO NOT MERGE: security-sensitive; lead/operator review.