Miggo Logo

CVE-2020-7603: OS Command Injection in closure-compiler-stream

9.8

CVSS Score
3.1

Basic Information

EPSS Score
0.6142%
Published
5/7/2021
Updated
9/6/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
closure-compiler-streamnpm<= 0.1.15

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability documentation explicitly states the exports function in index.js handles user-controllable 'options' without sanitization. The PoC demonstrates command injection via the 'options.module' array element. As this is the primary interface exposed by the package and there's no evidence of input validation or safe command execution patterns, the module's exported function is the clear injection point.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*losur*-*ompil*r-str**m t*rou** *.*.** *llows *x**ution o* *r*itr*ry *omm*n*s. T** *r*um*nt `options` o* t** *xports *un*tion in `in**x.js` **n ** *ontroll** *y us*rs wit*out *ny s*nitiz*tion.

Reasoning

T** vuln*r**ility *o*um*nt*tion *xpli*itly st*t*s t** `*xports` *un*tion in `in**x.js` **n*l*s us*r-*ontroll**l* 'options' wit*out s*nitiz*tion. T** Po* **monstr*t*s *omm*n* inj**tion vi* t** 'options.mo*ul*' *rr*y *l*m*nt. *s t*is is t** prim*ry int