Skip to content

Sanitize attachment filenames #175

@selfhoster1312

Description

@selfhoster1312

We should make sure:

  • a filename is valid UTF-8
  • a filename does not exceed X bytes to it's valid on all filesystems
  • a filename does not contain slashes, or other funky characters

Right now we're doing nothing of the sort and it's fantastic that this hasn't produced more bugs and exploitation in the wild.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions