Skip to content
Memory corruption Advisory Advanced CVE-2018-10616

ABB Panel Builder Yaskawa_FSP_Pre StationsList Stack-based Buffer Overflow Remote Code Execution Vulnerability

The ABB Yaskawa_FSP_Pre OPC driver in Panel Builder 800 copies the StationsList parameter into a fixed-size stack buffer without checking its length. An attacker who gets a user to open a crafted file or visit a malicious page could run arbitrary code in the context of the current process.

Michael DePlante - Leahy Center for Digital Investigation at Champlain College Follow

Originally disclosed on Zero Day Initiative

Critical 9.3 View original

This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of ABB Panel Builder 800. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

Michael DePlante - Leahy Center for Digital Investigation at Champlain College, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

ABB Panel Builder 800 is a software package used to build operator panels and HMI applications. Part of its runtime is a set of OPC drivers that let a panel talk to industrial controllers, and one of those drivers is the ABB Yaskawa_FSP_Pre OPC Driver. The driver handles a parameter called StationsList.

The advisory describes a stack-based buffer overflow in the handling of that StationsList parameter. A remote attacker can use it to execute arbitrary code on an installation of ABB Panel Builder 800, but only if the target user is persuaded to visit a malicious page or open a malicious file. The vulnerability is rated critical with a CVSS score of 9.3.

Setup

The advisory does not describe any accounts, roles, tools or specific product versions. The only precondition it states is on the victim side: user interaction is required, in that the target must visit a malicious page or open a malicious file. No proof-of-concept code, request, payload or command is published with the advisory.

Finding it

The flaw was identified in the code that handles the StationsList parameter inside the ABB Yaskawa_FSP_Pre OPC Driver. The advisory states the issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a stack-based buffer. In other words, the driver takes a length-controlled value from outside and copies it into a fixed-size stack buffer without checking that it fits.

The advisory does not describe how the researcher first noticed the problem, whether by fuzzing, code review or manual testing, and it does not include a crash trace or a sample input.

Exploitation

The advisory gives no step-by-step exploitation walkthrough, no request, no payload and no observed response. What it does state is the shape of the attack:

  1. The attacker prepares a malicious page or a malicious file that carries an oversized StationsList value.
  2. The target user is induced to visit the page or open the file, which is the user-interaction requirement.
  3. The driver processes the StationsList parameter and copies the user-supplied data into a stack-based buffer without validating its length.
  4. The overflow lets the attacker execute code in the context of the current process.

Because the advisory does not publish the exact input format, the size threshold that triggers the overflow, or the resulting memory layout, none of those details can be given here. The only concrete artefact in the report is the vendor's update link, reproduced in the next section.

Root cause

The mistake is a missing length check before a copy into a stack-based buffer. The StationsList parameter is treated as trusted input, and the driver copies it into a fixed-size stack allocation without confirming that the supplied data fits. When the data is longer than the buffer, the copy overwrites adjacent stack memory.

The advisory does not name the specific function, the buffer size, or the copy routine involved, so the exact code path is not public in this text. It also does not explain why existing defences did not stop the overflow; the absence of a length check before the copy is the stated reason the flaw exists.

Impact

A remote attacker who can get a user to visit a malicious page or open a malicious file can execute arbitrary code on the vulnerable installation. The code runs in the context of the current process, so the attacker inherits whatever privileges that process holds. The advisory does not state which privileges those are, nor whether exploitation is reliable across versions or configurations.

The user-interaction requirement is a real limit: the attack is not launched blindly against a listening service in the description given here. It depends on the victim opening the crafted content.

Fix

ABB issued an update to correct the vulnerability. The advisory points to the vendor's security note for Panel Builder 800, titled as covering an improper input validation vulnerability:

Text
https://library.e.abb.com/public/[redacted]/3BSE092089_A_en_SECURITY_-[redacted].pdf?x-sign=OyK2T7i661JL8oQxBk+0/iWUV+[redacted]

The advisory does not describe the code change itself.

Variants to test

