Skip to content

Fix/zip bomb limits#93

Open
amansingh1207 wants to merge 2 commits into
Stanzin7:masterfrom
amansingh1207:fix/zip-bomb-limits
Open

Fix/zip bomb limits#93
amansingh1207 wants to merge 2 commits into
Stanzin7:masterfrom
amansingh1207:fix/zip-bomb-limits

Conversation

@amansingh1207
Copy link
Copy Markdown
Contributor

Problem

Default ZIP extraction limits were dangerously high:

  • Max files: 10,000
  • Max uncompressed size: 500 MiB

A malicious actor could upload a crafted .crx extension (zip bomb)
to exhaust server memory and cause a Denial of Service (DoS).

Fix

Reduced defaults to safe values:

  • Max files: 1,000 (sufficient for any real Chrome extension)
  • Max uncompressed size: 100 MiB

These limits can still be overridden via environment variables
if needed for specific deployments.

Security Impact

Prevents DoS attacks via crafted extension uploads.

@github-actions github-actions Bot added the area: infra CI, deployment, database, or repository automation changes label Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: infra CI, deployment, database, or repository automation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant