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.
Originally disclosed on Cisco Talos
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.
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.