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

Core: Add (optional) sanitization to the FileHandler class #1023

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

ikelos
Copy link
Member

@ikelos ikelos commented Oct 17, 2023

This is a first cut at ensuring filename writes are safe. This completely excludes unicode filenames, which will not be useful for a large chunk of forensics, which is why it's being made optional to each plugin before we move forward with it. Whitelists are much more effective than blacklists, but I'm not certain how to allow unicode characters without potentially tripping over something a filesystem handles poorly, so for now its an explicit latin-1 whitelist.

@ikelos
Copy link
Member Author

ikelos commented Nov 6, 2023

Merging this just to keep the history (it was a little bit naughty for the changes to have been included in #999). 5:)

@ikelos ikelos merged commit fda1db4 into develop Nov 6, 2023
26 checks passed
@ikelos ikelos deleted the feature/santitize-filenames branch November 6, 2023 08:24
@ikelos ikelos restored the feature/santitize-filenames branch May 15, 2024 20:09
@ikelos ikelos deleted the feature/santitize-filenames branch May 15, 2024 20:10
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