module

QNAP QTS and QuTS Hero Unauthenticated Remote Code Execution in quick.cgi

Disclosed
2024-02-13
Created
2024-02-21

Description

There exists an unauthenticated command injection vulnerability in the QNAP operating system known as QTS and
QuTS hero. QTS is a core part of the firmware for numerous QNAP entry and mid-level Network Attached Storage
(NAS) devices, and QuTS hero is a core part of the firmware for numerous QNAP high-end and enterprise NAS devices.

The vulnerable endpoint is the quick.cgi component, exposed by the device’s web based administration feature.
The quick.cgi component is present in an uninitialized QNAP NAS device. This component is intended to be used
during either manual or cloud based provisioning of a QNAP NAS device. Once a device has been successfully
initialized, the quick.cgi component is disabled on the system.

An attacker with network access to an uninitialized QNAP NAS device may perform unauthenticated command
injection, allowing the attacker to execute arbitrary commands on the device.

Authors

sfewer-r7
Spencer McIntyre
jheysel-r7

Platform

Linux,Unix

Architectures

cmd

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use exploit/linux/http/qnap_qts_rce_cve_2023_47218
msf exploit(qnap_qts_rce_cve_2023_47218) > show targets
...targets...
msf exploit(qnap_qts_rce_cve_2023_47218) > set TARGET < target-id >
msf exploit(qnap_qts_rce_cve_2023_47218) > show options
...show and set options...
msf exploit(qnap_qts_rce_cve_2023_47218) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.