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
archive: add regression tests for tar path-traversal containment
Both tests fail against the previous (vulnerable) code and pass with the
hardening in this branch:
- TestUntarParentTraversalContained: entries named ".." / "../pwned" are
rejected and never write into the destination's parent.
- TestUntarSiblingPrefixContained: a hardlink whose target resolves to a
sibling sharing the destination's path prefix (dest "base/dest",
sibling "base/dest-evil") is rejected, rather than accepted by a
string HasPrefix check.
Windows-specific coverage (":" / "\" handling) needs Windows CI and
remains a follow-up.
Signed-off-by: Cesar Talledo <cesar.talledo@docker.com>
0 commit comments