Wago PFC200 'I/O-Check' Service Vulnerabilit
Reporter | Title | Published | Views | Family All 5 |
---|---|---|---|---|
NVD | CVE-2019-5185 | 23 Mar 202014:15 | – | nvd |
CVE | CVE-2019-5185 | 23 Mar 202014:15 | – | cve |
Cvelist | CVE-2019-5185 | 23 Mar 202013:22 | – | cvelist |
Prion | Stack overflow | 23 Mar 202014:15 | – | prion |
Talos | WAGO PFC200 iocheckd service "I/O-Check" cache Multiple Memory Corruption Vulnerabilities | 9 Mar 202000:00 | – | talos |
Source | Link |
---|---|
cve | www.cve.mitre.org/cgi-bin/cvename.cgi |
talosintelligence | www.talosintelligence.com/vulnerability_reports/TALOS-2019-0966 |
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##
include('compat.inc');
if (description)
{
script_id(500916);
script_version("1.2");
script_set_attribute(attribute:"plugin_modification_date", value:"2023/08/24");
script_cve_id("CVE-2019-5185");
script_name(english:"Wago PFC200 iocheckd service 'I/O-Check' cache Memory Corruption (CVE-2019-5185)");
script_set_attribute(attribute:"synopsis", value:
"The remote OT asset is affected by a vulnerability.");
script_set_attribute(attribute:"description", value:
"An exploitable stack buffer overflow vulnerability vulnerability
exists in the iocheckd service I/O-Check functionality of WAGO PFC
200. An attacker can send a specially crafted packet to trigger the
parsing of this cache file. At 0x1ea28 the extracted state value from
the xml file is used as an argument to /etc/config-
tools/config_interfaces interface=X1 state=<contents of state node>
using sprintf(). The destination buffer sp+0x40 is overflowed with the
call to sprintf() for any state values that are greater than
512-len(/etc/config-tools/config_interfaces interface=X1 state=) in
length. Later, at 0x1ea08 strcpy() is used to copy the contents of the
stack buffer that was overflowed sp+0x40 into sp+0x440. The buffer
sp+0x440 is immediately adjacent to sp+0x40 on the stack. Therefore,
there is no NULL termination on the buffer sp+0x40 since it overflowed
into sp+0x440. The strcpy() will result in invalid memory access. An
state value of length 0x3c9 will cause the service to crash.
This plugin only works with Tenable.ot.
Please visit https://www.tenable.com/products/tenable-ot for more information.");
script_set_attribute(attribute:"see_also", value:"https://talosintelligence.com/vulnerability_reports/TALOS-2019-0966");
script_set_attribute(attribute:"solution", value:
"Refer to the vendor advisory.");
script_set_cvss_base_vector("CVSS2#AV:L/AC:M/Au:N/C:P/I:P/A:P");
script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H");
script_set_cvss3_temporal_vector("CVSS:3.0/E:P/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-5185");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_cwe_id(120);
script_set_attribute(attribute:"vuln_publication_date", value:"2020/03/23");
script_set_attribute(attribute:"patch_publication_date", value:"2020/03/23");
script_set_attribute(attribute:"plugin_publication_date", value:"2023/03/29");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/o:wago:pfc200_firmware:03.02.02%2814%29");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Tenable.ot");
script_copyright(english:"This script is Copyright (C) 2023 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("tenable_ot_api_integration.nasl");
script_require_keys("Tenable.ot/Wago");
exit(0);
}
include('tenable_ot_cve_funcs.inc');
get_kb_item_or_exit('Tenable.ot/Wago');
var asset = tenable_ot::assets::get(vendor:'Wago');
var vuln_cpes = {
"cpe:/o:wago:pfc200_firmware:03.02.02%2814%29" :
{"versionEndIncluding" : "03.02.02%2814%29", "versionStartIncluding" : "03.02.02%2814%29", "family" : "ControllerPFC200"}
};
tenable_ot::cve::compare_and_report(asset:asset, cpes:vuln_cpes, severity:SECURITY_WARNING);
Transform Your Security Services
Elevate your offerings with Vulners' advanced Vulnerability Intelligence. Contact us for a demo and discover the difference comprehensive, actionable intelligence can make in your security strategy.
Book a live demo