Description
An unauthenticated command injection vulnerability exists in Serviio Media Server versions 1.4 through 1.8 on Windows, in the /rest/action API endpoint exposed by the console component (default port 23423). The checkStreamUrl method accepts a VIDEO parameter that is passed unsanitized to a call to cmd.exe, enabling arbitrary command execution under the privileges of the web server. No authentication is required to exploit this issue, as the REST API is exposed by default and lacks access controls.
Problem types
CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
CWE-306 Missing Authentication for Critical Function
CWE-20 Improper Input Validation
Product status
1.4 (custom)
Credits
Gjoko Krstic of Zero Science Lab
References
www.zeroscience.mk/en/vulnerabilities/ZSL-2017-5408.php
packetstorm.news/files/id/142387
fortiguard.fortinet.com/encyclopedia/ips/44042
raw.githubusercontent.com/...viio_checkstreamurl_cmd_exec.rb
vulncheck.com/...ia-server-unauthenticated-command-injection
www.exploit-db.com/exploits/42023