Miggo Logo

CVE-2022-25768: Mautic vulnerable to Improper Access Control in UI upgrade process

7

CVSS Score
3.1

Basic Information

EPSS Score
0.37607%
Published
9/18/2024
Updated
2/28/2025
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
mautic/core-libcomposer>= 1.1.3, < 4.4.134.4.13
mautic/core-libcomposer>= 5.0.0-alpha, < 5.1.15.1.1
mautic/corecomposer>= 1.1.3, < 4.4.134.4.13
mautic/corecomposer>= 5.0.0-alpha, < 5.1.15.1.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from code removed in the SecurityController.php's loginAction method, as shown in the commit diff. This code checked for a 'mautic_update' cookie and forwarded requests to upgrade-related AjaxController methods without verifying permissions. The removal of this code in the patch indicates it was the primary vector for unauthorized access to the deprecated UI upgrade process. While the AjaxController methods (updateDatabaseMigration/updateFinalization) were the targets, the root cause was the lack of access control in the loginAction handler that triggered them.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t T** lo*i* in pl*** to ***ilit*t* t** up**t* pro**ss vi* t** us*r int*r**** l**ks ****ss *ontrol to v*ri*y i* p*rmission *xists to p*r*orm t** t*sks. Prior to t*is p*t** **in* *ppli** it mi**t ** possi*l* *or *n *tt**k*r to ****ss t** M*uti

Reasoning

T** vuln*r**ility st*ms *rom *o** r*mov** in t** S**urity*ontroll*r.p*p's lo*in**tion m*t*o*, *s s*own in t** *ommit *i**. T*is *o** ****k** *or * 'm*uti*_up**t*' *ooki* *n* *orw*r*** r*qu*sts to up*r***-r*l*t** *j*x*ontroll*r m*t*o*s wit*out v*ri*yi