Miggo Logo

GHSA-gj94-v4p9-w672: Denial-of-service vulnerability processing large chat messages containing many newlines

5.3

CVSS Score
3.1

Basic Information

CVE ID
-
EPSS Score
-
CWE
-
Published
5/25/2022
Updated
1/11/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
pocketmine/pocketmine-mpcomposer< 4.2.104.2.10

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from two key issues: 1) splitting messages before validating total length, and 2) lack of splitting limits. The PlayerNetworkSessionAdapter's text packet handler would be responsible for initial message processing and splitting, while TextPacket's splitting logic would directly create the vulnerable array. The patch adds pre-split length checks and split limits, confirming these as the vulnerable areas. The functions are inferred from standard PocketMine-MP architecture and the described vulnerability pattern.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t Po*k*tMin*-MP **ps m*ximum ***t m*ss*** l*n*t* *t *** Uni*o** ***r**t*rs, or **out **** *yt*s. No mor* t**n * ***t m*ss***s m*y ** s*nt p*r ti*k. *ow*v*r, *u* to l****y r**sons, in*omin* ***t m*ss*** *lo*s *r* split *y `\n`, *n* **** p*rt

Reasoning

T** vuln*r**ility st*ms *rom two k*y issu*s: *) splittin* m*ss***s ***or* v*li**tin* tot*l l*n*t*, *n* *) l**k o* splittin* limits. T** Pl*y*rN*tworkS*ssion***pt*r's t*xt p**k*t **n*l*r woul* ** r*sponsi*l* *or initi*l m*ss*** pro**ssin* *n* splittin
GHSA-gj94-v4p9-w672: PocketMine-MP Chat Newline DoS | Miggo