title: Open redirect in /oauth/<service>/mobile_login?redirect_to=
description: Mattermost fails to properly check a redirect URL parameter allowing for an open redirect was possible when the user clicked "Back to Mattermost" after providing a invalid custom url scheme in /oauth/{service}/mobile_login?redirect_to=
problem types: CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
affected:
{
defaultStatus: unaffected
product: Mattermost
vendor: Mattermost
versions:
lessThanOrEqual: 8.1.3, status: affected, version: 0, versionType: semver
lessThanOrEqual: 7.8.12, status: affected, version: 0, versionType: semver
lessThanOrEqual: 9.0.1, status: affected, version: 0, versionType: semver
lessThanOrEqual: 9.1.0, status: affected, version: 0, versionType: semver
status: unaffected, version: 9.0.2
status: unaffected, version: 9.1.1
status: unaffected, version: 7.8.13
status: unaffected, version: 8.1.4
}
metrics:
cvssV3_1: [
attackComplexity: LOW
attackVector: NETWORK
availabilityImpact: NONE
baseScore: 4.3
baseSeverity: MEDIUM
confidentialityImpact: NONE
integrityImpact: LOW
privilegesRequired: NONE
scope: UNCHANGED
userInteraction: REQUIRED
vectorString: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
version: 3.1
]
format: CVSS
scenarios: GENERAL
solutions: Update Mattermost Server to versions 9.0.2, 9.1.1, 7.8.13, 8.1.4 or higher.