(cherry picked from commit 17939826efa20a97f087b3d390ec5136df350bae) Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
26f09017e1
Коммит
384635216f
@@ -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
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user