Miggo Logo

CVE-2023-22487: Flarum post mentions can be used to read any post on the forum without access control

7.7

CVSS Score
3.1

Basic Information

EPSS Score
0.20735%
Published
1/10/2023
Updated
1/27/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
flarum/mentionscomposer< 1.6.31.6.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from two key flaws: 1) The post mention processing in ConfigureMentions.php directly accessed posts without visibility checks (fixed by adding PostRepository::queryVisibleTo). 2) The API controllers explicitly included sensitive relationships without access control (fixed by removing addInclude calls). The commit diff shows these functions were modified to add security checks, confirming they were the vulnerable points.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

Usin* t** m*ntions ***tur* provi*** *y t** *l*rum/m*ntions *xt*nsion, us*rs **n m*ntion *ny post I* on t** *orum wit* t** sp**i*l `@"<us*rn*m*>"#p<i*>` synt*x. T** *ollowin* ****vior n*v*r ***n**s no m*tt*r i* t** **tor s*oul* ** **l* to r*** t** m*

Reasoning

T** vuln*r**ility st*ms *rom two k*y *l*ws: *) T** post m*ntion pro**ssin* in `*on*i*ur*M*ntions.p*p` *ir**tly ****ss** posts wit*out visi*ility ****ks (*ix** *y ***in* `PostR*pository::qu*ryVisi*l*To`). *) T** *PI *ontroll*rs *xpli*itly in*lu*** s*n