{"id":163470,"date":"2024-05-21T07:33:36","date_gmt":"2024-05-21T07:33:36","guid":{"rendered":"https:\/\/securityaffairs.com\/?p=163470"},"modified":"2024-05-21T07:34:01","modified_gmt":"2024-05-21T07:34:01","slug":"fifteen-vulnerabilities-in-the-qnap-qts","status":"publish","type":"post","link":"https:\/\/securityaffairs.com\/163470\/hacking\/fifteen-vulnerabilities-in-the-qnap-qts.html","title":{"rendered":"<\/gwmw>Experts released PoC exploit code for RCE in QNAP QTS<\/gwmw>"},"content":{"rendered":"
<\/div>\n

Experts warn of fifteen vulnerabilities in the QNAP QTS, the operating system for the Taiwanese vendor’s NAS products.<\/h2>\n\n\n\n

An audit of QNAP QTS conducted by WatchTowr Labs revealed fifteen vulnerabilities, most of which have yet to be addressed. The most severe vulnerability is a flaw tracked as CVE-2024-27130. The issue is an unpatched stack buffer overflow vulnerability in the ‘No_Support_ACL’ function of ‘share.cgi,’ an unauthenticated\u00a0attacker can exploit this issue to perform remote code execution under certain conditions.<\/p>\n\n\n\n

The WatchTowr Labs researchers also published technical details of the flaw CVE-2024-27130 and a proof of concept (PoC) exploit code<\/a>.<\/p>\n\n\n\n

An attacker can exploit CVE-2024-27130 by sending a malicious request with a specially crafted ‘name’ parameter, causing a buffer overflow and leading to remote code execution. To do this, the attacker needs a valid ‘ssid’ parameter, generated when a NAS user shares a file from their QNAP device. This parameter is included in the URL of the ‘share’ link. An attacker can obtain the parameter by using a social engineering technique.<\/p>\n\n\n\n

“Unsafe use of\u00a0strcpy<\/code>\u00a0in\u00a0No_Support_ACL<\/code>\u00a0accessible by\u00a0get_file_size<\/code>\u00a0function of\u00a0share.cgi<\/code>\u00a0leads to stack buffer overflow and thus RCE” reads the advisory<\/strong><\/a> published by WatchTowr Labs. To exploit the flaw, an attacker needs a valid NAS user to share a file.<\/p>\n\n\n\n

The other vulnerabilities impacting Network Attached Storage (NAS) discovered by WatchTowr code execution, buffer overflow, memory corruption, authentication bypass, and XSS issues impacting the security of Network Attached Storage (NAS) devices across different deployment environments.<\/p>\n\n\n\n

Below is the full list of the vulnerabilities discovered by the experts:<\/p>\n\n\n\n

Bug<\/td>Nature<\/td>Fix status<\/td>Requirements<\/td><\/tr>
CVE-2023-50361<\/td>Unsafe use of sprintf<\/code> in getQpkgDir<\/code> invoked from userConfig.cgi<\/code> leads to stack buffer overflow and thus RCE<\/td>Patched (see text)<\/td>Requires valid account on NAS device<\/td><\/tr>
CVE-2023-50362<\/td>Unsafe use of SQLite functions accessible via parameter addPersonalSmtp<\/code> to userConfig.cgi<\/code> leads to stack buffer overflow and thus RCE<\/td>Patched (see text)<\/td>Requires valid account on NAS device<\/td><\/tr>
CVE-2023-50363<\/td>Missing authentication allows two-factor authentication to be disabled for arbitrary user<\/td>Patched (see text)<\/td>Requires valid account on NAS device<\/td><\/tr>
CVE-2023-50364<\/td>Heap overflow via long directory name when file listing is viewed by get_dirs<\/code> function of privWizard.cgi<\/code> leads to RCE<\/td>Patched (see text)<\/td>Requires ability to write files to the NAS filesystem<\/td><\/tr>
CVE-2024-21902<\/td>Missing authentication allows all users to view or clear system log, and perform additional actions (details to follow, too much to list here)<\/td>Accepted by vendor; no fix available (first reported December 12th 2023)<\/td>Requires valid account on NAS device<\/td><\/tr>
CVE-2024-27127<\/td>A double-free in utilRequest.cgi<\/code> via the delete_share<\/code> function<\/td>Accepted by vendor; no fix available (first reported January 3rd 2024)<\/td>Requires valid account on NAS device<\/td><\/tr>
CVE-2024-27128<\/td>Stack overflow in check_email<\/code> function, reachable via the share_file<\/code> and send_share_mail<\/code> actions of utilRequest.cgi<\/code> (possibly others) leads to RCE<\/td>Accepted by vendor; no fix available (first reported January 3rd 2024)<\/td>Requires valid account on NAS device<\/td><\/tr>
CVE-2024-27129<\/td>Unsafe use of strcpy<\/code> in get_tree<\/code> function of utilRequest.cgi<\/code> leads to static buffer overflow and thus RCE<\/td>Accepted by vendor; no fix available (first reported January 3rd 2024)<\/td>Requires valid account on NAS device<\/td><\/tr>
CVE-2024-27130<\/td>Unsafe use of strcpy<\/code> in No_Support_ACL<\/code> accessible by get_file_size<\/code> function of share.cgi<\/code> leads to stack buffer overflow and thus RCE<\/td>Accepted by vendor; no fix available (first reported January 3rd 2024)<\/td>Requires a valid NAS user to share a file<\/td><\/tr>
CVE-2024-27131<\/td>Log spoofing via x-forwarded-for<\/code> allows users to cause downloads to be recorded as requested from arbitrary source location<\/td>Accepted by vendor; no fix available (first reported January 3rd 2024)<\/td>Requires ability to download a file<\/td><\/tr>
WT-2023-0050<\/td>N\/A<\/em><\/td>Under extended embargo due to unexpectedly complex issue<\/td>N\/A<\/em><\/td><\/tr>
WT-2024-0004<\/td>Stored XSS via remote syslog messages<\/td>No fix available (first reported January 8th 2024)<\/td>Requires non-default configuration<\/td><\/tr>
WT-2024-0005<\/td>Stored XSS via remote device discovery<\/td>No fix available (first reported January 8th 2024)<\/td>None<\/td><\/tr>
WT-2024-0006<\/td>Lack of rate-limiting on authentication API<\/td>No fix available (first reported January 23rd 2024)<\/td>None<\/td><\/tr>
WT-2024-00XX<\/td>N\/A<\/em><\/td>Under 90-day embargo as per VDP (first reported May 11th 2024)<\/td>N\/A<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

The flaws<\/a> impact QTS, QuTScloud, and QTS hero.<\/gwmw><\/gwmw><\/p>\n\n\n\n

The vendor responded to the vulnerability reports submitted between December 12, 2023, and January 23, 2024, with multiple delays and has fixed only four of the fifteen flaws.<\/p>\n\n\n\n

At this time, QNAP only addressed CVE-2023-50361, CVE-2023-50362, CVE-2023-50363, and CVE-2023-50364 with the release of a security update in April 2024. The following versions fixed the four vulnerabilities:<\/p>\n\n\n\n