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

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

                               ESB-2021.3458
                       ICS Advisory (ICSA-21-287-07)
                              18 October 2021

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

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

Product:           Siemens Scalance Device
Publisher:         ICS-CERT
Operating System:  Network Appliance
Impact/Access:     Execute Arbitrary Code/Commands -- Existing Account            
                   Increased Privileges            -- Existing Account            
                   Modify Arbitrary Files          -- Existing Account            
                   Cross-site Request Forgery      -- Remote with User Interaction
                   Denial of Service               -- Remote/Unauthenticated      
                   Delete Arbitrary Files          -- Existing Account            
                   Access Confidential Data        -- Remote/Unauthenticated      
                   Reduced Security                -- Existing Account            
Resolution:        Patch/Upgrade
CVE Names:         CVE-2021-37733 CVE-2021-37731 CVE-2021-37729
                   CVE-2021-37728 CVE-2021-37725 CVE-2021-37724
                   CVE-2021-37723 CVE-2021-37722 CVE-2021-37721
                   CVE-2021-37720 CVE-2021-37718 CVE-2021-37717
                   CVE-2021-37716 CVE-2020-37719 CVE-2019-5318

Original Bulletin: 
   https://us-cert.cisa.gov/ics/advisories/icsa-21-287-07

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

ICS Advisory (ICSA-21-287-07)

Siemens SCALANCE

Original release date: October 14, 2021

Legal Notice

All information products included in https://us-cert.cisa.gov/ics are provided
"as is" for informational purposes only. The Department of Homeland Security
(DHS) does not provide any warranties of any kind regarding any information
contained within. DHS does not endorse any commercial product or service,
referenced in this product or otherwise. Further dissemination of this product
is governed by the Traffic Light Protocol (TLP) marking in the header. For more
information about TLP, see https://us-cert.cisa.gov/tlp/ .



1. EXECUTIVE SUMMARY

  o CVSS v3 9.8
  o ATTENTION: Exploitable remotely/low attack complexity
  o Vendor: Siemens
  o Equipment: SCALANCE
  o Vulnerabilities: Cross-site Request Forgery, OS Command Injection, Classic
    Buffer Overflow, Command Injection, Path Traversal, Missing Encryption of
    Sensitive Data

2. RISK EVALUATION

Successful exploitation of these vulnerabilities could allow an attacker to
inject commands or trigger buffer overflows.

3. TECHNICAL DETAILS

3.1 AFFECTED PRODUCTS

The following versions of SCALANCE W1750D, a software management platform, are
affected:

  o SCALANCE W1750D: All versions prior to v8.7.1.3
  o SCALANCE W1750D: Version 8.7.1.3 or later (Only affected by CVE-2019-5318,
    CVE-2020-37719, CVE-2021-37717, CVE-2021-37718, CVE-2021-37720,
    CVE-2021-37721, CVE-2021-37722, CVE-2021-37728)

3.2 VULNERABILITY OVERVIEW

3.2.1 CROSS-SITE REQUEST FORGERY (CSRF) CWE-352

The web interface for RAPConsole lacks Anti-CSRF protections in place for
state-changing operations. This can be exploited by an attacker to reboot the
affected device if the attacker can convince a user to visit a specially
crafted webpage.

CVE-2019-5318 has been assigned to this vulnerability. A CVSS v3 base score of
5.3 has been assigned; the CVSS vector string is ( AV:N/AC:H/PR:N/UI:R/S:U/C:N/
I:N/A:H ).

3.2.2 OS COMMAND INJECTION CWE-78

An authenticated command injection vulnerability exists in the ArubaOS command
line interface. Successful exploitation of this vulnerability results in the
ability to execute arbitrary commands as a privileged user on the underlying
operating system. This allows an attacker to fully compromise the underlying
operating system on the device running ArubaOS.

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

3.2.3 CLASSIC BUFFER OVERFLOW CWE-120

There are multiple buffer overflow vulnerabilities that could lead to
unauthenticated remote code execution by sending specially crafted packets
destined to the PAPI (Aruba Networks AP management protocol) UDP Port (8211) of
devices running ArubaOS. This may allow for denial-of-service attacks and/or
remote code execution in the underlying operating system.

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

3.2.4 COMMAND INJECTION CWE-77

An authenticated command injection vulnerability exists in the ArubaOS
web-based management user interface. Successful exploitation of this
vulnerability results in the ability to execute arbitrary commands as a
privileged user on the underlying operating system. This allows an attacker to
fully compromise the underlying operating system on the device running ArubaOS.

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

