Miggo Logo

GHSA-whpx-q3rq-w8jc: Hardening of TypedArrays with non-canonical numeric property names in SES

N/A

CVSS Score

Basic Information

CVE ID
-
EPSS Score
-
CWE
-
Published
10/20/2022
Updated
1/9/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
-
Package NameEcosystemVulnerable VersionsFirst Patched Version
sesnpm< 0.16.00.16.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from two interconnected functions: 1) isCanonicalNumericIndexString's inadequate validation() of integer/non-canonical keys, and 2) freezeTypedArray's dependence on this check to skip hardening. The commit patched both by introducing isInteger checks and renaming the helper to isCanonicalIntegerIndexString. The original implementation's failure to properly filter non-integer/non-canonical properties directly caused the hardening bypass.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t _W**t kin* o* vuln*r**ility is it? W*o is imp**t**?_ In **r**n** J*v*S*ript, pro*r*ms **n `**r**n` o*j**ts to s***ly s**r* o*j**ts wit* *o-t*n*nt pro*r*ms wit*out risk o* t**s* ot**r pro*r*ms t*mp*rin* wit* t**ir *PI sur****. **r**nin* *o

Reasoning

T** vuln*r**ility st*ms *rom two int*r*onn**t** *un*tions: *) `is**noni**lNum*ri*In**xStrin*`'s in***qu*t* `v*li**tion()` o* int***r/non-**noni**l k*ys, *n* *) `*r**z*Typ***rr*y`'s **p*n**n** on t*is ****k to skip **r**nin*. T** *ommit p*t**** *ot* *