These are general directions suggested by the shape of this bug, not items the advisory covers:

  • Other OPC drivers shipped with the same product family that parse list-style configuration fields. A positive result is a crash or memory corruption when a field is supplied well beyond its expected length.
  • Other parameters in the same driver that are copied into fixed-size buffers. A positive result is the same kind of overwrite, visible as an access violation or corrupted return address.
  • File-based and page-based delivery paths for the same parser. A positive result is that opening a crafted file or loading a crafted page reaches the vulnerable copy without any further validation.
  • Boundary testing around the expected maximum length of StationsList. A positive result is a clean rejection at the limit and a crash just past it, which confirms the missing check rather than a general parsing failure.

Hunting notes

Bugs of this kind tend to hide in the parsing of configuration and list fields in industrial and SCADA software, especially in drivers and protocol adapters that were written before input validation was standard practice. During recon, the signals are products that accept externally supplied configuration files or embed a browser-rendered help or project viewer, and drivers whose parameters are documented as free-form lists. The advisory itself gives no recon detail beyond the product and driver names.

The impact case here rests on the combination of remote reachability and code execution in the current process, with the user-interaction caveat stated openly. The advisory records the report to the vendor on 2018-07-17, coordinated public release on 2018-08-10, and an update to the advisory on the same day. Credit goes to Michael DePlante of the Leahy Center for Digital Investigation at Champlain College.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 11 min read.

What happened, in plain words

ABB Panel Builder 800 is a program used to design the screens and controls that run on industrial operator panels, the touchscreen units that sit on machines and let people start, stop and monitor equipment. Part of the software that runs on those panels is a set of drivers, small pieces of code that let the panel talk to the industrial controllers behind the machine. One of these drivers is called the ABB Yaskawa_FSP_Pre OPC Driver. It handles a parameter called StationsList.

A security researcher found that this driver takes the StationsList value and copies it into a fixed-size area of memory without first checking how long the value is. If the value is longer than the space reserved for it, the extra data spills over into neighbouring memory. This kind of mistake is called a stack-based buffer overflow. An attacker can use it to run their own code on the machine, but only if the person using the machine is tricked into visiting a malicious web page or opening a malicious file. The vulnerability is rated critical, with a CVSS score of 9.3.

The advisory does not include a proof of concept, a sample request, a payload or a command. It describes the flaw, the vendor's fix and the timeline.

Context

To follow this, you need a few ideas from computing.

  • Memory and the stack: when a program runs, it keeps some of its working data in a region called the stack. Think of it as a row of numbered pigeonholes, each big enough for a fixed amount of data. A program that wants to store something temporarily reserves a pigeonhole of a certain size.
  • Buffer: a buffer is just a reserved space in memory, like a box with a fixed capacity. A stack-based buffer is a box that lives on the stack.
  • Buffer overflow: if you pour more water into a glass than it can hold, the water spills onto the table. A buffer overflow is the same idea in memory: more data is written into the box than it can hold, so the extra data lands in the memory next to it. That neighbouring memory may hold other variables, or the address the program will jump to when the current function finishes. Overwriting it can change how the program behaves, and in the right circumstances it lets an attacker redirect execution to code of their choosing.
  • OPC driver: OPC is a family of standards used in industrial automation so that software from different vendors can exchange data. A driver is a piece of software that knows how to speak a particular protocol or talk to a particular device. The ABB Yaskawa_FSP_Pre OPC Driver is one such driver inside Panel Builder 800's runtime.
  • HMI: Human-Machine Interface. It is the screen and controls a person uses to operate a machine.
  • Parameter: a named input that a piece of software reads and acts on. StationsList is a parameter of the driver: it carries the list of stations the driver should connect to.
  • Remote attacker: someone attacking over a network or through content delivered to the victim, rather than someone who already has physical access to the machine.
  • Arbitrary code execution: the attacker can make the program run instructions of their own choosing, rather than only the instructions it was designed to run.
  • Context of the current process: the attacker's code runs with the same permissions as the program that was attacked. If that program can read files, the attacker's code can read files; if it runs as an administrator, so does the attacker's code.
  • User interaction: the attack only works if the victim does something, such as opening a file or visiting a page. It is not launched blindly against a service that is always listening.
  • CVSS: Common Vulnerability Scoring System, a standard way of expressing how severe a vulnerability is on a scale from 0 to 10. A score of 9.3 is in the critical range.