3.2.5 COMMAND INJECTION CWE-77

An authenticated command injection vulnerability exists in the ArubaOS
web-based management user interface. Successful exploitation of this
vulnerability results in the ability to execute arbitrary commands as a
privileged user on the underlying operating system. This allows an attacker to
fully compromise the underlying operating system on the device running ArubaOS.

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

3.2.6 COMMAND INJECTION CWE-77

An authenticated command injection vulnerability exists in the ArubaOS command
line interface. Successful exploitation of this vulnerability results in the
ability to execute arbitrary commands as a privileged user on the underlying
operating system. This allows an attacker to fully compromise the underlying
operating system on the device running ArubaOS.

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

3.2.7 COMMAND INJECTION CWE-77

An authenticated command injection vulnerability exists in the ArubaOS command
line interface. Successful exploitation of this vulnerability results in the
ability to execute arbitrary commands as a privileged user on the underlying
operating system. This allows an attacker to fully compromise the underlying
operating system on the device running ArubaOS.

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

3.2.8 COMMAND INJECTION CWE-77

An authenticated command injection vulnerability exists in the ArubaOS command
line interface. Successful exploitation of this vulnerability results in the
ability to execute arbitrary commands as a privileged user on the underlying
operating system. This allows an attacker to fully compromise the underlying
operating system on the device running ArubaOS.

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

3.2.9 COMMAND INJECTION CWE-77

An authenticated command injection vulnerability exists in the ArubaOS command
line interface. This vulnerability is only present in instances of the Mobility
Conductor. Successful exploitation of this vulnerability results in the ability
to execute arbitrary commands as a privileged user on the underlying operating
system. This allows an attacker to fully compromise the underlying operating
system on the Mobility Conductor running ArubaOS.

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

3.2.10 COMMAND INJECTION CWE-77

An authenticated command injection vulnerability exists in the ArubaOS command
line interface. This vulnerability is only present in instances of the Mobility
Conductor. Successful exploitation of this vulnerability results in the ability
to execute arbitrary commands as a privileged user on the underlying operating
system. This allows an attacker to fully compromise the underlying operating
system on the Mobility Conductor running ArubaOS.

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

3.2.11 CROSS-SITE REQUEST FORGERY (CSRF) CWE-352

A vulnerability in the web-based management interface of ArubaOS could allow an
unauthenticated remote attacker to conduct a Cross-Site Request Forgery (CSRF)
attack against a vulnerable system. Successful exploitation of this
vulnerability would consist of an attacker persuading an authorized user to
follow a malicious link, resulting in the deletion of arbitrary files with the
privilege level of the targeted user.

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

3.2.12 PATH TRAVERSAL CWE-22

An authenticated path traversal vulnerability exists in the ArubaOS command
line interface. Successful exploitation of this vulnerability results in the
ability to impact the integrity of critical files on the underlying operating
system. This allows an attacker to impact the availability of the ArubaOS
instance and may allow for modification of sensitive data.

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

3.2.13 PATH TRAVERSAL CWE-22

An authenticated path traversal vulnerability exists in the ArubaOS web-based
management interface. Successful exploitation of this vulnerability results in
the ability to impact the integrity of critical files on the underlying
operating system. This allows an attacker to impact the availability of the
ArubaOS instance and may allow for modification of sensitive data.

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

3.2.14 MISSING ENCRYPTION OF SENSITIVE DATA CWE-311

An authenticated local path traversal vulnerability exists in the ArubaOS
web-based management interface and CLI. This vulnerability only affects
physical hardware controllers such as the 9000 series and 7x00 series.
Successful exploitation of this vulnerability requires physical access to the
controller and results in the ability to impact the integrity and
confidentiality of critical files on the underlying operating system. This
allows an attacker to impact the availability of the ArubaOS instance and may
allow for modification or disclosure of sensitive data.

CVE-2021-37731 has been assigned to this vulnerability. A CVSS v3 base score of
6.1 has been assigned; the CVSS vector string is ( AV:P/AC:H/PR:H/UI:N/S:U/C:H/
I:H/A:H/E:P/RL:O/RC:C ).

3.2.15 PATH TRAVERSAL CWE-22

An authenticated path traversal vulnerability exists in the ArubaOS command
line interface. Successful exploitation of this vulnerability results in the
ability to read arbitrary files on the underlying operating system, including
sensitive system files.

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

3.3 BACKGROUND

