(cherry picked from commit 17939826efa20a97f087b3d390ec5136df350bae)

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Caleb Roseland
2026-04-15 23:02:45 -05:00
коммит произвёл GitHub
родитель 26f09017e1
Коммит 384635216f
4 изменённых файлов: 56 добавлений и 4 удалений

Просмотреть файл

@@ -469,6 +469,12 @@ func (wc *WebConn) readPump() {
return
}
// Reject binary frames from unauthenticated connections. See MM-68222.
if msgType != websocket.TextMessage && !wc.IsAuthenticated() {
wc.logSocketErr("websocket.UnauthBinary", errors.New("binary frames require authentication"))
return
}
var decoder interface {
Decode(v any) error
}