Skip to content
Info disclosure Advisory Advanced CVE-2019-5073

WAGO PFC200 iocheckd service "I/O-Check" external tool information exposure vulnerability

The iocheckd service on WAGO PFC200 controllers runs external tools and copies their output into a stack buffer, but when the tool fails the buffer is left uninitialised and its contents are sent back in the response. An unauthenticated attacker can send crafted packets to leak stack memory, which could help bypass protections such as ASLR.

Kelly Leuschner Follow

Originally disclosed on Cisco Talos

Medium 5.3 View original

An exploitable information exposure vulnerability exists in the iocheckd service “I/O-Check” functionality of WAGO PFC 200. A specially crafted set of packets can cause an external tool to fail, resulting in uninitialized stack data to be copied to the response packet buffer.

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

The code ignores the return value of the function that runs the external tool and assumes the stack buffer was filled, so uninitialised stack data is later copied into the response.

Impact

An unauthenticated attacker could leak stack memory, and when combined with other vulnerabilities this information can be used to bypass security protections such as ASLR.

What the attacker needed

Network access to the iocheckd service; no authentication required

The fix

The vulnerability could be mitigated by disabling the iocheckd service via 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.

A controller runs a small helper program to get some text, but if that helper fails, the controller still sends back whatever happened to be left in its memory instead of an error. That leftover memory can contain addresses and other internal details that help an attacker defeat security features like ASLR, which randomises where code lives in memory.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.