Skip to content
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

Add tarfile member sanitization to extractall() #514

Merged
merged 1 commit into from
Dec 27, 2022

Conversation

tvainika
Copy link
Contributor

About this change - What it does

Add tarfile member sanitization to extractall()

This replaces #510 with the formatting following setup & rules.

Closes #510

Why this way

Fix test code to use CVE-2007-4559 safe tarfile.extractall.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 27, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6aa9a1b
Status: ✅  Deploy successful!
Preview URL: https://41b15aaf.karapace.pages.dev
Branch Preview URL: https://tarfile-safe-extract.karapace.pages.dev

View logs

Fix test code to use CVE-2007-4559 safe tarfile.extractall, and write
tgz file to disk first to avoid seeking request.get response.
@jjaakola-aiven jjaakola-aiven merged commit c540f3c into main Dec 27, 2022
@jjaakola-aiven jjaakola-aiven deleted the tarfile-safe-extract branch December 27, 2022 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants