Miggo Logo

CVE-2023-0163: convict vulnerable to Prototype Pollution

8.4

CVSS Score
3.1

Basic Information

EPSS Score
0.32576%
Published
1/10/2023
Updated
11/26/2024
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
convictnpm< 6.2.46.2.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from insufficient validation in the set() function when processing configuration keys. The commit diff shows the FORBIDDEN_KEY_PATHS array was updated from checking 'this.constructor.prototype.' to 'constructor.prototype.', indicating the original implementation missed a critical prototype pollution vector. The associated test cases demonstrate that setting 'constructor.prototype.polluted...' properties could modify Object.prototype before the patch. As the set() function is responsible for applying configuration values, its failure to properly validate these paths directly enabled the prototype pollution.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t * *n *tt**k*r **n inj**t *ttri*ut*s t**t *r* us** in ot**r *ompon*nts * *n *tt**k*r **n ov*rri** *xistin* *ttri*ut*s wit* on*s t**t **v* in*omp*ti*l* typ*, w*i** m*y l*** to * *r*s*. T** m*in us* **s* o* *onvi*t is *or **n*lin* s*rv*r-si

Reasoning

T** vuln*r**ility st*ms *rom insu**i*i*nt v*li**tion in t** s*t() *un*tion w**n pro**ssin* *on*i*ur*tion k*ys. T** *ommit *i** s*ows t** *OR*I***N_K*Y_P*T*S *rr*y w*s up**t** *rom ****kin* 't*is.*onstru*tor.prototyp*.' to '*onstru*tor.prototyp*.', in