Miggo Logo

CVE-2023-30854: Remote code injection in wwbn/avideo

8.8

CVSS Score
3.1

Basic Information

EPSS Score
0.98028%
Published
4/27/2023
Updated
11/4/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

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

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability occurs in the code where the $cmd variable is built using user-controlled $objClone->cloneSiteURL and $json->sqlFile. These values are not sanitized before being passed to exec(), allowing command injection. The patch adds escaping (escapeshellarg) and regex filtering to $json->sqlFile, confirming the lack of sanitization was the root cause. The direct use of unsanitized user input in an OS command execution context (via exec()) makes this function clearly vulnerable.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

# WW*N *vi**o *ut**nti**t** R** - OS *omm*n* Inj**tion ## **s*ription *n OS *omm*n* Inj**tion vuln*r**ility in *n *ut**nti**t** *n*point `/plu*in/*lon*Sit*/*lon**li*nt.json.p*p` *llows *tt**k*rs to ***i*v* R*mot* *o** *x**ution. Vuln*r**l* *o**:

Reasoning

T** vuln*r**ility o**urs in t** *o** w**r* t** $*m* v*ri**l* is *uilt usin* us*r-*ontroll** `$o*j*lon*->*lon*Sit*URL` *n* `$json->sql*il*`. T**s* v*lu*s *r* not s*nitiz** ***or* **in* p*ss** to `*x**()`, *llowin* *omm*n* inj**tion. T** p*t** ***s *s*