WAGO PFC 200 Web-Based Management (WBM) Code Execution Vulnerability
The WAGO PFC 200 web-based management allows an authenticated admin to upload and activate software packages that run installation scripts with root privileges, enabling privilege escalation from web admin to root. An attacker with admin access could execute arbitrary code as root and overwrite system services.
Originally disclosed on Cisco Talos
An exploitable code execution vulnerability exists in the Web-Based Management (WBM) functionality of WAGO PFC 200 03.03.10(15). A specially crafted series of HTTP requests can cause code execution resulting in remote code execution.
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
The web management uploads and activates software packages without integrity checks and runs the package manager with root privileges, so scripts in the package execute as root.
Impact
An authenticated web admin could gain root privileges on the device and overwrite system services with attacker-controlled code.
What the attacker needed
Authenticated access as web admin
How it was found
- Log in to the web-based management as an admin user.
- Upload a crafted software package in the opkg format.
- Activate the uploaded package, optionally forcing overwrite.
- The package's installation scripts run with root privileges, leading to code execution.
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.
The web interface for configuring this industrial controller lets an administrator upload software packages. Those packages can include scripts that run with the highest level of permission on the device, called root. So an attacker who can log in as the web admin can take full control of the underlying system.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.