Operating System:

[Appliance]

Published:

18 December 2023

Protect yourself against future threats.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2023.7559
       ICS Advisory | ICSA-23-348-14 Siemens RUGGEDCOM and SCALANCE
                             M-800/S615 Family
                             18 December 2023

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           Siemens RUGGEDCOM and SCALANCE M-800/S615 Family
Publisher:         ICS-CERT
Operating System:  Network Appliance
Resolution:        Patch/Upgrade
CVE Names:         CVE-2023-49691 CVE-2023-44374 CVE-2023-44373
                   CVE-2023-44322 CVE-2023-44321 CVE-2023-44320
                   CVE-2023-44319 CVE-2023-44318 CVE-2022-46143
                   CVE-2022-36323  

Original Bulletin: 
   https://www.cisa.gov/news-events/ics-advisories/icsa-23-348-14

Comment: CVSS (Max):  9.1 CVE-2022-36323 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H)
         CVSS Source: Siemens AG
         Calculator:  https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

- --------------------------BEGIN INCLUDED TEXT--------------------

ICS Advisory (ICSA-23-348-14)

Siemens RUGGEDCOM and SCALANCE M-800/S615 Family

Release Date
December 14, 2023

As of January 10, 2023, CISA will no longer be updating ICS security advisories
for Siemens product vulnerabilities beyond the initial advisory. For the most
up-to-date information on vulnerabilities in this advisory, please see Siemens'
ProductCERT Security Advisories (CERT Services | Services | Siemens Global).

1. EXECUTIVE SUMMARY

  o CVSS v3 9.1
  o ATTENTION : Exploitable remotely/low attack complexity
  o Vendor : Siemens
  o Equipment : SCALANCE M-800/S615 Family
  o Vulnerabilities : Improper Validation of Specified Quantity in Input, Use
    of Hard-coded Cryptographic Key, Use of Weak Hash, Forced Browsing,
    Uncontrolled Resource Consumption, Unchecked Return Value, Injection,
    Unsynchronized Access to Shared Data in a Multithreaded Context, OS Command
    Injection

2. RISK EVALUATION

Successful exploitation of these vulnerabilities could allow an attacker to
inject code or spawn a system root shell.

3. TECHNICAL DETAILS

3.1 AFFECTED PRODUCTS

