An issue exists in Mattermost Server prior to 5.8.0. It allows malicious users to partially attach a file to more than one post.
mattermost mattermost server