Repository navigation
go-archives: symlink extraction attack tests - #832
Closed
aliculPix4D wants to merge 1 commit into
Closed
aliculPix4D wants to merge 1 commit into
aliculPix4D wants to merge 1 commit into
Conversation
aliculPix4D
requested review from
SpectreVert,
iAmoric,
marco-m-pix4d and
odormond
July 22, 2026 14:46
aliculPix4D
commented
Jul 22, 2026
| // path on Unix; on Windows Extract always takes the Go path anyway. | ||
| // Pointing PATH at an empty dir (rather than unsetting it) makes the | ||
| // lookup fail identically on every platform. | ||
| emptyPATH, err = os.MkdirTemp("", "no-tar") |
Author
There was a problem hiding this comment.
I am very tempted to open a 2nd PR and run these tests with tar also... They must behave the same with tar :) If they fail (reminder: a failing test means that you are vulnerable to the attack) it means you have an issue with tar :)
odormond
approved these changes
Jul 23, 2026
aliculPix4D
force-pushed
the
pci-4898-symlink-extraction-tests
branch
from
July 23, 2026 07:45
7717669 to
2b1371c
Compare
aliculPix4D
commented
Jul 23, 2026
aliculPix4D
force-pushed
the
pci-4898-symlink-extraction-tests
branch
from
July 23, 2026 10:24
2b1371c to
059e941
Compare
Author
|
@marco-m-pix4d ready for re-review. All comments were addressed. I will prepare the 2nd cleanup PR to use: |
marco-m-pix4d
approved these changes
Jul 23, 2026
Author
|
Closing... The same PR was merged upstream. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
go-archives: symlink extraction attack tests
Add some more tests mimicking the symlink extraction attack.
Goal: show the value of using
os.Root:) and prevent anyone from removing it by mistake without first understanding its value, e.g., it prevents reverting concourse#9601I would also say that this tests are evidence that the security issue reported in: concourse#9486 was actually addressed.