Miggo Logo

GHSA-53rv-hcvm-rpp9: Lodestar snappy decompression issue

N/A

CVSS Score

Basic Information

CVE ID
-
EPSS Score
-
Published
1/14/2025
Updated
1/14/2025
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
-
Package NameEcosystemVulnerable VersionsFirst Patched Version
@lodestar/reqrespnpm< 1.25.01.25.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from 2 key issues in snappy frame handling: 1) getChunkType's inability to recognize skippable chunks (0x80-0xfd) would throw errors for valid network messages, and 2) The decompression logic lacked proper chunk skipping and checksum validation. The proof of concept demonstrates that Lodestar failed to process messages with these chunks while other clients succeeded. The patch added SKIPPABLE chunk handling and checksum validation, confirming these were the vulnerable areas.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t Unint*n*** p*rm*n*nt ***in split *****tin* *r**t*r t**n or *qu*l to **% o* t** n*twork, r*quirin* **r* *ork (n*twork p*rtition r*quirin* **r* *ork) ### **s*ription Lo**st*r *li*nt m*y **il to ***o** sn*ppy *r*min* *ompr*ss** m*ss***s. ##

Reasoning

T** vuln*r**ility st*ms *rom * k*y issu*s in sn*ppy *r*m* **n*lin*: *) `**t**unkTyp*`'s in**ility to r**o*niz* skipp**l* **unks (*x**-*x**) woul* t*row *rrors *or v*li* n*twork m*ss***s, *n* *) T** ***ompr*ssion lo*i* l**k** prop*r **unk skippin* *n*