CVE-2019-5174
CVE-2019-5174
In short
A WAGO PFC 200 device allows attackers to run arbitrary system commands by crafting a malicious XML file that gets processed by the iocheckd service. This happens because user-controlled data from the XML is directly used in a system command without proper validation.
Technical detail
Command injection vulnerability in iocheckd's I/O-Check function via unsanitized XML parsing. The subnetmask XML node value is passed directly to sprintf() and executed via system() call without input validation. An attacker can trigger parsing of a crafted XML cache file by sending a specially crafted packet to inject arbitrary OS commands.
Summary generated and translated by AI from the official description.
An exploitable command injection vulnerability exists in the iocheckd service ‘I/O-Check’ function of the WAGO PFC 200 version 03.02.02(14). A specially crafted XML cache file written to a specific location on the device can be used to inject OS commands. An attacker can send a specially crafted packet to trigger the parsing of this cache file.At 0x1e9fc the extracted subnetmask value from the xml file is used as an argument to /etc/config-tools/config_interfaces interface=X1 state=enabled subnet-mask=<contents of subnetmask node> using sprintf(). This command is later executed via a call to system().
Affected products
Wago · WAGO PFC200 FirmwareWant to know if your infrastructure is exposed to this?
Talk to TrueHacking →