Skip to content
RCE Advisory Advanced CVE-2019-5155

WAGO PFC200 Cloud Connectivity Multiple Command Injection Vulnerabilities

The cloud connectivity firmware update handler on the WAGO PFC200 builds a shell command from user-supplied JSON parameter values without sanitising them. An attacker with web administrator access could inject operating system commands that run as the iot user.

Kelly Leuschner Follow

Originally disclosed on Cisco Talos

High 7.2 View original

An exploitable command injection vulnerability exists in the cloud connectivity feature of WAGO PFC200. An attacker can inject operating system commands into any of the parameter values contained in the firmware update command.

Kelly Leuschner, on Cisco Talos

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.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the firmware update parameters are concatenated into a shell command string passed to system() without escaping or validation.

Impact

An attacker with web administrator privileges could run arbitrary operating system commands as the iot user on the controller, though the text notes that web administrator access is needed to configure cloud connectivity.

What the attacker needed

Web administrator access to the device; cloud connectivity configured

The fix

The vulnerability could be mitigated by disabling the Cloud Connectivity feature through the web-based management application.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This device is an industrial controller that can receive firmware update instructions from a cloud service. The software takes values from that instruction and pastes them into a command it runs on the device's operating system without cleaning them first. Someone who can change those values can add extra commands, and the device will run them as if they were part of the update.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Kelly Leuschner

View all

32 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.