TippingPoint Zero Day Initiative
 

QNAP QTS authLogin Host Stack-based Buffer Overflow Remote Code Execution Vulnerability

ZDI-17-1005: December 20th, 2017

CVE ID

CVSS Score

Affected Vendors

Affected Products

    QTS

TippingPoint™ IPS Customer Protection

TippingPoint IPS customers are protected against this vulnerability by Digital Vaccine protection filter ID 29860. For further product information on the TippingPoint IPS:

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 authLogin.cgi. When parsing the Host header, the process does not properly validate 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:

Disclosure Timeline

    2017-10-09 - Vulnerability reported to vendor
    2017-12-20 - Coordinated public release of advisory

Credit

This vulnerability was discovered by:
    Peter Andersson (@nervoir)