Miggo Logo

CVE-2022-25916: mt7688-wiscan is vulnerable to Command Injection due to improper input sanitization

7.8

CVSS Score
3.1

Basic Information

EPSS Score
0.28645%
Published
2/1/2023
Updated
2/8/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
mt7688-wiscannpm< 0.8.30.8.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the 'wiscan.scan' function in index.js where user-supplied 'intf' parameter is unsafely interpolated into an exec() command. The GitHub patch adds a regex check to validate() 'intf' starts with alphanumeric characters, confirming the parameter was previously vulnerable to command injection. The CVE description explicitly references improper input sanitization in this function, and the commit diff shows security-focused validation was added to this exact location.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

V*rsions o* t** p**k*** mt****-wis**n ***or* *.*.* *r* vuln*r**l* to *omm*n* Inj**tion *u* to improp*r input s*nitiz*tion in t** 'wis**n.s**n' *un*tion.

Reasoning

T** vuln*r**ility st*ms *rom t** `'wis**n.s**n'` *un*tion in `in**x.js` w**r* us*r-suppli** `'int*'` p*r*m*t*r is uns***ly int*rpol*t** into *n `*x**()` *omm*n*. T** *it*u* p*t** ***s * r***x ****k to `v*li**t*()` `'int*'` st*rts wit* *lp**num*ri* **