Miggo Logo

CVE-2022-1385: Improper Control of a Resource Through its Lifetime in Mattermost

4.6

CVSS Score
3.1

Basic Information

EPSS Score
0.42783%
Published
4/20/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/mattermost/mattermost-server/v6go< 6.5.06.5.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper invalidation of pending invitations when using system console actions. The primary suspect is the system console's invitation revocation handler (likely in API layer) that doesn't properly interface with the token store to remove pending invitations. The medium confidence in DeleteToken stems from the assumption that token cleanup might be context-dependent and system console operations might bypass normal cleanup workflows. The pattern matches CWE-664 as resources (invitation tokens) aren't properly controlled through their lifecycle, and CWE-668 as valid tokens remain exposed to unintended users.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

M*tt*rmost *.*.x *n* **rli*r **ils to prop*rly inv*li**t* p*n*in* *m*il invit*tions w**n t** **tion is p*r*orm** *rom t** syst*m *onsol*, w*i** *llows ***i**nt*lly invit** us*rs to join t** worksp*** *n* ****ss in*orm*tion *rom t** pu*li* t**ms *n* *

Reasoning

T** vuln*r**ility st*ms *rom improp*r inv*li**tion o* p*n*in* invit*tions w**n usin* syst*m *onsol* **tions. T** prim*ry susp**t is t** syst*m *onsol*'s invit*tion r*vo**tion **n*l*r (lik*ly in *PI l*y*r) t**t *o*sn't prop*rly int*r**** wit* t** tok*