CVE-2022-36602
Description
InnoSilicon A10 a10_20200924_120556 was discovered to contain a remote code execution (RCE) vulnerability in the setPlatformAPI function.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
2- InnoSilicon/A10description
- Range: = a10_20200924_120556
Patches
Vulnerability mechanics
Root cause
"Missing input sanitization (no escapeshellcmd()) in the setPlatformAPI function allows shell metacharacters in user-supplied URL parameters to be passed directly to shell_exec()."
Attack vector
An attacker must first authenticate to the miner's web interface, either using the undocumented guest account (guest/guest) or by obtaining a valid JWT [ref_id=1]. Once authenticated, the attacker can send a crafted request to the `setPlatformAPI` function (or the related `checkUrl` endpoint in older firmware) with a payload containing shell metacharacters in the URL parameter. Because the older firmware does not use `escapeshellcmd()` on the ping URL, the unsanitized input is passed directly to `shell_exec()`, allowing arbitrary OS command execution [ref_id=1]. The attack is network-accessible over HTTP/HTTPS on the miner's management interface.
Affected code
The vulnerable code is in the `setPlatformAPI` function within the InnoSilicon web interface. The researcher's audit references the `/usr/share/factory/www` directory and specifically the `checkUrl` API endpoint, where older firmware versions used an unsanitized shell command: `$ping_cmd = "ping ".$ping_url." -c 5"` [ref_id=1]. The `setPlatformAPI` function is named in the CVE description but the reference write-up does not show its source code.
What the fix does
The patch (present in newer firmware) wraps the ping URL with `escapeshellcmd()`, changing the vulnerable line from `$ping_cmd = "ping ".$ping_url." -c 5"` to `$ping_cmd = escapeshellcmd("ping ".$ping_url." -c 5")` [ref_id=1]. This prevents shell metacharacters from being interpreted as part of the command. The researcher notes that even after this fix, the `checkUrl` function remains commented out in the API router, suggesting the vendor does not fully trust the endpoint [ref_id=1]. No patch for the `setPlatformAPI` function specifically is shown in the bundle.
Preconditions
- networkAttacker must have network access to the miner's HTTP/HTTPS management interface
- authAttacker must authenticate (e.g., using the undocumented guest/guest account or a valid JWT)
- configThe vulnerable firmware version (a10_20200924_120556 or older) must be running
- inputAttacker must send a crafted payload containing shell metacharacters in the URL parameter
Generated on May 28, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
1- jamesachambers.com/cryptocurrency-asic-miners-security-and-hacking-audit/mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.