Skip to content
Misconfiguration Advisory Intermediate CVE-2019-5158

WAGO e!COCKPIT Firmware Downgrade Vulnerability

The firmware update package format used by WAGO e!COCKPIT does not properly validate the version metadata inside the package. An attacker could repackage a signed older firmware with metadata claiming a newer version, so the user believes a newer firmware is installed while an older, vulnerable one is actually on the device.

Kelly Leuschner Follow

Originally disclosed on Cisco Talos

High 8.6 View original

An exploitable firmware downgrade vulnerability exists in the firmware update package functionality of the WAGO e!COCKPIT automation software. A specially crafted firmware update file can allow an attacker to install an older firmware version while the user thinks a newer firmware version is being installed.

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 update mechanism trusted the version metadata in the package's control file without verifying it matched the signed firmware actually contained in the archive.

Impact

An attacker could downgrade a controller to an older firmware with known vulnerabilities, potentially gaining access to the device after the update; the attack requires the user to run the crafted package.

What the attacker needed

Local access to place or supply the package; victim runs the firmware update

How it was found

  1. Obtain a legitimate WAGO update package and extract it using the hard-coded password.
  2. Copy the signed firmware file from the extracted package.
  3. Repackage that firmware with a control file that reports a different, newer version number.
  4. Deliver the crafted package to the user, for example by placing it in the local firmware repository folder.
  5. The user runs the update believing a newer version is being installed, but the older firmware is written to the 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 report has not been written yet. The Original tab links to the source.

Firmware is the low-level software that runs on a hardware device. This tool lets users update that software from a package file, and the package contains a small text file saying which version it holds. The tool trusted that label without checking it against the actual firmware, so someone could relabel an old package as a new one and trick the user into installing outdated software with known security holes.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

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.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.