-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: arbitrary file access during archive extraction (zip slip) #13766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
CLA Signature Action: Thank you for your submission, we really appreciate it. We ask that you all read and sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just by adding a comment to this pull request with this exact sentence:
By commenting with the above message you are agreeing to the terms of the CLA. Your account will be recorded as agreeing to our CLA so you don't need to sign it again for future contributions to this repository. 1 out of 2 committers have signed the CLA. |
/cla missing endpoint of CLA Sign on Contributor License Agreement can't open (blank-page) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@odaysec Could you try agreeing to the CLA once more. Let me know if it still isn't working. |
Hi @smilingkylan I still can't sign the button of CLA is missing https://metamask.io/cla Contributor License Agreement Browser:
|
Added the skip-sonar-cloud for an external contributor and that code is not analyzed. |
@odaysec Please follow the instructions and post the specific comment in the reply above. Thanks |
Hi @sethkfman Thank you for your respond, the page for signed CLA was broken i created |
Ticket 🎟️ #13765
To fix the problem, we need to ensure that the output paths constructed from tar archive entries are validated to prevent writing files to unexpected locations. This can be done by verifying that the normalized full path of the output file starts with a prefix that matches the destination directory. We will use
java.nio.file.Path.normalize()
andjava.nio.file.Path.startsWith()
for this purpose.Pre-merge author checklist
Pre-merge reviewer checklist