Lucene search

K
nessusThis script is Copyright (C) 2023-2024 and is owned by Tenable, Inc. or an Affiliate thereof.TENABLE_OT_ROCKWELL_CVE-2018-0158.NASL
HistoryNov 15, 2023 - 12:00 a.m.

Rockwell Automation Stratix and ArmorStratix Switches Improper Input Validation (CVE-2018-0158)

2023-11-1500:00:00
This script is Copyright (C) 2023-2024 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
4
rockwell automation
armorstratix switches
denial of service
vulnerability
cisco ios
cisco ios xe
memory leak
internet key exchange
tenable.ot

8.1 High

AI Score

Confidence

High

A vulnerability in the Internet Key Exchange Version 2 (IKEv2) module of Cisco IOS Software and Cisco IOS XE Software could allow an unauthenticated, remote attacker to cause a memory leak or a reload of an affected device that leads to a denial of service (DoS) condition.
The vulnerability is due to incorrect processing of certain IKEv2 packets. An attacker could exploit this vulnerability by sending crafted IKEv2 packets to an affected device to be processed. A successful exploit could cause an affected device to continuously consume memory and eventually reload, resulting in a DoS condition.

This plugin only works with Tenable.ot.
Please visit https://www.tenable.com/products/tenable-ot for more information.

#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##

include('compat.inc');

