Validate tar entries before extraction (#2) #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/2-safe-extraction"
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?
What changed
Extraction shelled out to
tar -xfwith no entry checks, so a malicious or corrupt artifact from shared storage could escape the download path. Every tar header is now validated before a single byte is written, and the whole archive is refused if any entry is unsafe...traversal and absolute-path entries.path/linkpathoverrides so the validated name is the real one.How it was tested
make lintclean (actionlint/yq not installed locally; skipped)make testgreenCHANGELOG updated? yes