CVE-2018-19943 — QNAP NAS File Station Cross-Site Scripting Vulnerability

CVE-2018-19943

QNAP File Station XSS — Session Hijacking on Internet-Exposed NAS Appliances

What is QNAP File Station?

File Station is the web-based file manager built into QNAP's QTS operating system for its Network Attached Storage (NAS) appliances. It lets users browse, upload, download, and share files stored on the device straight from a browser, without needing a separate client. QNAP NAS devices are widely deployed by small businesses, prosumers, and home users to store backups, media, and shared files — and because many are directly exposed to the internet for remote access, they have become a recurring target for mass-exploitation and ransomware campaigns (Qlocker, DeadBolt, and others have all specifically targeted QNAP devices).

Overview

CVE-2018-19943 is a cross-site scripting (XSS) vulnerability in the File Station component of QNAP NAS's QTS firmware. A remote attacker can inject malicious script content that executes in the context of a victim's authenticated File Station session, typically by tricking a logged-in user into visiting a crafted link or opening malicious content. Successful exploitation can allow the attacker to hijack the victim's session, perform actions with the victim's privileges, or pivot into further compromise of the NAS device.

Technical Details

The vulnerability stems from CWE-79 (improper neutralization of input during web page generation): File Station fails to properly sanitize or encode certain user-supplied input before reflecting it back into the web interface, allowing injected HTML/JavaScript to execute in the browser of anyone who views the affected page. The CVSS vector reflects a "changed scope" attack — the XSS impact extends beyond the vulnerable component into the broader QTS session context, and requires user interaction (visiting a malicious link/page) alongside at least low-privileged access to reach the vulnerable functionality.

Discovery

QNAP addressed this issue through its standard security advisory and firmware update process. No specific third-party researcher credit is confidently documented for this individual CVE.

Exploitation Context

QNAP NAS devices have repeatedly been targeted by ransomware operators over the past several years, which is reflected in the ransomwareUse: true marker for this entry. CISA's KEV listing confirms this specific XSS flaw has seen exploitation in the wild, likely as part of broader campaigns chaining multiple QNAP File Station vulnerabilities (including the command injection issues cataloged alongside it, CVE-2018-19949 and CVE-2018-19953) to gain a foothold on exposed NAS appliances before deploying ransomware or other malware.

Remediation

  1. Update QNAP QTS firmware and the File Station app to the latest available version per QNAP's security advisories.
  2. Never expose the QNAP web management or File Station interface directly to the internet — use QNAP's myQNAPcloud remote access with VPN, or place the device behind a firewall/VPN gateway.
  3. Enable QNAP's built-in security features, including account lockout policies and two-factor authentication for administrative accounts.
  4. Review File Station access logs and shared links for signs of unauthorized activity, especially around the timeframe when known QNAP ransomware campaigns (Qlocker, DeadBolt) were active.
  5. Maintain offline, versioned backups of NAS data independent of the device itself, since ransomware targeting QNAP devices frequently encrypts or deletes on-device snapshots as well.

Key Details

PropertyValue
CVE ID CVE-2018-19943
Vendor / Product QNAP — Network Attached Storage (NAS)
NVD Published2020-10-28
NVD Last Modified2025-11-03
CVSS 3.1 Score8
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
SeverityHIGH
CWE CWE-79 find similar ↗
CISA KEV Added2022-05-24
CISA KEV Deadline2022-06-14
Known Ransomware Use ⚠️ Yes

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2022-06-14. Apply updates per vendor instructions.

Timeline

DateEvent
2020-10-28CVE published
2022-05-24Added to CISA Known Exploited Vulnerabilities catalog
2022-06-14CISA BOD 22-01 remediation deadline

References

ResourceType
NVD — CVE-2018-19943 Vulnerability Database
CISA KEV Catalog Entry US Government