Miggo Logo

CVE-2024-1888: Mattermost fails to check the "invite_guest" permission

4.3

CVSS Score
3.1

Basic Information

EPSS Score
0.25353%
Published
2/29/2024
Updated
8/7/2024
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/mattermost/mattermost/server/v8go>= 9.4.0, < 9.4.29.4.2
github.com/mattermost/mattermost/server/v8go>= 9.3.0, < 9.3.19.3.1
github.com/mattermost/mattermost/server/v8go>= 9.2.0, < 9.2.59.2.5
github.com/mattermost/mattermost/server/v8go< 8.1.98.1.9

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing permission checks when re-inviting existing guests across teams. Core team invitation functions in both application logic (TeamService) and API layer (api4) are prime candidates because:

  1. The description indicates cross-team guest handling is the trigger
  2. 'InviteUsersToTeam' would be the natural location for invitation authorization checks
  3. API handlers like inviteUsersToTeam would be the entry point for this operation
  4. The pattern matches Mattermost's architecture where service layer implements business logic and API layer handles requests
  5. High confidence comes from the specific scenario described (existing guest reuse) requiring team invitation logic to have conditional permission checks.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

M*tt*rmost **ils to ****k t** "invit*_*u*st" p*rmission w**n invitin* *u*sts o* ot**r t**ms to * t**m, *llowin* * m*m**r wit* p*rmissions to *** ot**r m*m**rs *ut not to *** *u*sts to *** * *u*st to * t**m *s lon* *s t** *u*st w*s *lr***y * *u*st in

Reasoning

T** vuln*r**ility st*ms *rom missin* p*rmission ****ks w**n r*-invitin* *xistin* *u*sts **ross t**ms. *or* t**m invit*tion *un*tions in *ot* *ppli**tion lo*i* (T**mS*rvi**) *n* *PI l*y*r (*pi*) *r* prim* **n*i**t*s ****us*: *. T** **s*ription in*i**t
CVE-2024-1888: Mattermost Guest Invite Bypass | Miggo