if (description)
{
  script_id(501767);
  script_version("1.4");
  script_set_attribute(attribute:"plugin_modification_date", value:"2024/03/04");

  script_cve_id("CVE-2018-0158");
  script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2022/03/17");

  script_name(english:"Rockwell Automation Stratix and ArmorStratix Switches Improper Input Validation (CVE-2018-0158)");

  script_set_attribute(attribute:"synopsis", value:
"The remote OT asset is affected by a vulnerability.");
  script_set_attribute(attribute:"description", value:
"A vulnerability in the Internet Key Exchange Version 2 (IKEv2) 
module of Cisco IOS Software and Cisco IOS XE Software could 
allow an unauthenticated, remote attacker to cause a memory leak 
or a reload of an affected device that leads to a denial of service (DoS) condition.
The vulnerability is due to incorrect processing of certain IKEv2 packets. 
An attacker could exploit this vulnerability by sending crafted IKEv2 packets 
to an affected device to be processed. A successful exploit could cause 
an affected device to continuously consume memory and eventually reload, 
resulting in a DoS condition.

This plugin only works with Tenable.ot.
Please visit https://www.tenable.com/products/tenable-ot for more information.");
  # https://www.cisa.gov/news-events/ics-advisories/icsa-18-107-04
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?ce3d1989");
  # https://www.rockwellautomation.com/en-us/support/advisory.PN1019.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?0baec066");
  # https://www.rockwellautomation.com/en-us/support/advisory.PN1020.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?85ccd272");
  script_set_attribute(attribute:"see_also", value:"https://www.cisa.gov/news-events/ics-advisories/icsa-18-107-04");
  script_set_attribute(attribute:"solution", value:
"The following text was originally created by the Cybersecurity and Infrastructure Security Agency (CISA). The original
can be found at CISA.gov.

Rockwell Automation recommends users upgrade to FRN 15.2(6)E1 or later. Updated software can be downloaded at:

http://compatibility.rockwellautomation.com/Pages/MultiProductDownload.aspx?famID=15

Rockwell Automation has provided knowledge base article number 1073268 on their website at the following location to
address these vulnerabilities:

https://rockwellautomation.custhelp.com/app/answers/detail/a_id/1073268/ (login required)

Rockwell Automation also recommends implementing the following mitigations in addition to upgrading the software
version:

Cisco has released new Snort Rules at https://www.cisco.com/web/software/286271056/117258/sf-rules-2018-03-29-new.html
to help address the following vulnerabilities:

- CVE-2018-0171 - Snort Rule 46096 and 46097
- CVE-2018-0156 - Snort Rule 41725
- CVE-2018-0174 - Snort Rule 46120
- CVE-2018-0172 - Snort Rule 46104
- CVE-2018-0173 - Snort Rule 46119
- CVE-2018-0158 - Snort Rule 46110

Cisco adds the following notes for the Smart Install vulnerabilities (CVE-2018-0171 and CVE-2018-0156):

- Smart Install is turned off by express setup; however, upgraded switches but not re-setup may have it enabled.
- Disable the Smart Install feature with the no vstack configuration command if it is not needed or once setup is
complete.
- Users who do use the feature—and need to leave it enabled—can use ACLs to block incoming traffic on TCP port 4786.

CVE-2018-0167 and CVE-2018-0175 have no specific mitigations in place. See the following Cisco Vulnerability advisory
for more details:

https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20180328-lldp

Rockwell Automation also recommends users implement the following general security guidelines:

- Help minimize network exposure for all control system devices and/or systems, and confirm that they are not accessible
from the Internet.
- Locate control system networks and devices behind firewalls, and isolate them from the business network.
- When remote access is required, use secure methods, such as Virtual Private Networks (VPNs), recognizing that VPNs may
have vulnerabilities and should be updated to the most current version available. Also recognize that VPN is only as
secure as the connected devices.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-0158");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_cwe_id(755);

  script_set_attribute(attribute:"vuln_publication_date", value:"2018/03/28");
  script_set_attribute(attribute:"patch_publication_date", value:"2018/03/28");
  script_set_attribute(attribute:"plugin_publication_date", value:"2023/11/15");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:rockwellautomation:allen-bradley_stratix_5400_industrial_managed_ethernet_switch");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:rockwellautomation:allen-bradley_stratix_5410_industrial_managed_ethernet_switch");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:rockwellautomation:allen-bradley_stratix_5700_industrial_managed_ethernet_switch");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:rockwellautomation:allen-bradley_stratix_5900_industrial_managed_ethernet_switch");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:rockwellautomation:allen-bradley_stratix_8000_industrial_managed_ethernet_switch");
  script_set_attribute(attribute:"generated_plugin", value:"former");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Tenable.ot");

  script_copyright(english:"This script is Copyright (C) 2023-2024 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("tenable_ot_api_integration.nasl");
  script_require_keys("Tenable.ot/Rockwell");

  exit(0);
}


include('tenable_ot_cve_funcs.inc');

get_kb_item_or_exit('Tenable.ot/Rockwell');

var asset = tenable_ot::assets::get(vendor:'Rockwell');

var vuln_cpes = {
    "cpe:/h:rockwellautomation:allen-bradley_stratix_5400_industrial_managed_ethernet_switch" :
        {"versionEndIncluding" : "15.2(6)E0a", "family" : "Stratix"},
    "cpe:/h:rockwellautomation:allen-bradley_stratix_5410_industrial_managed_ethernet_switch" :
        {"versionEndIncluding" : "15.2(6)E0a", "family" : "Stratix"},
    "cpe:/h:rockwellautomation:allen-bradley_stratix_5700_industrial_managed_ethernet_switch" :
        {"versionEndIncluding" : "15.2(6)E0a", "family" : "Stratix"},
    "cpe:/h:rockwellautomation:allen-bradley_stratix_5900_industrial_managed_ethernet_switch" :
        {"versionEndIncluding" : "15.6.3M1", "family" : "Stratix"},
    "cpe:/h:rockwellautomation:allen-bradley_stratix_8000_industrial_managed_ethernet_switch" :
        {"versionEndIncluding" : "15.2(6)E0a", "family" : "Stratix"}
};

tenable_ot::cve::compare_and_report(asset:asset, cpes:vuln_cpes, severity:SECURITY_HOLE);
VendorProductVersionCPE
rockwellautomationallen-bradley_stratix_5400_industrial_managed_ethernet_switchcpe:/h:rockwellautomation:allen-bradley_stratix_5400_industrial_managed_ethernet_switch
rockwellautomationallen-bradley_stratix_5410_industrial_managed_ethernet_switchcpe:/h:rockwellautomation:allen-bradley_stratix_5410_industrial_managed_ethernet_switch
rockwellautomationallen-bradley_stratix_5700_industrial_managed_ethernet_switchcpe:/h:rockwellautomation:allen-bradley_stratix_5700_industrial_managed_ethernet_switch
rockwellautomationallen-bradley_stratix_5900_industrial_managed_ethernet_switchcpe:/h:rockwellautomation:allen-bradley_stratix_5900_industrial_managed_ethernet_switch
rockwellautomationallen-bradley_stratix_8000_industrial_managed_ethernet_switchcpe:/h:rockwellautomation:allen-bradley_stratix_8000_industrial_managed_ethernet_switch