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

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

                               ESB-2021.2344
                  Advisory (icsa-21-189-02) MDT AutoSave
                                9 July 2021

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

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

Product:           MDT AutoSave
Publisher:         ICS-CERT
Operating System:  Network Appliance
Impact/Access:     Execute Arbitrary Code/Commands -- Remote/Unauthenticated
                   Overwrite Arbitrary Files       -- Remote/Unauthenticated
                   Create Arbitrary Files          -- Remote/Unauthenticated
                   Access Confidential Data        -- Remote/Unauthenticated
                   Unauthorised Access             -- Remote/Unauthenticated
                   Reduced Security                -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2021-32961 CVE-2021-32957 CVE-2021-32953
                   CVE-2021-32949 CVE-2021-32945 CVE-2021-32937
                   CVE-2021-32933  

Original Bulletin: 
   https://us-cert.cisa.gov/ics/advisories/icsa-21-189-02

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

ICS Advisory (ICSA-21-189-02)

MDT AutoSave

Original release date: July 08, 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 10.0
  o ATTENTION: Exploitable remotely/low attack complexity
  o Vendor: MDT Software
  o Equipment: MDT AutoSave
  o Vulnerabilities: Inadequate Encryption Strength, SQL Injection, Relative
    Path Traversal, Command Injection, Uncontrolled Search Path Element,
    Generation of Error Message Containing Sensitive Information, Unrestricted
    Upload of File with Dangerous Type

2. RISK EVALUATION

Successful exploitation of these vulnerabilities by an attacker with detailed
understanding of the product architecture and database structure could lead to
full remote execution on the Remote MDT Server without an existing user or
password.

3. TECHNICAL DETAILS

3.1 AFFECTED PRODUCTS

MDT Software reports the vulnerabilities affect the following MDT Autosave
products:

  o MDT AutoSave versions prior to v6.02.06
  o MDT AutoSave v7.00-7.04
  o AutoSave for System Platform (A4SP) versions prior to 4.01
  o A4SP Version 5.00

3.2 VULNERABILITY OVERVIEW

3.2.1 INADEQUATE ENCRYPTION STRENGTH CWE-326

An attacker could decipher the encryption and gain access to the system.

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

3.2.2 SQL INJECTION CWE-89

An attacker could utilize SQL commands to create a new user in the system and
update the user's permissions, granting the attacker the ability to login.

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

3.2.3 RELATIVE PATH TRAVERSAL CWE-23

An attacker could utilize a function that permits changing a designated path to
another path and traversing the directory, allowing the replacement of an
existing file with a malicious file.

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

3.2.4 COMMAND INJECTION CWE-77

An attacker could leverage an API to pass along a malicious file that could
then manipulate the process creation command line and run a command line
argument. This could then be leveraged to run a malicious process.

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

3.2.5 UNCONTROLLED SEARCH PATH ELEMENT CWE-427

A function is used to retrieve system information for a specific process, and
this information collection executes multiple commands and summarizes the
information into an XML. This function and subsequent process gives full path
to the executable and is therefore vulnerable to binary hijacking.

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

3.2.6 GENERATION OF ERROR MESSAGE CONTAINING SENSITIVE INFORMATION CWE-209

An attacker can gain knowledge of a session temporary working folder where the
getfile and putfile commands are used. An attacker can leverage this knowledge
to provide a malicious command to the working directory where the read and
write activity can be initiated.

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

3.2.7 UNRESTRICTED UPLOAD OF FILE WITH DANGEROUS TYPE CWE-434

A getfile function enables a user to supply an optional parameter, resulting in
the processing of a request in a special manner. This can result in the
execution of an unzip command and place a malicious .exe file in one of the
locations the function looks for and get execution capabilities.

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

3.3 BACKGROUND

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

3.4 RESEARCHER

Amir Preminger of Claroty Research reported these vulnerabilities to MDT
Software.

4. MITIGATIONS

Updated versions of MDT AutoSave and AutoSave for System Platform (A4SP) were
developed to address these vulnerabilities as follows:

  o MDT AutoSave 6.x version: Version 6.02.06 (Released January 2021)
  o MDT AutoSave 7.x version: Version 7.05 (Released December 2020)
  o A4SP 4.x version: Version 4.01 (Released June 2021)
  o A4SP 5.x version: Version 5.01 (Released May 2021)

For more information about these vulnerabilities, and to obtain and install the
new versions, please contact MDT Software customer support .

CISA recommends users take defensive measures to minimize the risk of
exploitation of this vulnerability. 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.

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

  o Do not click web links or open unsolicited attachments in 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 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

iQIVAwUBYOehMONLKJtyKPYoAQiWpg//SbZORRRYhdADbMFsKnOfCsa/2ihgaAN0
7ftSNwkJFdX7k/OCPi9Mn2k5aqwsL9IgSX48O8vRc6cQgWwubUcA+9mMs83PCb3n
pPRgdksY9s6MNHLZ3WEBC3MouAk2Z2xKv65tb0rQDwbXAmzirbBit6GaMQGqTESQ
Vm3KSF4bHjqHRR4ToSX8qaUsld2o4Qb+oGBy0HGwlRRzxfaTZzyNeF8papx1a1jO
0NxRXxH4Fpv4S9ok5Xvg++uKqBB5IizZN/abdcrGv8zN4R4dxvb/iscYPqFDXa1z
FHg+NaF5nFG4wU/6xAUcXmK//V0+8ALa4gSGN2+IhWdifYOdBWnp1rPeRhd7WC5L
ILdpvEvQaVzQxSwHHzMOI8uyKrIZdne7KAFyis6ZuZVUG+XBwtFCEQlAYyI+A+5L
t/MFXoARGFMU6wtGj+OaYr1RXoM+WK8sRMqlVDw84ONYb+A9fJFLikIbi4M2vU5r
Pdu2BcQw9d7njbyOcXaWWSXMu5ZBYFxqgdHOJM5yIyAlPTOstE0Nyrw2Yrw9hiWK
O4soFInYgB45caZpoD+SxDZQyn48KOPs1jMaIYkHTNYdlSPrgnYVdqqf1p8D/jG5
DVqrmRCFMShHoQCoWdSUpcyJETHLSNh0vlGFYl0FMm4f7wfM+8SueOq2fsdosyKD
ilK8fDoRGzM=
=QhDX
-----END PGP SIGNATURE-----