Lucene search

K
nessusThis script is Copyright (C) 2023-2024 and is owned by Tenable, Inc. or an Affiliate thereof.TENABLE_OT_MITSUBISHI_CVE-2022-40267.NASL
HistoryFeb 21, 2023 - 12:00 a.m.

Mitsubishi Electric MELSEC iQ-F, iQ-R Series Predictable Seed in Pseudo-Random Number Generator (CVE-2022-40267)

2023-02-2100:00:00
This script is Copyright (C) 2023-2024 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
7
mitsubishi electric
predictable seed
pseudo-random number generator
cve-2022-40267
fx5u
fx5uc
fx5uj
fx5s
r00
r01
r02
r04
r08
r16
r32
r120
web server
tenable.ot

9.5 High

AI Score

Confidence

High

0.003 Low

EPSS

Percentile

70.1%

Predictable Seed in Pseudo-Random Number Generator (PRNG) vulnerability in Mitsubishi Electric Corporation MELSEC iQ-F Series FX5U-xMy/z (x=32,64,80, y=T,R, z=ES,DS,ESS,DSS) with serial number 17X**** or later, and versions 1.280 and prior, Mitsubishi Electric Corporation MELSEC iQ-F Series FX5U-xMy/z (x=32,64,80, y=T,R, z=ES,DS,ESS,DSS) with serial number 179**** and prior, and versions 1.074 and prior, Mitsubishi Electric Corporation MELSEC iQ-F Series FX5UC-xMy/z (x=32,64,96, y=T, z=D,DSS)) with serial number 17X**** or later, and versions 1.280 and prior, Mitsubishi Electric Corporation MELSEC iQ-F Series FX5UC-xMy/z (x=32,64,96, y=T, z=D,DSS)) with serial number 179**** and prior, and versions 1.074 and prior, Mitsubishi Electric Corporation MELSEC iQ-F Series FX5UC-32MT/DS-TS versions 1.280 and prior, Mitsubishi Electric Corporation MELSEC iQ-F Series FX5UC-32MT/DSS-TS versions 1.280 and prior, Mitsubishi Electric Corporation MELSEC iQ-F Series FX5UJ-xMy/z (x=24,40,60, y=T,R, z=ES,ESS) versions 1.042 and prior, Mitsubishi Electric Corporation MELSEC iQ-F Series FX5UJ-xMy/ES-A (x=24,40,60, y=T,R) versions 1.043 and prior, Mitsubishi Electric Corporation MELSEC iQ-F Series FX5S-xMy/z (x=30,40,60,80, y=T,R, z=ES,ESS) versions 1.003 and prior, Mitsubishi Electric Corporation MELSEC iQ-F Series FX5UC-32MR/DS-TS versions 1.280 and prior, Mitsubishi Electric Corporation MELSEC iQ-R Series R00/01/02CPU all versions, Mitsubishi Electric Corporation MELSEC iQ-R Series R04/08/16/32/120(EN)CPU all versions allows a remote unauthenticated attacker to access the Web server function by guessing the random numbers used for authentication from several used random numbers.

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(500837);
  script_version("1.5");
  script_set_attribute(attribute:"plugin_modification_date", value:"2024/04/11");

  script_cve_id("CVE-2022-40267");

  script_name(english:"Mitsubishi Electric MELSEC iQ-F, iQ-R Series Predictable Seed in Pseudo-Random Number Generator (CVE-2022-40267)");

  script_set_attribute(attribute:"synopsis", value:
"The remote OT asset is affected by a vulnerability.");
  script_set_attribute(attribute:"description", value:
"Predictable Seed in Pseudo-Random Number Generator (PRNG)
vulnerability in Mitsubishi Electric Corporation MELSEC iQ-F Series
FX5U-xMy/z (x=32,64,80, y=T,R, z=ES,DS,ESS,DSS) with serial number
17X**** or later, and versions 1.280 and prior, Mitsubishi Electric
Corporation MELSEC iQ-F Series FX5U-xMy/z (x=32,64,80, y=T,R,
z=ES,DS,ESS,DSS) with serial number 179**** and prior, and versions
1.074 and prior, Mitsubishi Electric Corporation MELSEC iQ-F Series
FX5UC-xMy/z (x=32,64,96, y=T, z=D,DSS)) with serial number 17X**** or
later, and versions 1.280 and prior, Mitsubishi Electric Corporation
MELSEC iQ-F Series FX5UC-xMy/z (x=32,64,96, y=T, z=D,DSS)) with serial
number 179**** and prior, and versions 1.074 and prior, Mitsubishi
Electric Corporation MELSEC iQ-F Series FX5UC-32MT/DS-TS versions
1.280 and prior, Mitsubishi Electric Corporation MELSEC iQ-F Series
FX5UC-32MT/DSS-TS versions 1.280 and prior, Mitsubishi Electric
Corporation MELSEC iQ-F Series FX5UJ-xMy/z (x=24,40,60, y=T,R,
z=ES,ESS) versions 1.042 and prior, Mitsubishi Electric Corporation
MELSEC iQ-F Series FX5UJ-xMy/ES-A (x=24,40,60, y=T,R) versions 1.043
and prior, Mitsubishi Electric Corporation MELSEC iQ-F Series
FX5S-xMy/z (x=30,40,60,80, y=T,R, z=ES,ESS) versions 1.003 and prior,
Mitsubishi Electric Corporation MELSEC iQ-F Series FX5UC-32MR/DS-TS
versions 1.280 and prior, Mitsubishi Electric Corporation MELSEC iQ-R
Series R00/01/02CPU all versions, Mitsubishi Electric Corporation
MELSEC iQ-R Series R04/08/16/32/120(EN)CPU all versions allows a
remote unauthenticated attacker to access the Web server function by
guessing the random numbers used for authentication from several used
random numbers.

