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

Limit size of extracted files on upload #2281

Merged
merged 3 commits into from
Jun 18, 2024
Merged

Limit size of extracted files on upload #2281

merged 3 commits into from
Jun 18, 2024

Conversation

Floppy
Copy link
Collaborator

@Floppy Floppy commented Jun 18, 2024

To avoid zip decompression bombs, we add a limit to the maximum size of a file that will be extracted from an uploaded archive. By default, this is 1GiB, but it can be changed using the "MAX_FILE_EXTRACT_SIZE" environment variable.

@Floppy Floppy added feature User-facing features and product enhancements security labels Jun 18, 2024
Copy link

codeclimate bot commented Jun 18, 2024

Code Climate has analyzed commit 6551af0 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

The test coverage on the diff in this pull request is 50.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 86.0% (0.0% change).

View more on Code Climate.

@Floppy Floppy merged commit 46a720b into main Jun 18, 2024
10 checks passed
@Floppy Floppy deleted the limit-extract-size branch June 18, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature User-facing features and product enhancements security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant