Advisory Details

December 20th, 2017

QNAP QTS Web change_password Stack-based Buffer Overflow Remote Code Execution Vulnerability

ZDI-17-1008
ZDI-CAN-5280

CVE ID CVE-2017-17032
CVSS SCORE 10, (AV:N/AC:L/Au:N/C:C/I:C/A:C)
AFFECTED VENDORS QNAP
AFFECTED PRODUCTS QTS
TREND MICRO CUSTOMER PROTECTION Trend Micro TippingPoint IPS customers are protected against this vulnerability by Digital Vaccine protection filter ID 29875. For further product information on the TippingPoint IPS: http://www.tippingpoint.com
VULNERABILITY DETAILS


This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of QNAP QTS. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the handling of the USER_NAME parameter provided to the change_password.cgi endpoint. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code under the context of root.

VENDOR RESPONSE QNAP has issued an update to correct this vulnerability. More details can be found at:
https://www.qnap.com/en/security-advisory/nas-201712-15
DISCLOSURE TIMELINE
  • 2017-10-09 - Vulnerability reported to vendor
  • 2017-12-20 - Coordinated public release of advisory
CREDIT @nervoir
BACK TO ADVISORIES