Miggo Logo

CVE-2021-23440: Prototype Pollution in set-value

7.3

CVSS Score
3.1

Basic Information

EPSS Score
0.20402%
Published
9/13/2021
Updated
11/3/2023
KEV Status
No
Technology
TechnologyC#

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
set-value-nugetnuget< 2.0.02.0.0
set-valuenpm< 2.0.12.0.1
set-valuenpm>= 4.0.0, < 4.0.14.0.1
set-valuenpm>= 3.0.0, < 3.0.33.0.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper type handling in validateKey. Pre-patch code didn't convert array keys to strings before safety checks, letting attackers use nested arrays to bypass proto validation. Commit 383b72d fixed this by adding type conversion, confirming this was the vulnerable point. The CVE description explicitly mentions array-based path parameter exploitation.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T*is *****ts t** p**k*** `s*t-v*lu*`. * typ* *on*usion vuln*r**ility **n l*** to * *yp*ss o* *V*-****-***** w**n t** us*r-provi*** k*ys us** in t** p*t* p*r*m*t*r *r* *rr*ys.

Reasoning

T** vuln*r**ility st*ms *rom improp*r typ* **n*lin* in v*li**t*K*y. Pr*-p*t** *o** *i*n't *onv*rt *rr*y k*ys to strin*s ***or* s***ty ****ks, l*ttin* *tt**k*rs us* n*st** *rr*ys to *yp*ss __proto__ v*li**tion. *ommit ******* *ix** t*is *y ***in* typ*