This plugin only works with Tenable.ot.
Please visit https://www.tenable.com/products/tenable-ot for more information.");
  # https://www.mitsubishielectric.com/en/psirt/vulnerability/pdf/2022-019_en.pdf
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?90f10851");
  script_set_attribute(attribute:"see_also", value:"https://www.cisa.gov/uscert/ics/advisories/icsa-23-017-02");
  script_set_attribute(attribute:"see_also", value:"https://jvn.jp/vu/JVNVU99673580/index.html");
  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.

Mitsubishi Electric has fixed the following products and recommends users apply the latest firmware update to the follow
products:

- MELSEC iQ-F Series with serial number 17X**** or later: 
    - FX5U-xMy/z x=32,64,80, y=T,R, z=ES,DS,ESS,DSS: Update to v1.281 or later
    - FX5UC-xMy/z x=32,64,96 y=T, z=D,DSS: Update to v1.281 or later
- MELSEC iQ-F Series with serial number 179**** and prior: 
    - FX5U-xMy/z x=32,64,80, y=T,R, z=ES,DS,ESS,DSS: Update to v1.075 or later
    - FX5UC-xMy/z x=32,64,96 y=T, z=D,DSS: Update to v1.075 or later
- MELSEC iQ-F Series FX5UC-32MT/DS-TS, FX5UC-32MT/DSS-TS, FX5UC-32MR/DS-TS: Update to v1.281 or later
- FX5UJ-xMy/z x=24,40,60, y=T,R, z=ES,ESS: Update to v1.044 or later
- FX5UJ-xMy/ES-A* x=24,40,60, y=T,R: Update to v1.045 or later
- FX5S-xMy/z x=30,40,60,80, y=T,R, z=ES,ESS: Update to v1.004 or later

- MELSEC iQ-R Series R00/01/02CPU: Versions 34 or later 
- MELSEC iQ-R Series R04/08/16/32/120(EN)CPU: Versions 67 or later

* These products are available in limited regions. Users should contact Mitsubishi Electric to receive fixed versions.

Refer to the following product manual for updating the firmware: 

"5 FIRMWARE UPDATE FUNCTION" in the MELSEC iQ-F FX5 User\'s Manual (Application)

MELSEC iQ-R Module Configuration Manual “Appendix 2 Firmware Update Function”

Mitsubishi Electric recommends users take the following mitigation measures to minimize the risk of exploiting this
vulnerability:

- Use a firewall or virtual private network (VPN), etc. to prevent unauthorized access when internet access is required.
- Use products inside a local area network (LAN) and block access from untrusted networks and hosts through firewalls. 
- Use the IP filter function* to block access from untrusted hosts. For details on the IP filter function, refer to the
manuals for each product:
- "12.1 IP Filter Function" in the MELSEC iQ-F FX5 User\'s Manual (Ethernet Communication) 
- "1.13 Security" - "IP filter" in the MELSEC iQ-R Ethernet User’s Manual (Application)

CISA also provides a section for control systems security recommended practices on the ICS webpage at cisa.gov/ics.
Several CISA products detailing cyber defense best practices are available for reading and download, including Improving
Industrial Control Systems Cybersecurity with Defense-in-Depth Strategies.

