Lucene search

K
nessusThis script is Copyright (C) 2022-2024 and is owned by Tenable, Inc. or an Affiliate thereof.TENABLE_OT_SIEMENS_CVE-2018-4843.NASL
HistoryFeb 07, 2022 - 12:00 a.m.

Siemens SIMATIC, SINUMERIK, and PROFINET IO Improper Input Validation (CVE-2018-4843)

2022-02-0700:00:00
This script is Copyright (C) 2022-2024 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
14
siemens
simatic
sinumerik
profinet
improper input validation
cve-2018-4843
denial-of-service
ethernet segment
security vulnerability
osi layer 2
mitigations
tenable.ot

CVSS2

6.1

Attack Vector

ADJACENT_NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

COMPLETE

AV:A/AC:L/Au:N/C:N/I:N/A:C

CVSS3

6.5

Attack Vector

ADJACENT

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

AI Score

6.3

Confidence

High

EPSS

0.001

Percentile

25.6%

A vulnerability has been identified in SIMATIC CP 343-1 (incl. SIPLUS variants) (All versions), SIMATIC CP 343-1 Advanced (incl. SIPLUS variants) (All versions), SIMATIC CP 443-1 (All versions < V3.3), SIMATIC CP 443-1 (All versions < V3.3), SIMATIC CP 443-1 Advanced (All versions < V3.3), SIMATIC ET 200pro IM154-8 PN/DP CPU (All versions < V3.2.16), SIMATIC ET 200pro IM154-8F PN/DP CPU (All versions < V3.2.16), SIMATIC ET 200pro IM154-8FX PN/DP CPU (All versions < V3.2.16), SIMATIC ET 200S IM151-8 PN/DP CPU (All versions < V3.2.16), SIMATIC ET 200S IM151-8F PN/DP CPU (All versions < V3.2.16), SIMATIC S7-1500 CPU family (incl. related ET200 CPUs and SIPLUS variants) (All versions < V1.7.0), SIMATIC S7-1500 Software Controller (All versions < V1.7.0), SIMATIC S7-300 CPU 314C-2 PN/DP (All versions < V3.3.16), SIMATIC S7-300 CPU 315-2 PN/DP (All versions < V3.2.16), SIMATIC S7-300 CPU 315F-2 PN/DP (All versions < V3.2.16), SIMATIC S7-300 CPU 315T-3 PN/DP (All versions < V3.2.16), SIMATIC S7-300 CPU 317-2 PN/DP (All versions < V3.2.16), SIMATIC S7-300 CPU 317F-2 PN/DP (All versions < V3.2.16), SIMATIC S7-300 CPU 317T-3 PN/DP (All versions < V3.2.16), SIMATIC S7-300 CPU 317TF-3 PN/DP (All versions < V3.2.16), SIMATIC S7-300 CPU 319-3 PN/DP (All versions < V3.2.16), SIMATIC S7-300 CPU 319F-3 PN/DP (All versions < V3.2.16), SIMATIC S7-400 H V6 CPU family (incl. SIPLUS variants) (All versions < V6.0.9), SIMATIC S7-400 PN/DP V6 CPU family (incl. SIPLUS variants) (All versions < V6.0.7), SIMATIC S7-400 PN/DP V7 CPU family (incl. SIPLUS variants) (All versions), SIMATIC S7-410 CPU family (incl. SIPLUS variants) (All versions < V8.1), SIMATIC WinAC RTX 2010 (All versions < V2010 SP3), SIMATIC WinAC RTX F 2010 (All versions < V2010 SP3), SINUMERIK 828D (All versions < V4.7 SP6 HF1), SIPLUS ET 200S IM151-8 PN/DP CPU (All versions < V3.2.16), SIPLUS ET 200S IM151-8F PN/DP CPU (All versions < V3.2.16), SIPLUS NET CP 443-1 (All versions < V3.3), SIPLUS NET CP 443-1 Advanced (All versions < V3.3), SIPLUS S7-300 CPU 314C-2 PN/DP (All versions < V3.3.16), SIPLUS S7-300 CPU 315-2 PN/DP (All versions < V3.2.16), SIPLUS S7-300 CPU 315F-2 PN/DP (All versions < V3.2.16), SIPLUS S7-300 CPU 317-2 PN/DP (All versions < V3.2.16), SIPLUS S7-300 CPU 317F-2 PN/DP (All versions < V3.2.16), Softnet PROFINET IO for PC- based Windows systems (All versions). Responding to a PROFINET DCP request with a specially crafted PROFINET DCP packet could cause a Denial-of-Service condition of the requesting system. The security vulnerability could be exploited by an attacker located on the same Ethernet segment (OSI Layer 2) as the targeted device. Successful exploitation requires no user interaction or privileges and impacts the availability of core functionality of the affected device. A manual restart is required to recover the system. At the time of advisory publication no public exploitation of this security vulnerability is known. Siemens provides mitigations to resolve the security issue. PROFIBUS interfaces are not affected.

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

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

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(500232);
  script_version("1.10");
  script_set_attribute(attribute:"plugin_modification_date", value:"2024/09/04");

  script_cve_id("CVE-2018-4843");
  script_xref(name:"ICSA", value:"18-079-02");

  script_name(english:"Siemens SIMATIC, SINUMERIK, and PROFINET IO Improper Input Validation (CVE-2018-4843)");

  script_set_attribute(attribute:"synopsis", value:
"The remote OT asset is affected by a vulnerability.");
  script_set_attribute(attribute:"description", value:
"A vulnerability has been identified in SIMATIC CP 343-1 (incl. SIPLUS
variants) (All versions), SIMATIC CP 343-1 Advanced (incl. SIPLUS
variants) (All versions), SIMATIC CP 443-1 (All versions < V3.3),
SIMATIC CP 443-1 (All versions < V3.3), SIMATIC CP 443-1 Advanced (All
versions < V3.3), SIMATIC ET 200pro IM154-8 PN/DP CPU (All versions <
V3.2.16), SIMATIC ET 200pro IM154-8F PN/DP CPU (All versions <
V3.2.16), SIMATIC ET 200pro IM154-8FX PN/DP CPU (All versions <
V3.2.16), SIMATIC ET 200S IM151-8 PN/DP CPU (All versions < V3.2.16),
SIMATIC ET 200S IM151-8F PN/DP CPU (All versions < V3.2.16), SIMATIC
S7-1500 CPU family (incl. related ET200 CPUs and SIPLUS variants) (All
versions < V1.7.0), SIMATIC S7-1500 Software Controller (All versions
< V1.7.0), SIMATIC S7-300 CPU 314C-2 PN/DP (All versions < V3.3.16),
SIMATIC S7-300 CPU 315-2 PN/DP (All versions < V3.2.16), SIMATIC
S7-300 CPU 315F-2 PN/DP (All versions < V3.2.16), SIMATIC S7-300 CPU
315T-3 PN/DP (All versions < V3.2.16), SIMATIC S7-300 CPU 317-2 PN/DP
(All versions < V3.2.16), SIMATIC S7-300 CPU 317F-2 PN/DP (All
versions < V3.2.16), SIMATIC S7-300 CPU 317T-3 PN/DP (All versions <
V3.2.16), SIMATIC S7-300 CPU 317TF-3 PN/DP (All versions < V3.2.16),
SIMATIC S7-300 CPU 319-3 PN/DP (All versions < V3.2.16), SIMATIC
S7-300 CPU 319F-3 PN/DP (All versions < V3.2.16), SIMATIC S7-400 H V6
CPU family (incl. SIPLUS variants) (All versions < V6.0.9), SIMATIC
S7-400 PN/DP V6 CPU family (incl. SIPLUS variants) (All versions <
V6.0.7), SIMATIC S7-400 PN/DP V7 CPU family (incl. SIPLUS variants)
(All versions), SIMATIC S7-410 CPU family (incl. SIPLUS variants) (All
versions < V8.1), SIMATIC WinAC RTX 2010 (All versions < V2010 SP3),
SIMATIC WinAC RTX F 2010 (All versions < V2010 SP3), SINUMERIK 828D
(All versions < V4.7 SP6 HF1), SIPLUS ET 200S IM151-8 PN/DP CPU (All
versions < V3.2.16), SIPLUS ET 200S IM151-8F PN/DP CPU (All versions <
V3.2.16), SIPLUS NET CP 443-1 (All versions < V3.3), SIPLUS NET CP
443-1 Advanced (All versions < V3.3), SIPLUS S7-300 CPU 314C-2 PN/DP
(All versions < V3.3.16), SIPLUS S7-300 CPU 315-2 PN/DP (All versions
< V3.2.16), SIPLUS S7-300 CPU 315F-2 PN/DP (All versions < V3.2.16),
SIPLUS S7-300 CPU 317-2 PN/DP (All versions < V3.2.16), SIPLUS S7-300
CPU 317F-2 PN/DP (All versions < V3.2.16), Softnet PROFINET IO for PC-
based Windows systems (All versions). Responding to a PROFINET DCP
request with a specially crafted PROFINET DCP packet could cause a
Denial-of-Service condition of the requesting system. The security
vulnerability could be exploited by an attacker located on the same
Ethernet segment (OSI Layer 2) as the targeted device. Successful
exploitation requires no user interaction or privileges and impacts
the availability of core functionality of the affected device. A
manual restart is required to recover the system. At the time of
advisory publication no public exploitation of this security
vulnerability is known. Siemens provides mitigations to resolve the
security issue. PROFIBUS interfaces are not affected.

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://cert-portal.siemens.com/productcert/pdf/ssa-592007.pdf");
  script_set_attribute(attribute:"see_also", value:"https://www.cisa.gov/news-events/ics-advisories/icsa-18-079-02");
  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.

