Miggo Logo

GHSA-jcgr-9698-82jx:
Improper Neutralization of Special Elements used in a Command ('Command Injection') in @floffah/build

N/A

CVSS Score

Basic Information

CVE ID
-
EPSS Score
-
Published
5/28/2021
Updated
1/9/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
-
Package NameEcosystemVulnerable VersionsFirst Patched Version
@floffah/buildnpm< 1.0.01.0.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper command construction when passing options to esbuild. While exact code changes aren't visible, the advisory explicitly states the root cause was insecure config.php passing replaced by proper array-based argument handling in v1.0.0. The most likely vulnerable points are: 1) Direct esbuild execution functions using string-based command assembly 2) CLI entry points processing user inputs. These would appear in runtime traces during command injection attempts as they handle user-provided build parameters before vulnerable command assembly occurs.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t I* you *r* usin* t** *s*uil* t*r**t or *omm*n* you *r* *t risk o* *o**/option inj**tion. *tt**k*rs **n us* t** *omm*n* lin* option to m*li*iously ***n** your s*ttin*s in or**r to **m*** your proj**t. ### P*t***s T** pro*l*m **s ***n p*t**

Reasoning

T** vuln*r**ility st*ms *rom improp*r *omm*n* *onstru*tion w**n p*ssin* options to *s*uil*. W*il* *x**t *o** ***n**s *r*n't visi*l*, t** **visory *xpli*itly st*t*s t** root **us* w*s ins**ur* `*on*i*.p*p` p*ssin* r*pl**** *y prop*r *rr*y-**s** *r*um*