Unauthenticated Remote Command Execution in Multiple WAGO Products
The 'legal information' plugin in WAGO web management interface reads a package ID from the HTTP body and passes it unsanitised to a shell command, allowing an unauthenticated attacker to execute arbitrary commands as the www user.
Published on onekey.com
Example H2
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The PHP script reads a package ID from the request body and uses it directly in a shell_exec call without sanitisation.
Impact
A successful exploit allows an attacker to create new users and change the device configuration, which can result in unintended behavior, denial of service, and full system compromise.
What the attacker needed
Network access to the device; no authentication required
The fix
The vulnerability was fixed in FW22 Patch 1 or FW24 depending on the affected device.
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 write-up has not been written yet. The Original tab links to the source.
A web page on the device takes a value from the user and runs it as a system command without checking it. An attacker can send a crafted request that makes the device run any command they choose, without logging in.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.