Skip to content

#423 Cap untrusted attachment sizes and stream copies - #3363

Closed
martgil wants to merge 1 commit into
masterfrom
issue-423-improve-attachment-handling
Closed

martgil wants to merge 1 commit into
masterfrom
issue-423-improve-attachment-handling

Conversation

@martgil

@martgil martgil commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

This PR caps attachment sizes with Long arithmetic and bounds stream copies from untrusted providers.

close FlowCrypt/flowcrypt-security#423


Tests (delete all except exactly one):

  • Tests added or updated

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities

Use Long arithmetic for attachment size checks, normalize invalid provider reports, and enforce a hard byte ceiling on every copy of a provider-supplied stream.
@martgil

martgil commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by a PR from issue-3364-improve-attachment-handling; issue reference corrected.

@martgil martgil closed this Nov 27, 2026
@martgil
martgil deleted the issue-423-improve-attachment-handling branch November 27, 2026 11:54
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.

1 participant