The following products of Siemens, are affected:

  o RUGGEDCOM RM1224 LTE(4G) EU (6GK6108-4AM00-2BA2): All versions prior to
    V8.0
  o RUGGEDCOM RM1224 LTE(4G) EU (6GK6108-4AM00-2BA2): All versions
  o RUGGEDCOM RM1224 LTE(4G) NAM (6GK6108-4AM00-2DA2): All versions prior to
    V8.0
  o RUGGEDCOM RM1224 LTE(4G) NAM (6GK6108-4AM00-2DA2): All versions
  o SCALANCE M804PB (6GK5804-0AP00-2AA2): All versions prior to V8.0
  o SCALANCE M804PB (6GK5804-0AP00-2AA2): All versions
  o SCALANCE M812-1 ADSL-Router (Annex A) (6GK5812-1AA00-2AA2): All versions
    prior to V8.0
  o SCALANCE M812-1 ADSL-Router (Annex A) (6GK5812-1AA00-2AA2): All versions
  o SCALANCE M812-1 ADSL-Router (Annex B) (6GK5812-1BA00-2AA2): All versions
    prior to V8.0
  o SCALANCE M812-1 ADSL-Router (Annex B) (6GK5812-1BA00-2AA2): All versions
  o SCALANCE M816-1 ADSL-Router (Annex A) (6GK5816-1AA00-2AA2): All versions
    prior to V8.0
  o SCALANCE M816-1 ADSL-Router (Annex A) (6GK5816-1AA00-2AA2): All versions
  o SCALANCE M816-1 ADSL-Router (Annex B) (6GK5816-1BA00-2AA2): All versions
    prior to V8.0
  o SCALANCE M816-1 ADSL-Router (Annex B) (6GK5816-1BA00-2AA2): All versions
  o SCALANCE M826-2 SHDSL-Router (6GK5826-2AB00-2AB2): All versions prior to
    V8.0
  o SCALANCE M826-2 SHDSL-Router (6GK5826-2AB00-2AB2): All versions
  o SCALANCE M874-2 (6GK5874-2AA00-2AA2): All versions prior to V8.0
  o SCALANCE M874-2 (6GK5874-2AA00-2AA2): All versions
  o SCALANCE M874-3 (6GK5874-3AA00-2AA2): All versions prior to V8.0
  o SCALANCE M874-3 (6GK5874-3AA00-2AA2): All versions
  o SCALANCE M876-3 (EVDO) (6GK5876-3AA02-2BA2): All versions prior to V8.0
  o SCALANCE M876-3 (EVDO) (6GK5876-3AA02-2BA2): All versions
  o SCALANCE M876-3 (ROK) (6GK5876-3AA02-2EA2): All versions prior to V8.0
  o SCALANCE M876-3 (ROK) (6GK5876-3AA02-2EA2): All versions
  o SCALANCE M876-4 (6GK5876-4AA10-2BA2): All versions prior to V8.0
  o SCALANCE M876-4 (6GK5876-4AA10-2BA2): All versions
  o SCALANCE M876-4 (EU) (6GK5876-4AA00-2BA2): All versions prior to V8.0
  o SCALANCE M876-4 (EU) (6GK5876-4AA00-2BA2): All versions
  o SCALANCE M876-4 (NAM) (6GK5876-4AA00-2DA2): All versions prior to V8.0
  o SCALANCE M876-4 (NAM) (6GK5876-4AA00-2DA2): All versions
  o SCALANCE MUM853-1 (EU) (6GK5853-2EA00-2DA1): All versions prior to V8.0
  o SCALANCE MUM853-1 (EU) (6GK5853-2EA00-2DA1): All versions
  o SCALANCE MUM856-1 (EU) (6GK5856-2EA00-3DA1): All versions prior to V8.0
  o SCALANCE MUM856-1 (EU) (6GK5856-2EA00-3DA1): All versions
  o SCALANCE MUM856-1 (RoW) (6GK5856-2EA00-3AA1): All versions prior to V8.0
  o SCALANCE MUM856-1 (RoW) (6GK5856-2EA00-3AA1): All versions
  o SCALANCE S615 (6GK5615-0AA00-2AA2): All versions prior to V8.0
  o SCALANCE S615 (6GK5615-0AA00-2AA2): All versions
  o SCALANCE S615 EEC (6GK5615-0AA01-2AA2): All versions prior to V8.0
  o SCALANCE S615 EEC (6GK5615-0AA01-2AA2): All versions

3.2 Vulnerability Overview

3.2.1 IMPROPER VALIDATION OF SPECIFIED QUANTITY IN INPUT CWE-1284

Affected devices do not check the TFTP blocksize correctly. This could allow an
authenticated attacker to read from an uninitialized buffer that potentially
contains previously allocated data.

CVE-2022-46143 has been assigned to this vulnerability. A CVSS v3 base score of
2.7 has been assigned; the CVSS vector string is ( CVSS:3.1/AV:N/AC:L/PR:H/UI:N
/S:U/C:L/I:N/A:N ).

3.2.2 USE OF HARD-CODED CRYPTOGRAPHIC KEY CWE-321

Affected devices use a hard-coded key to obfuscate the configuration backup
that an administrator can export from the device. This could allow an
authenticated attacker with administrative privileges or an attacker that
obtains a configuration backup to extract configuration information from the
exported file.

CVE-2023-44318 has been assigned to this vulnerability. A CVSS v3 base score of
4.9 has been assigned; the CVSS vector string is ( CVSS:3.1/AV:N/AC:L/PR:H/UI:N
/S:U/C:H/I:N/A:N ).

3.2.3 USE OF WEAK HASH CWE-328

Affected devices use a weak checksum algorithm to protect the configuration
backup that an administrator can export from the device. This could allow an
authenticated attacker with administrative privileges or an attacker that
tricks a legitimate administrator to upload a modified configuration file to
change the configuration of an affected device.

