Lucene search

K
nessusThis script is Copyright (C) 2024 and is owned by Tenable, Inc. or an Affiliate thereof.TENABLE_OT_HIRSCHMANN_CVE-2019-12260.NASL
HistoryJun 10, 2024 - 12:00 a.m.

Hirschmann HiOS Switches Classic Buffer Overflow (CVE-2019-12260)

2024-06-1000:00:00
This script is Copyright (C) 2024 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
1
hirschmann hios switches
buffer overflow
cve-2019-12260
tcp receive-window
remote code execution
vulnerability

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

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

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

9.9 High

AI Score

Confidence

High

0.289 Low

EPSS

Percentile

96.9%

This vulnerability could lead to a buffer overflow of up to a full TCP receive-window (by default, 10k-64k depending on version). The buffer overflow happens in the task calling recv()/recvfrom()/recvmsg().

Applications that pass a buffer equal to or larger than a full TCP-window are not susceptible to this attack. Applications passing a stack-allocated variable as a buffer are the easiest to exploit.

The most likely outcome is a crash of the application reading from the affected socket, which could result in remote code execution.

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(502260);
  script_version("1.4");
  script_set_attribute(attribute:"plugin_modification_date", value:"2024/06/24");

  script_cve_id("CVE-2019-12260");
  script_xref(name:"CEA-ID", value:"CEA-2019-0679");

  script_name(english:"Hirschmann HiOS Switches Classic Buffer Overflow (CVE-2019-12260)");

  script_set_attribute(attribute:"synopsis", value:
"The remote OT asset is affected by a vulnerability.");
  script_set_attribute(attribute:"description", value:
"This vulnerability could lead to a buffer overflow of up to a full TCP receive-window 
(by default, 10k-64k depending on version). The buffer overflow happens in the task 
calling recv()/recvfrom()/recvmsg(). 

Applications that pass a buffer equal to or larger than a full TCP-window are not 
susceptible to this attack. Applications passing a stack-allocated variable as a 
buffer are the easiest to exploit. 

The most likely outcome is a crash of the application reading from the affected socket, 
which could result in remote code execution.

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-632562.pdf");
  script_set_attribute(attribute:"see_also", value:"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2019-0009");
  script_set_attribute(attribute:"see_also", value:"https://support2.windriver.com/index.php?page=security-notices");
  # https://support2.windriver.com/index.php?page=cve&on=view&id=CVE-2019-12260
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?acd12d21");
  script_set_attribute(attribute:"see_also", value:"https://security.netapp.com/advisory/ntap-20190802-0001/");
  # https://www.windriver.com/security/announcements/tcp-ip-network-stack-ipnet-urgent11/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?c7d3d59d");
  script_set_attribute(attribute:"see_also", value:"https://support.f5.com/csp/article/K41190253");
  script_set_attribute(attribute:"see_also", value:"https://cert-portal.siemens.com/productcert/pdf/ssa-189842.pdf");
  script_set_attribute(attribute:"see_also", value:"https://cert-portal.siemens.com/productcert/pdf/ssa-352504.pdf");
  script_set_attribute(attribute:"see_also", value:"https://www.oracle.com/security-alerts/cpuoct2020.html");
  script_set_attribute(attribute:"see_also", value:"https://www.oracle.com//security-alerts/cpujul2021.html");
  script_set_attribute(attribute:"see_also", value:"https://www.cisa.gov/news-events/ics-advisories/icsa-19-211-0");
  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.

Wind River has produced controls and patches to mitigate the reported vulnerabilities. To obtain patches, email
[email protected] and indicate the VxWorks major version for which you need source patches.

For more detailed information on the vulnerabilities and the mitigating controls, please see the Wind River advisory at:
https://www.windriver.com/security/announcements/tcp-ip-network-stack-ipnet-urgent11/

Additional vendors affected by the reported vulnerabilities have also released security advisories related to their
affected products. Those advisories are as follows:

Rockwell Automation (login required) - https://rockwellautomation.custhelp.com/app/answers/detail/a_id/1088561

Xerox - https://security.business.xerox.com/en-us/news/wind-river-vxworks-ipnet-tcp-ip-stack-vulnerabilities/

DrÀger Ҁ“ https://static.draeger.com/security

Schneider Electric Ҁ“ https://www.se.com/ww/en/download/document/SESB-2019-214-01/");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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-2019-12260");

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

  script_set_attribute(attribute:"vuln_publication_date", value:"2019/08/09");
  script_set_attribute(attribute:"patch_publication_date", value:"2019/08/09");
  script_set_attribute(attribute:"plugin_publication_date", value:"2024/06/10");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:belden:hirschmann_rail_switch_power_lite");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:belden:hirschmann_rail_switch_power_smart");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:belden:hirschmann_rsp20");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:belden:hirschmann_rsp25");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:belden:hirschmann_rsp30");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:belden:hirschmann_rsp35");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:belden:hirschmann_rspe30");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:belden:hirschmann_rspe32");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:belden:hirschmann_rspe35");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:belden:hirschmann_rspe37");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:belden:hirschmann_dragon_mach4000");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:belden:hirschmann_dragon_mach4500");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:belden:hirschmann_eagle20");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:belden:hirschmann_eagle30");
  script_set_attribute(attribute:"cpe", value:"cpe:/h:belden:hirschmann_eagle_one");
  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) 2024 and is owned by Tenable, Inc. or an Affiliate thereof.");

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

  exit(0);
}


