Miggo Logo

CVE-2020-7624: Withdrawn Advisory: OS Command Injection in effect

9.8

CVSS Score
3.1

Basic Information

EPSS Score
0.78238%
Published
2/10/2022
Updated
6/4/2024
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
effectnpm<= 1.0.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The code in helper.js shows clear command injection patterns:

  1. generateCmd() directly interpolates user-controlled options.image and options.to into a shell command string
  2. executeCommand() uses exec() with this untrusted string
  3. The PoC demonstrates injection via options.image containing shell operators
  4. CWE-78 pattern matches unsafe command construction with user input While the advisory was withdrawn due to package/repo mismatch, the code analysis itself reveals classic command injection vulnerabilities through these functions.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

## Wit**r*wn **visory T*is **visory **s ***n wit**r*wn ****us* t** [npm p**k*** *****t](*ttps://www.npmjs.*om/p**k***/*****t), *or w*i** *l*rts w*r* issu**, *o*s not *orr*spon* wit* *ttps://*it*u*.*om/J*v*s*ipt/*****t, t** r*pository wit* t** vuln*r*

Reasoning

T** *o** in **lp*r.js s*ows *l**r *omm*n* inj**tion p*tt*rns: *. **n*r*t**m*() *ir**tly int*rpol*t*s us*r-*ontroll** options.im*** *n* options.to into * s**ll *omm*n* strin* *. *x**ut**omm*n*() us*s *x**() wit* t*is untrust** strin* *. T** Po* **mon