Versions of Advantech iView software below `5.7.04.6469` are vulnerable to an unauthenticated command injection vulnerability via the `NetworkServlet` endpoint. The database backup functionality passes a user-controlled parameter, `backup_file` to the `mysqldump` command. The sanitization functionality only tests for SQL injection attempts and directory traversal, so leveraging the `-r` and `-w` `mysqldump` flags permits exploitation. The command injection vulnerability is used to write a payload on the target and achieve remote code execution as NT AUTHORITY\SYSTEM.
Exploit database
Vulnerability
CVE-2022-2143
Advantech iView
Vulnerability details
- Score
- 9.8
- Severity
- critical
CVSS 3.1 · icscert
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDescription
The affected product is vulnerable to two instances of command injection, which may allow an attacker to remotely execute arbitrary code.
CVE ProgramExploit source choices
1 sourceAdvantech iView NetworkServlet Command Injection
2022-06-28advantech_iview_networkservlet_cmd_inject.rb