Rapid7 Vulnerability & Exploit Database

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

Back to Search

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

Disclosed
02/13/2024
Created
02/21/2024

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.

Author(s)

  • sfewer-r7
  • Spencer McIntyre
  • jheysel-r7

Platform

Linux,Unix

Architectures

cmd

Development

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

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;