o CRITICAL INFRASTRUCTURE SECTORS: Chemical, Energy, Food and Agriculture,
Healthcare and Public Health, Transportation Systems, and Water and Wastewater
Systems
o COUNTRIES/AREAS DEPLOYED: Worldwide
o COMPANY HEADQUARTERS LOCATION: Germany

3.4 RESEARCHER

Siemens reported these vulnerabilities to CISA.

4. MITIGATIONS

Siemens recommends upgrading SCALANCE W1750 to Versions 8.7.1.3 or later

Siemens has identified the following specific workarounds and mitigations users
can apply to reduce the risk:

  o Block access to the ArubaOS Command Line Interface from all untrusted
    users.
  o Block access to the ArubaOS web-based management interface from all
    untrusted users.
  o Block access to the Mobility Conductor Command Line Interface from all
    untrusted users.
  o Enabling the Enhanced PAPI Security feature where available will prevent
    exploitation of these vulnerabilities. Please contact TAC for assistance if
    needed.
  o Exploitation requires physical access. Controllers in strictly controlled
    physical environments are at low risk.
  o To minimize the likelihood of an attacker exploiting these vulnerabilities,
    Aruba recommends the communication between Controller/Gateways and
    Access-Points be restricted either by having a dedicated Layer 2 segment/
    VLAN or, if Controller/Gateways and Access-Points cross Layer 3 boundaries,
    to have firewall policies restricting the communication of these authorized
    devices. In addition, enabling the Enhanced PAPI Security feature will
    prevent the PAPI-specific vulnerabilities above from being exploited.
    Contact Aruba Support for configuration assistance.
  o The RAPConsole or Local Debug (LD) homepage can be reached by users in a
    split or bridge role. This can be prevented by configuring an ACL to
    restrict access to the LD homepage, which effectively prevents this issue.
    Detailed instructions for ACL implementation are available.

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

For additional information, please refer to Siemens Security Advisory
SSA-280624

CISA recommends users take defensive measures to minimize the risk of
exploitation of these vulnerabilities. Specifically, users should:

  o Minimize network exposure for all control system devices and/or systems,
    and ensure that they are not accessible from the Internet .
  o Locate control system networks and remote devices behind firewalls, and
    isolate them from the business network.
  o 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.

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 us-cert.cisa.gov . Several recommended 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 on us-cert.cisa.gov in the Technical Information Paper,
ICS-TIP-12-146-01B--Targeted Cyber Intrusion Detection and Mitigation
Strategies .

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

No known public exploits specifically target these vulnerabilities.

For any questions related to this report, please contact the CISA at:

Email: CISAservicedesk@cisa.dhs.gov
Toll Free: 1-888-282-0870

CISA continuously strives to improve its products and services. You can help by
choosing one of the links below to provide feedback about this product.

- --------------------------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: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBYWz/EONLKJtyKPYoAQj5vA/8Dy2Cirvs1cC7y9zqXm4pyDFjxY/G8fTy
TUCxkmFKkwg9PC4fTzVK+nqtunXIHcZjc9cXRGlZBj8J9Xzcg53DRaGkneQ1Ledi
IPmhF27r6OYwKHjjTiBac5LCM0nhBhcM/Vw6nqWXcgR/yqJof2KwnORNWV5PEbVj
BNOzUACjGQeooGf1yUMXAjgSmFJZ1Jo4v8Kv4xUe/mgUmIJ7K+X1OE9I5IcFtBs4
t6YDYJFYegNFu135ZgZIh129F3CZo7HCKb1jyWTu/+tYqK20W7CpbrjTq3Ha3z4L
9PcQCzCP8C5Kl81Y2i2hbal91Cl+4Qik3ZzdC05u8Z/RrymECPLP3tb5CD3s6QRP
007esfccpLGwyxln5ix3PNOv8+uN0iQ9BX8RheioUi7D7RQ+h5pK81anZ9ega/ER
DmwMX3mB+Vsq7Be0vD98XOf/RTJNsZFjY7SSD8W0fYLDP4eCPqSqT0/QL3ER+zbo
w5bhrrJBskrsI/PREwCef90zH5JLt9pXiozpCAQIUJsPrgqL91dQgXSCtjLyCt3q
s21PsivAb20XfhdAcJh8IFtb2h34RULvnZslv0lc06YNb0n+trrwevzAs1OtUbDg
c6E1Kh6GrvxwX+fnQGI+i1HDDOm+J6zApCOcVTFcN6tN/KF/5zrgevtR0XlnZ9OF
kEF983c8X9Q=
=V0WK
-----END PGP SIGNATURE-----