include('tenable_ot_cve_funcs.inc');

get_kb_item_or_exit('Tenable.ot/Hirschmann');

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

var vuln_cpes = {
    "cpe:/h:belden:hirschmann_rail_switch_power_lite" :
        {"versionEndIncluding" : "07.0.07", "family" : "Hirschmann"},
    "cpe:/h:belden:hirschmann_rail_switch_power_smart" :
        {"versionEndIncluding" : "07.0.07", "family" : "Hirschmann"},
    "cpe:/h:belden:hirschmann_rsp20" :
        {"versionEndIncluding" : "07.0.07", "family" : "Hirschmann"},
    "cpe:/h:belden:hirschmann_rsp25" :
        {"versionEndIncluding" : "07.0.07", "family" : "Hirschmann"},
    "cpe:/h:belden:hirschmann_rsp30" :
        {"versionEndIncluding" : "07.0.07", "family" : "Hirschmann"},
    "cpe:/h:belden:hirschmann_rsp35" :
        {"versionEndIncluding" : "07.0.07", "family" : "Hirschmann"},
    "cpe:/h:belden:hirschmann_rspe30" :
        {"versionEndIncluding" : "07.0.07", "family" : "Hirschmann"},
    "cpe:/h:belden:hirschmann_rspe32" :
        {"versionEndIncluding" : "07.0.07", "family" : "Hirschmann"},
    "cpe:/h:belden:hirschmann_rspe35" :
        {"versionEndIncluding" : "07.0.07", "family" : "Hirschmann"},
    "cpe:/h:belden:hirschmann_rspe37" :
        {"versionEndIncluding" : "07.0.07", "family" : "Hirschmann"},
    "cpe:/h:belden:hirschmann_dragon_mach4000" :
        {"versionEndIncluding" : "07.2.04", "family" : "Hirschmann"},
    "cpe:/h:belden:hirschmann_dragon_mach4500" :
        {"versionEndIncluding" : "07.2.04", "family" : "Hirschmann"},
    "cpe:/h:belden:hirschmann_eagle20" :
        {"versionEndIncluding" : "05.3.06", "family" : "Hirschmann"},
    "cpe:/h:belden:hirschmann_eagle30" :
        {"versionEndIncluding" : "05.3.06", "family" : "Hirschmann"},
    "cpe:/h:belden:hirschmann_eagle_one" :
        {"versionEndIncluding" : "05.3.06", "family" : "Hirschmann"}
};

tenable_ot::cve::compare_and_report(asset:asset, cpes:vuln_cpes, severity:SECURITY_HOLE);
VendorProductVersionCPE
beldenhirschmann_rsp20cpe:/h:belden:hirschmann_rsp20
beldenhirschmann_rail_switch_power_litecpe:/h:belden:hirschmann_rail_switch_power_lite
beldenhirschmann_rspe37cpe:/h:belden:hirschmann_rspe37
beldenhirschmann_rsp25cpe:/h:belden:hirschmann_rsp25
beldenhirschmann_rsp35cpe:/h:belden:hirschmann_rsp35
beldenhirschmann_rspe30cpe:/h:belden:hirschmann_rspe30
beldenhirschmann_rail_switch_power_smartcpe:/h:belden:hirschmann_rail_switch_power_smart
beldenhirschmann_rspe35cpe:/h:belden:hirschmann_rspe35
beldenhirschmann_dragon_mach4500cpe:/h:belden:hirschmann_dragon_mach4500
beldenhirschmann_dragon_mach4000cpe:/h:belden:hirschmann_dragon_mach4000
Rows per page:
1-10 of 151

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

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

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

9.9 High

AI Score

Confidence

High

0.289 Low

EPSS

Percentile

96.9%