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

fix: Fix security vuln with file upload #2067

Merged
merged 5 commits into from
Nov 20, 2024
Merged

Conversation

mattzh72
Copy link
Collaborator

Description

We now run some file sanitization on the file name when uploading a file. This prevents users from maliciously overriding files on server.

Test

Rely on existing file upload unit tests to make sure functionality is not broken. Also, write a suite of comprehensive unit tests for the file sanitization function.

@sarahwooders sarahwooders merged commit 746efc4 into main Nov 20, 2024
23 of 24 checks passed
@sarahwooders sarahwooders deleted the matt-fix-security-file branch January 29, 2025 17:26
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