
| CVE URL: | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-45600 |
|---|---|
| Reported by: | TanYeeTat |
| Product: | Aztech WMB250AC Wireless Mesh Routers |
| Affected Firmware: | 2020 Release (topaz-linux.lzma.img) |
| Firmware download: | closed source |


Product Manual: https://kylaconnect.com/download-center/
Vulnerability was reported to Aztech's security team via [email protected] on 7th June 2022, with no response as of 21st February 2023
A Command Injection vulnerability (that leads to Privilege Escalation) exists in multiple webpages (list below), that allows a web-authenticated user to execute arbitrary shell commands on the device as the root user. The root user account could not be accessed in any other conventional methods (e.g., Telnet), and has been locked down by the firmware's configuration. This vulnerability bypasses that configuration and escalates an attacker's privileges to root.
List of affected webpages
283 in status_wireless.php54 in config_wps.php81 in assoc_table.php55 in config_macfilter.php54 in config_wps.phpThere is a lack of input validation and sanitization in the above list of web pages affecting the processing of a GET parameter,id, which is fed into a shell command that is executed as the root user. Command injection is performed by terminating the preceeding legitimate shell command with a semicolon ;, followed by an arbitrary shell command to inject.

Snippet of retrieving the
GETparameterid
- the value of
idis stored intointerface_idvariable

Further down the PHP codes, the
interface_idis fed into multipleexec()calls without validation or sanitization
The following steps will list how to reproduce this vulnerability
root shell on the device