Miggo Logo

CVE-2020-7604: OS Command Injection in pulverizr

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
pulverizrnpm<= 0.7.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the 'compress' function in lib/job.js where user-controlled 'filename' is directly interpolated into an exec command without sanitization. The code explicitly uses string concatenation to build the 'cp' command (line 73), allowing attackers to inject OS commands via specially crafted filenames. This matches the CWE-78 description and advisory details about arbitrary command execution through filename manipulation.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

pulv*rizr t*rou** *.*.* *llows *x**ution o* *r*itr*ry *omm*n*s. Wit*in `li*/jo*.js`, t** v*ri**l* `*il*n*m*` **n ** *ontroll** *y t** *tt**k*r. T*is *un*tion us*s t** v*ri**l* &quot;*il*n*m*&quot; to *onstru*t t** *r*um*nt o* t** *x** **ll wit*out *n

Reasoning

T** vuln*r**ility st*ms *rom t** '*ompr*ss' *un*tion in `li*/jo*.js` w**r* us*r-*ontroll** '*il*n*m*' is *ir**tly int*rpol*t** into *n *x** *omm*n* wit*out s*nitiz*tion. T** *o** *xpli*itly us*s strin* *on**t*n*tion to *uil* t** '*p' *omm*n* (lin* **