title: Oauth authorization codes do not expire when deauthorizing an oauth2 app
description: Mattermost fails to invalidate existing authorization codes when deauthorizing an OAuth2 app, allowing an attacker possessing an authorization code to generate an access token.
problem types: CWE-862 Missing Authorization
affected:
{
defaultStatus: unaffected
product: Mattermost
vendor: Mattermost
versions:
lessThanOrEqual: 7.1.7, status: affected, version: 0, versionType: semver
lessThanOrEqual: 7.7.3, status: affected, version: 0, versionType: semver
lessThanOrEqual: 7.8.2, status: affected, version: 0, versionType: semver
lessThanOrEqual: 7.9.1, status: affected, version: 0, versionType: semver
status: unaffected, version: 7.10
status: unaffected, version: 7.9.3
status: unaffected, version: 7.8.4
status: unaffected, version: 7.7.5
status: unaffected, version: 7.1.9
}
metrics:
cvssV3_1: [
attackComplexity: LOW
attackVector: NETWORK
availabilityImpact: NONE
baseScore: 6.5
baseSeverity: MEDIUM
confidentialityImpact: HIGH
integrityImpact: HIGH
privilegesRequired: HIGH
scope: UNCHANGED
userInteraction: NONE
vectorString: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
version: 3.1
]
format: CVSS
scenarios: GENERAL
solutions: Update Mattermost to version v7.10, v7.9.3, v7.8.4, v7.7.5, v7.1.9 or higher.