Additional mitigation guidance and recommended practices are publicly available on the ICS webpage at cisa.gov/ics in
the technical information paper, ICS-TIP-12-146-01B--Targeted Cyber Intrusion Detection and Mitigation Strategies.

Organizations observing suspected malicious activity should follow established internal procedures and report findings
to CISA for tracking and correlation against other incidents.

No known public exploits specifically target this vulnerability. This vulnerability has a high attack complexity.');
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:N");
  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:N");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2022-40267");

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

  script_set_attribute(attribute:"vuln_publication_date", value:"2023/01/20");
  script_set_attribute(attribute:"patch_publication_date", value:"2023/01/20");
  script_set_attribute(attribute:"plugin_publication_date", value:"2023/02/21");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:mitsubishielectric:r00cpu_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:mitsubishielectric:r01cpu_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:mitsubishielectric:r02cpu_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:mitsubishielectric:r04cpu_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:mitsubishielectric:r04encpu_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:mitsubishielectric:r08cpu_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:mitsubishielectric:r08encpu_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:mitsubishielectric:r120cpu_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:mitsubishielectric:r120encpu_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:mitsubishielectric:r16cpu_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:mitsubishielectric:r16encpu_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:mitsubishielectric:r32cpu_firmware:-");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:mitsubishielectric:r32encpu_firmware:-");
  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/Mitsubishi");

  exit(0);
}


include('tenable_ot_cve_funcs.inc');

get_kb_item_or_exit('Tenable.ot/Mitsubishi');

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

var vuln_cpes = {
    "cpe:/o:mitsubishielectric:r00cpu_firmware:-" :
        {"family" : "MELSECiQR"},
    "cpe:/o:mitsubishielectric:r01cpu_firmware:-" :
        {"family" : "MELSECiQR"},
    "cpe:/o:mitsubishielectric:r02cpu_firmware:-" :
        {"family" : "MELSECiQR"},
    "cpe:/o:mitsubishielectric:r04cpu_firmware:-" :
        {"family" : "MELSECiQR"},
    "cpe:/o:mitsubishielectric:r08cpu_firmware:-" :
        {"family" : "MELSECiQR"},
    "cpe:/o:mitsubishielectric:r16cpu_firmware:-" :
        {"family" : "MELSECiQR"},
    "cpe:/o:mitsubishielectric:r32cpu_firmware:-" :
        {"family" : "MELSECiQR"},
    "cpe:/o:mitsubishielectric:r120cpu_firmware:-" :
        {"family" : "MELSECiQR"},
    "cpe:/o:mitsubishielectric:r04encpu_firmware:-" :
        {"family" : "MELSECiQR"},
    "cpe:/o:mitsubishielectric:r08encpu_firmware:-" :
        {"family" : "MELSECiQR"},
    "cpe:/o:mitsubishielectric:r16encpu_firmware:-" :
        {"family" : "MELSECiQR"},
    "cpe:/o:mitsubishielectric:r32encpu_firmware:-" :
        {"family" : "MELSECiQR"},
    "cpe:/o:mitsubishielectric:r120encpu_firmware:-" :
        {"family" : "MELSECiQR"}
};

tenable_ot::cve::compare_and_report(asset:asset, cpes:vuln_cpes, severity:SECURITY_HOLE);
VendorProductVersionCPE
mitsubishielectricr00cpu_firmware-cpe:/o:mitsubishielectric:r00cpu_firmware:-
mitsubishielectricr01cpu_firmware-cpe:/o:mitsubishielectric:r01cpu_firmware:-
mitsubishielectricr02cpu_firmware-cpe:/o:mitsubishielectric:r02cpu_firmware:-
mitsubishielectricr04cpu_firmware-cpe:/o:mitsubishielectric:r04cpu_firmware:-
mitsubishielectricr04encpu_firmware-cpe:/o:mitsubishielectric:r04encpu_firmware:-
mitsubishielectricr08cpu_firmware-cpe:/o:mitsubishielectric:r08cpu_firmware:-
mitsubishielectricr08encpu_firmware-cpe:/o:mitsubishielectric:r08encpu_firmware:-
mitsubishielectricr120cpu_firmware-cpe:/o:mitsubishielectric:r120cpu_firmware:-
mitsubishielectricr120encpu_firmware-cpe:/o:mitsubishielectric:r120encpu_firmware:-
mitsubishielectricr16cpu_firmware-cpe:/o:mitsubishielectric:r16cpu_firmware:-
Rows per page:
1-10 of 131

9.5 High

AI Score

Confidence

High

0.003 Low

EPSS

Percentile

70.1%

Related for TENABLE_OT_MITSUBISHI_CVE-2022-40267.NASL