Advisory Details

May 19th, 2024

(Pwn2Own) QNAP TS-464 authLogin SQL Injection Remote Code Execution Vulnerability

ZDI-24-471
ZDI-CAN-22494

CVE ID CVE-2024-21901
CVSS SCORE 8.8, AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
AFFECTED VENDORS QNAP
AFFECTED PRODUCTS TS-464
VULNERABILITY DETAILS

This vulnerability allows remote attackers to execute arbitrary code on affected installations of QNAP TS-464 NAS devices. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.

The specific flaw exists within the authLogin endpoint. The issue results from the lack of proper validation of a user-supplied string before using it to construct SQL queries. An attacker can leverage this vulnerability to execute code in the context of root.

ADDITIONAL DETAILS QNAP has issued an update to correct this vulnerability. More details can be found at:
https://www.qnap.com/en/security-advisory/qsa-24-09
DISCLOSURE TIMELINE
  • 2023-11-09 - Vulnerability reported to vendor
  • 2024-05-19 - Coordinated public release of advisory
  • 2024-07-01 - Advisory Updated
CREDIT LJP (@ljp_tw) and YingMuo (@YingMuo), working with DEVCORE Internship Program
BACK TO ADVISORIES