Siemens has provided the following updates for mitigations:

- SIMATIC S7-1500 Software Controller incl. F: Update to v1.8.5 or newer, which can be found here:

https://support.industry.siemens.com/cs/ww/en/view/109478528

- SIMATIC S7-1500 incl. F: Update to v1.8.5 or newer, which can be found here:

https://support.industry.siemens.com/cs/ww/en/view/109478459

- SIMATIC S7-400 PN/DP v6 incl. F: Update to v6.0.7, which can be found here:

https://support.industry.siemens.com/cs/ww/en/view/109474874

- SIMATIC S7-410: Update to v8.1, which can be found here:

https://support.industry.siemens.com/cs/ww/en/view/109476571

- SINUMERIK 828D: Update to v4.7 SP6 HF1 SINUMERIK software can be obtained from the local Siemens account manager.
- SIMATIC S7-300 incl. F and T: Update to v3.X.16, which can be found here:

https://support.industry.siemens.com/cs/ww/en/ps/13752/dl

- SIMATIC S7-400 H V6: Update to v6.0.9, which can be found here:

https://support.industry.siemens.com/cs/ww/en/view/109474550

- SIMATIC WinAC RTX (F) 2010: Update to SP3 and apply BIOS and Microsoft Windows updates. SP3 software can be found
here:

