Advantech WebAccess BwOpcImg Stack-based Buffer Overflow Remote Code Execution Vulnerability

ID ZDI-18-061
Type zdi
Reporter Steven Seeley (mr_me) of Offensive Security
Modified 2018-06-22T00:00:00


This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Advantech WebAccess. Authentication is not required to exploit this vulnerability. The specific flaw exists within the parsing of the command line in the BwOpcImg utility. 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 functionality to execute code under the context of Administrator.