Account takeover on OAuth/OpenID-enabled servers
Mattermost
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/mattermost/mattermost/server/v8 Go |
|
|
| github.com/mattermost/mattermost-server Go |
|
Mattermost
| Product | Affected | Fixed in |
|---|---|---|
| github.com/mattermost/mattermost/server/v8 Go |
|
|
| github.com/mattermost/mattermost-server Go |
|
≥ 11.0.0 · < 11.0.4all versions
|
| github.com/mattermost/mattermost-server/v5 Go |
| No fix yet |
| github.com/mattermost/mattermost-server/v6 Go |
| No fix yet |
Mattermost versions 10.12.x <= 10.12.1, 10.11.x <= 10.11.4, 10.5.x <= 10.5.12, 11.0.x <= 11.0.3 fail to properly validate OAuth state tokens during OpenID Connect authentication which allows an authenticated attacker with team creation privileges to take over a user account via manipulation of authentication data during the OAuth completion flow. This requires email verification to be disabled (default: disabled), OAuth/OpenID Connect to be enabled, and the attacker to control two users in the SSO system with one of them never having logged into Mattermost.
From the CVE record · Mattermost
Mattermost fails to properly validate OAuth state tokens during OpenID Connect authentication. An authenticated attacker with team creation privileges can take over a user account by manipulating authentication data during the OAuth completion flow. This requires OAuth/OpenID Connect to be enabled, email verification to be disabled, and the attacker to control two SSO users, one of whom has never logged into Mattermost.
Teams running Mattermost 10.12.x through 10.12.1, 10.11.x through 10.11.4, 10.5.x through 10.5.12, or 11.0.x through 11.0.3, or using the listed affected Go packages, should check their deployments.