Advisory Details

December 13th, 2019

Advantech DiagAnywhere FILE_OPEN_RO Stack-based Buffer Overflow Remote Code Execution Vulnerability

ZDI-19-1018
ZDI-CAN-9487

CVE ID CVE-2019-18257
CVSS SCORE 9.8, AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AFFECTED VENDORS Advantech
AFFECTED PRODUCTS DiagAnywhere
VULNERABILITY DETAILS

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Advantech DiagAnywhere. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the handling of FILE_OPEN_RO messages. 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 in the context of the server process.

ADDITIONAL DETAILS Advantech has issued an update to correct this vulnerability. More details can be found at:
https://www.us-cert.gov/ics/advisories/icsa-19-346-01
DISCLOSURE TIMELINE
  • 2019-11-14 - Vulnerability reported to vendor
  • 2019-12-13 - Coordinated public release of advisory
CREDIT Z0mb1E
BACK TO ADVISORIES