Skip to content
Access control Advisory Intermediate CVE-2019-5160

WAGO PFC200 Cloud Connectivity Improper Host Validation Vulnerability

The WAGO PFC200 controller allows an authenticated administrator to change the hostname of the Wago Cloud service to an attacker-controlled Azure IoT Hub. This lets the attacker send commands that are normally restricted to the Wago Cloud, potentially leading to unauthorised access to firmware update functionality.

Kelly Leuschner Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

An exploitable improper host validation vulnerability exists in the Cloud Connectivity functionality of WAGO PFC200. A specially crafted HTTPS POST request can cause the software to connect to an unauthorized host, resulting in unauthorized access to firmware update functionality.

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 device does not properly validate the hostname configured for the Wago Cloud service, allowing it to be changed to an arbitrary host that is trusted because a generic Azure IoT Hub certificate is present.

Impact

An attacker with administrator access could gain unauthorised access to firmware update functionality, potentially leading to full device compromise.

What the attacker needed

Administrator access to the web interface; ability to configure Cloud Connectivity; attacker-controlled Azure IoT Hub instance

The fix

The vulnerability should be fixed by properly validating the configured hostname and restricting it to the legitimate Wago Cloud service, or by not allowing the hostname to be changed.

How it was found

  1. Log in to the web-based management interface as an administrator.
  2. Select the Cloud Connectivity configuration.
  3. Choose the Wago Cloud platform and enter a hostname pointing to an attacker-controlled Azure IoT Hub.
  4. Save the configuration, causing the device to connect to the attacker's node.
  5. Send commands from the attacker's node that are normally restricted to the Wago Cloud.

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 device trusts commands from a specific cloud service, but the address of that service can be changed by an admin. An attacker with admin access can point the device to their own fake cloud server and then send commands that the device would normally only accept from the real service. This could let them do things like update the firmware without permission.

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.

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.

Broken access control

The lesson behind this report.

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.