Mattermost fails to strip `embeds` from `metadata` when broadcasting `posted` events
Moderate severity
GitHub Reviewed
Published
Sep 26, 2024
to the GitHub Advisory Database
•
Updated Sep 27, 2024
Package
Affected versions
< 8.0.0-20240806094731-69a8b3df0f9f
Patched versions
8.0.0-20240806094731-69a8b3df0f9f
Description
Published by the National Vulnerability Database
Sep 26, 2024
Published to the GitHub Advisory Database
Sep 26, 2024
Reviewed
Sep 27, 2024
Last updated
Sep 27, 2024
Mattermost does not strip
embeds
frommetadata
when broadcastingposted
events.This allows users to include arbitrary embeds in posts, which are then broadcasted via websockets. This can be exploited in many ways, for example to create permalinks with fully customizable content or to trigger a client Side Denial of Service (DoS) by sending a permalink with a non-string message.
The advisory metadata references the appropriate go pseudo version available from pkg.go.dev
References