CVE-2023-44319 has been assigned to this vulnerability. A CVSS v3 base score of
4.9 has been assigned; the CVSS vector string is ( CVSS:3.1/AV:N/AC:L/PR:H/UI:N
/S:U/C:N/I:H/A:N ).

3.2.4 DIRECT REQUEST ('FORCED BROWSING') CWE-425

Affected devices do not properly validate the authentication when performing
certain modifications in the web interface allowing an authenticated attacker
to influence the user interface configured by an administrator.

CVE-2023-44320 has been assigned to this vulnerability. A CVSS v3 base score of
4.3 has been assigned; the CVSS vector string is ( CVSS:3.1/AV:N/AC:L/PR:L/UI:N
/S:U/C:N/I:L/A:N ).

3.2.5 UNCONTROLLED RESOURCE CONSUMPTION CWE-400

Affected devices do not properly validate the length of inputs when performing
certain configuration changes in the web interface allowing an authenticated
attacker to cause a denial of service condition. The device needs to be
restarted for the web interface to become available again.

CVE-2023-44321 has been assigned to this vulnerability. A CVSS v3 base score of
2.7 has been assigned; the CVSS vector string is ( CVSS:3.1/AV:N/AC:L/PR:H/UI:N
/S:U/C:N/I:N/A:L ).

3.2.6 UNCHECKED RETURN VALUE CWE-252

Affected devices can be configured to send emails when certain events occur on
the device. When presented with an invalid response from the SMTP server, the
device triggers an error that disrupts email sending. An attacker with access
to the network can use this to do disable notification of users when certain
events occur.

CVE-2023-44322 has been assigned to this vulnerability. A CVSS v3 base score of
3.7 has been assigned; the CVSS vector string is ( CVSS:3.1/AV:N/AC:H/PR:N/UI:N
/S:U/C:N/I:N/A:L ).

3.2.7 IMPROPER NEUTRALIZATION OF SPECIAL ELEMENTS IN OUTPUT USED BY A
DOWNSTREAM COMPONENT ('INJECTION') CWE-74

Affected devices do not properly sanitize an input field. This could allow an
authenticated remote attacker with administrative privileges to inject code or
spawn a system root shell. Follow-up of CVE-2022-36323.

CVE-2023-44373 has been assigned to this vulnerability. A CVSS v3 base score of
9.1 has been assigned; the CVSS vector string is ( CVSS:3.1/AV:N/AC:L/PR:H/UI:N
/S:C/C:H/I:H/A:H ).

3.2.8 UNSYNCHRONIZED ACCESS TO SHARED DATA IN A MULTITHREADED CONTEXT CWE-567

Affected devices allow to change the password, but insufficiently check which
password is to be changed. With this an authenticated attacker could, under
certain conditions, be able to change the password of another, potential admin
user allowing her to escalate her privileges.

CVE-2023-44374 has been assigned to this vulnerability. A CVSS v3 base score of
6.5 has been assigned; the CVSS vector string is ( CVSS:3.1/AV:N/AC:L/PR:L/UI:N
/S:U/C:N/I:H/A:N ).