https://support.industry.siemens.com/cs/ww/en/view/109765109

For all other affected products, Siemens has identified the following specific workarounds and mitigations that users
can apply to reduce the risk:

- Apply cell protection concept.
- Use VPN for protecting network communication between cells.
- Apply defense-in-depth.

As a general security measure, Siemens strongly recommends protecting network access to devices with appropriate
mechanisms. To run the devices in a protected IT environment, Siemens particularly recommends configuring the
environment according to Siemens’ operational guidelines for industrial security, and following the recommendations in
the product manuals. Additional information on industrial security by Siemens can be found at:

https://www.siemens.com/industrialsecurity

For more information on this vulnerability and associated software updates, please see Siemens security notification
SSA-592007 on their website:

https://www.siemens.com/cert/advisories");
  script_set_cvss_base_vector("CVSS2#AV:A/AC:L/Au:N/C:N/I:N/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-4843");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_cwe_id(20);

  script_set_attribute(attribute:"vuln_publication_date", value:"2018/03/20");
  script_set_attribute(attribute:"patch_publication_date", value:"2018/03/20");
  script_set_attribute(attribute:"plugin_publication_date", value:"2022/02/07");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:siemens:simatic_cp_343-1_advanced_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:siemens:simatic_cp_343-1_standard_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:siemens:simatic_cp_443-1_advanced_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:siemens:simatic_cp_443-1_standard_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:siemens:simatic_s7-1500_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:siemens:simatic_s7-300_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:siemens:simatic_s7-400_h_v6_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:siemens:simatic_s7-400_pn%2fdp_v6_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:siemens:simatic_s7-400_pn%2fdp_v7_firmware:-");
  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) 2022-2024 and is owned by Tenable, Inc. or an Affiliate thereof.");

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

  exit(0);
}


include('tenable_ot_cve_funcs.inc');

get_kb_item_or_exit('Tenable.ot/Siemens');

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

var vuln_cpes = {
    "cpe:/o:siemens:simatic_cp_343-1_advanced_firmware:-" :
        {"family" : "S7300"},
    "cpe:/o:siemens:simatic_cp_343-1_standard_firmware:-" :
        {"family" : "S7300"},
    "cpe:/o:siemens:simatic_cp_443-1_advanced_firmware:-" :
        {"family" : "S7400", "versionEndExcluding" : "3.3"},
    "cpe:/o:siemens:simatic_cp_443-1_standard_firmware:-" :
        {"family" : "S7400", "versionEndExcluding" : "3.3"},
    "cpe:/o:siemens:simatic_s7-1500_firmware" :
        {"versionEndExcluding" : "1.7.0", "family" : "S71500"},
    "cpe:/o:siemens:simatic_s7-300_firmware:-" :
        {"versionEndExcluding" : "3.2.16", "family" : "S7300"},
    "cpe:/o:siemens:simatic_s7-400_h_v6_firmware:-" :
        {"versionStartIncluding" : "6.0", "versionEndExcluding" : "6.0.9", "family" : "S7400"},
    "cpe:/o:siemens:simatic_s7-400_pn%2fdp_v6_firmware" :
        {"versionStartIncluding" : "6.0", "versionEndExcluding" : "6.0.7", "family" : "S7400"},
    "cpe:/o:siemens:simatic_s7-400_pn%2fdp_v7_firmware:-" :
        {"versionStartIncluding" : "7.0", "versionEndExcluding" : "7.0.3", "family" : "S7400"}
};

tenable_ot::cve::compare_and_report(asset:asset, cpes:vuln_cpes, severity:SECURITY_WARNING);

CVSS2

6.1

Attack Vector

ADJACENT_NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

COMPLETE

AV:A/AC:L/Au:N/C:N/I:N/A:C

CVSS3

6.5

Attack Vector

ADJACENT

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

AI Score

6.3

Confidence

High

EPSS

0.001

Percentile

25.6%

Related for TENABLE_OT_SIEMENS_CVE-2018-4843.NASL