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

feat: disallow file uploads for old Microsoft formats #1907

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

halfwhole
Copy link
Collaborator

@halfwhole halfwhole commented Aug 8, 2022

Problem

We currently whitelist old Microsoft formats (.doc, .ppt, .xls) for file uploads, but the file-type library that we use for detecting file types does not support them (documentation), and recognizes them as .cfb instead. As Alexis notes, these old formats can also be weaponized and exploited for malicious uses, so we should disallow them anyway

Solution

Remove .doc, .ppt, .xls from our DEFAULT_ALLOWED_FILE_EXTENSIONS

Tests

  • Tested on dev to ensure that some sample .doc, .ppt, .xls files are not allowed

@halfwhole halfwhole merged commit 6f976c4 into develop Aug 10, 2022
@halfwhole halfwhole deleted the feat/disallow-old-ms-file-uploads branch August 10, 2022 03:37
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