3.2.9 IMPROPER NEUTRALIZATION OF SPECIAL ELEMENTS USED IN AN OS COMMAND ('OS
COMMAND INJECTION') CWE-78

An improper neutralization of special elements used in an OS command with root
privileges vulnerability exists in the handling of the DDNS configuration. This
could allow malicious local administrators to issue commands on system level
after a successful IP address update.

CVE-2023-49691 has been assigned to this vulnerability. A CVSS v3 base score of
7.2 has been assigned; the CVSS vector string is ( CVSS:3.1/AV:N/AC:L/PR:H/UI:N
/S:U/C:H/I:H/A:H ).

3.3 BACKGROUND

  o CRITICAL INFRASTRUCTURE SECTORS: Critical Manufacturing
  o COUNTRIES/AREAS DEPLOYED: Worldwide
  o COMPANY HEADQUARTERS LOCATION: Germany

3.4 RESEARCHER

Siemens reported these vulnerabilities to CISA.

4. MITIGATIONS

Siemens has released a new version for SCALANCE M-800 / S615 and recommends
users update to the latest version. Siemens recommends countermeasures for
products where fixes are not, or not yet available:

For CVE-2022-46143, CVE-2023-44319, CVE-2023-44322, CVE-2023-44373,
CVE-2023-44374, CVE-2023-49691:

  o Update to V8.0 or [later version https://support.industry.siemens.com/cs/ww
    /en/view/109826372/]

For CVE-2023-44318, CVE-2023-44320, CVE-2023-44321:

  o Currently no fix is planned, practice general security measures detailed
    below.

As a general security measure, Siemens recommends protecting network access to
devices with appropriate mechanisms. To operate the devices in a protected IT
environment, Siemens recommends configuring the environment according to
Siemens' operational guidelines for industrial security and following
recommendations in the product manuals.

Additional information on industrial security by Siemens can be found on the
Siemens industrial security webpage .

For more information see the associated Siemens security advisory SSA-180704 in
HTML and CSAF .

CISA recommends users take defensive measures to minimize the risk of
exploitation of these vulnerabilities, such as:

  o Minimize network exposure for all control system devices and/or systems,
    ensuring they are not accessible from the internet .
  o Locate control system networks and remote devices behind firewalls and
    isolating them from business networks.
  o When remote access is required, use more secure methods, such as Virtual
    Private Networks (VPNs). Recognize VPNs may have vulnerabilities, should be
    updated to the most recent version available, and are only as secure as the
    connected devices.

CISA reminds organizations to perform proper impact analysis and risk
assessment prior to deploying defensive measures.

CISA also provides a section for control systems security recommended practices
on the ICS webpage on cisa.gov . 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 .

CISA encourages organizations to implement recommended cybersecurity strategies
for proactive defense of ICS assets .

Additional mitigation guidance and recommended practices are publicly available
on the ICS webpage at cisa.gov 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.

CISA also recommends users take the following measures to protect themselves
from social engineering attacks:

  o Do not click web links or open attachments in unsolicited email messages.
  o Refer to Recognizing and Avoiding Email Scams for more information on
    avoiding email scams.
  o Refer to Avoiding Social Engineering and Phishing Attacks for more
    information on social engineering attacks.

No known public exploitation specifically targeting these vulnerabilities has
been reported to CISA at this time.

5. UPDATE HISTORY

  o December 14, 2023: Initial Publication

This product is provided subject to this Notification and this Privacy & Use 
policy.

Vendor

Siemens

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: https://auscert.org.au/gpg-key/

iQIVAwUBZX+s/skNZI30y1K9AQjg+w/+PlK4RBAgmFBiwPTHy/qD+7troZwQBNrC
TrL+InJ32+bV9RV7wmx/u8AwP4JTQITbzwOStQ+iaacwZ1W9GqIv8fUCYLxn1RQP
xIJpg0Mng5YCNj6UaZLP2FXG8FDahg+bauSrnb+R5nOCvvt0d000t6X/qKGBBZeV
OGPJGaJoXCH1khuE9sgFe5A5XbTsCnTtbR1Y4ZqEwFu46/z7UAc2Pvr7c09KcEah
59MqTFJvL2tFVXWkyDD9/craBLcCPEna7wL/VuuioX8ho8Ox3KKgoxm3nt747IoX
/FWcmxYjJhWy+KuuRqBCkpDZrHgFZxWzbOndnJiNDpv2967yU6QJWqBEYMwXj4tI
CURc19Pq+IRn9Pl8I5xwiiZJw4VclwSZySO8fsycDs8DpAb2nWZC5t6ecRGkO5l+
CwDW6b2JhL9mi1gB+dp8bWrr9j5zU+EyNfDDn+xbHC53ZGzgPfurejoqwEvIIMz+
4s5JC9M0awRDDOjtgd3ktD2i2C73iCgc2A6LAuU+CCIcC/09We7z+wbLoQW501An
63D/o8IEr7eIkkeGB9xPIy6p1NwkDmZF129Dleir8Oa1hPcvJV2HNG+CpnPcGkoL
UIwTLv9+9untXwIHKV/xXJIh+WLXwIVtgxntSBs9IzjhG5f061OWypZIt3IBq6BS
Sk9WtAnArr0=
=ociw
-----END PGP SIGNATURE-----