The advisory describes a stack-based buffer overflow in the handling of the StationsList parameter. A remote attacker can use it to execute arbitrary code on an installation of ABB Panel Builder 800, but only if the target user is persuaded to visit a malicious page or open a malicious file.

Setup

The advisory does not describe any accounts, roles, tools or specific product versions. The only precondition it states is on the victim side: user interaction is required, in that the target must visit a malicious page or open a malicious file. No proof-of-concept code, request, payload or command is published with the advisory.

In plain terms: there is nothing to install and no special access to obtain. The attacker's job is to get a crafted page or file in front of someone who uses Panel Builder 800, and to persuade that person to open it.

Finding it

The flaw was identified in the code that handles the StationsList parameter inside the ABB Yaskawa_FSP_Pre OPC Driver. The advisory states the issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a stack-based buffer. In other words, the driver takes a length-controlled value from outside and copies it into a fixed-size stack buffer without checking that it fits.

A useful comparison is a form field that asks for a nickname and stores it in a box designed for ten letters. If the program never checks the length, someone can type a hundred letters and the extra ninety spill into whatever is stored next to the box. Here the box is on the stack, and the value comes from the StationsList parameter.

The advisory does not describe how the researcher first noticed the problem, whether by fuzzing, code review or manual testing, and it does not include a crash trace or a sample input.

Exploitation

The advisory gives no step-by-step exploitation walkthrough, no request, no payload and no observed response. What it does state is the shape of the attack:

  1. The attacker prepares a malicious page or a malicious file that carries an oversized StationsList value.
  2. The target user is induced to visit the page or open the file, which is the user-interaction requirement.
  3. The driver processes the StationsList parameter and copies the user-supplied data into a stack-based buffer without validating its length.
  4. The overflow lets the attacker execute code in the context of the current process.

Step 1 is preparation: the attacker builds content that the driver will read as a StationsList value, and makes that value longer than the space reserved for it. Step 2 is delivery: the content has to reach the victim, and the victim has to open it. This is why the advisory calls it user interaction; the attacker cannot simply connect to the driver from afar in the description given here. Step 3 is the moment of failure: the driver copies the value into its fixed-size stack buffer, and because there is no length check, the copy runs past the end of the buffer. Step 4 is the consequence: the spilled data can overwrite the memory that controls what the program does next, so the attacker can redirect it to code they supplied.

Because the advisory does not publish the exact input format, the size threshold that triggers the overflow, or the resulting memory layout, none of those details can be given here. The only concrete artefact in the report is the vendor's update link, reproduced in the next section.

Root cause

The mistake is a missing length check before a copy into a stack-based buffer. The StationsList parameter is treated as trusted input, and the driver copies it into a fixed-size stack allocation without confirming that the supplied data fits. When the data is longer than the buffer, the copy overwrites adjacent stack memory.

Think of a hotel clerk who is told to put a guest's luggage into room 101, and who keeps carrying bags into the room until they are all inside, without ever checking whether the room is full. The bags that do not fit end up in the corridor and in the rooms next door. In the same way, the driver keeps copying bytes past the end of its buffer, and the bytes land in memory that belongs to something else.

The advisory does not name the specific function, the buffer size, or the copy routine involved, so the exact code path is not public in this text. It also does not explain why existing defences did not stop the overflow; the absence of a length check before the copy is the stated reason the flaw exists.

Impact

A remote attacker who can get a user to visit a malicious page or open a malicious file can execute arbitrary code on the vulnerable installation. The code runs in the context of the current process, so the attacker inherits whatever privileges that process holds. The advisory does not state which privileges those are, nor whether exploitation is reliable across versions or configurations.

The user-interaction requirement is a real limit: the attack is not launched blindly against a listening service in the description given here. It depends on the victim opening the crafted content. In everyday terms, the attacker cannot simply knock on every door on the network; they have to persuade someone inside to open a parcel.

Fix

ABB issued an update to correct the vulnerability. The advisory points to the vendor's security note for Panel Builder 800, titled as covering an improper input validation vulnerability:

Text
https://library.e.abb.com/public/[redacted]/3BSE092089_A_en_SECURITY_-[redacted].pdf?x-sign=OyK2T7i661JL8oQxBk+0/iWUV+[redacted]

