Safe artifact extraction against traversal, links, and special files #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Why
download-artifact extracts tar archives from shared storage with
tar -xfinto the destination. A malicious archive can attempt traversal, symlink overwrite, hardlinks, or special files unless entries are prevalidated.Verified
src/lib/artifact-tar.jsrunstar -xf - -C <dest>with no visible entry validation.Build
.., symlink/hardlink escapes, device nodes, and ownership surprises.