This is a single web address. The part before the question mark is the path to a PDF document on ABB's library server. The part after the question mark is a query string. Opening the address in a browser downloads or displays the vendor's security note. The advisory does not describe the code change itself.

Variants to test

These are general directions suggested by the shape of this bug, not items the advisory covers:

  • Other OPC drivers shipped with the same product family that parse list-style configuration fields. A positive result is a crash or memory corruption when a field is supplied well beyond its expected length.
  • Other parameters in the same driver that are copied into fixed-size buffers. A positive result is the same kind of overwrite, visible as an access violation or corrupted return address.
  • File-based and page-based delivery paths for the same parser. A positive result is that opening a crafted file or loading a crafted page reaches the vulnerable copy without any further validation.
  • Boundary testing around the expected maximum length of StationsList. A positive result is a clean rejection at the limit and a crash just past it, which confirms the missing check rather than a general parsing failure.

Hunting notes

Bugs of this kind tend to hide in the parsing of configuration and list fields in industrial and SCADA software, especially in drivers and protocol adapters that were written before input validation was standard practice. During recon, the signals are products that accept externally supplied configuration files or embed a browser-rendered help or project viewer, and drivers whose parameters are documented as free-form lists. The advisory itself gives no recon detail beyond the product and driver names.

The impact case here rests on the combination of remote reachability and code execution in the current process, with the user-interaction caveat stated openly. The advisory records the report to the vendor on 2018-07-17, coordinated public release on 2018-08-10, and an update to the advisory on the same day. Credit goes to Michael DePlante of the Leahy Center for Digital Investigation at Champlain College.

Glossary

  • ABB Panel Builder 800: a software package for building operator panels and HMI applications.
  • HMI (Human-Machine Interface): the screen and controls a person uses to operate a machine.
  • OPC driver: a piece of software that lets a program exchange data with industrial devices using the OPC standards.
  • ABB Yaskawa_FSP_Pre OPC Driver: the specific driver inside Panel Builder 800 where the flaw was found.
  • StationsList: the parameter handled by the driver that carries the list of stations to connect to.
  • Stack: a region of memory a running program uses for temporary working data, organised like a row of fixed-size pigeonholes.
  • Buffer: a reserved area of memory with a fixed capacity.
  • Stack-based buffer: a buffer that lives on the stack.
  • Buffer overflow: writing more data into a buffer than it can hold, so the extra data spills into neighbouring memory.
  • Stack-based buffer overflow: a buffer overflow in which the overflowing buffer is on the stack.
  • Length validation: checking how long a piece of input is before using it, and rejecting or truncating it if it is too long.
  • User-supplied data: data that comes from outside the program, such as a value in a file or a page.
  • Remote attacker: someone attacking over a network or through content delivered to the victim, rather than someone with physical access.
  • Arbitrary code execution: the ability to make a program run instructions of the attacker's choosing.
  • Context of the current process: the permissions and identity of the running program; code executed in this context inherits them.
  • User interaction: a requirement that the victim perform an action, such as opening a file or visiting a page, for the attack to work.
  • CVSS: Common Vulnerability Scoring System, a standard severity score from 0 to 10.
  • Critical: the severity band for the highest CVSS scores; 9.3 falls in this band.
  • Proof of concept: a demonstration, often code or a sample input, that shows a vulnerability can be triggered.
  • Payload: the data an attacker supplies to achieve an effect, such as running code.
  • Crash trace: a record of what a program was doing when it crashed.
  • Fuzzing: automated testing that feeds a program many malformed inputs to find crashes.
  • Code review: reading source code by hand to find mistakes.
  • Access violation: an error raised when a program tries to read or write memory it is not allowed to touch.
  • Return address: the place in memory that tells a function where to go back to when it finishes; overwriting it can redirect execution.
  • SCADA: Supervisory Control and Data Acquisition, software used to monitor and control industrial processes.
  • Recon: the information-gathering phase of security testing.
  • Query string: the part of a web address after the question mark, carrying parameters such as a signature.
  • Coordinated public release: publishing details of a vulnerability on an agreed date, after the vendor has had time to fix it.

More by Michael DePlante - Leahy Center for Digital Investigation at Champlain College

View all

19 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.