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

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

                               ESB-2022.2352
    Advisory (icsa-22-132-02) Mitsubishi Electric MELSOFT iQ AppPortal
                                13 May 2022

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

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

Product:           Mitsubishi Electric MELSOFT iQ AppPortal
Publisher:         ICS-CERT
Operating System:  Network Appliance
Resolution:        Patch/Upgrade
CVE Names:         CVE-2022-23943 CVE-2022-22720 CVE-2022-0778
                   CVE-2021-44790 CVE-2021-34798 CVE-2021-26691
                   CVE-2021-3711 CVE-2020-13938 

Original Bulletin: 
   https://us-cert.cisa.gov/ics/advisories/icsa-22-132-02

Comment: CVSS (Max):  9.8 CVE-2022-23943 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
         CVSS Source: ICS-CERT
         Calculator:  https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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

ICS Advisory (ICSA-22-132-02)

Mitsubishi Electric MELSOFT iQ AppPortal

Original release date: May 12, 2022

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: Mitsubishi Electric
  o Equipment: MELSOFT iQ AppPortal
  o Vulnerabilities: Missing Authorization, Out-of-bounds Write, NULL Pointer
    Dereference, Classic Buffer Overflow, HTTP Request Smuggling, Infinite Loop

2. RISK EVALUATION

Successful exploitation of these vulnerabilities could result in a
denial-of-service condition, malicious program execution, information
disclosure, information tampering, or authentication bypass.

3. TECHNICAL DETAILS

3.1 AFFECTED PRODUCTS

The following MELSOFT iQ AppPortal versions using the vulnerable open-source
software used by VisualSVN Server, are affected:

  o MELSOFT iQ AppPortal (SW1DND-IQAPL-M): Versions 1.00A through 1.26C

3.2 VULNERABILITY OVERVIEW

3.2.1 MISSING AUTHORIZATION CWE-862

Apache HTTP Server Versions 2.4.0 to 2.4.46 allow unprivileged local users to
stop httpd on Windows.

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

3.2.2 OUT-OF-BOUNDS WRITE CWE-787

In Apache HTTP Server Versions 2.4.0 to 2.4.46 a specially crafted
SessionHeader sent by an origin server could cause a heap overflow.

CVE-2021-26691 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.3 NULL POINTER DEREFERENCE CWE-476

Malformed requests may cause the server to dereference a NULL pointer. This
issue affects Apache HTTP Server Versions 2.4.48 and earlier.

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

3.2.4 BUFFER COPY WITHOUT CHECKING SIZE OF INPUT ('CLASSIC BUFFER OVERFLOW')
CWE-120

An attacker who can present SM2 content for decryption to an application could
cause data to overflow the buffer up to a maximum of 62 bytes, altering the
contents of other data held after the buffer or causing the application to
crash. The location of the buffer is application dependent but is typically
heap allocated. Fixed in OpenSSL 1.1.1 (Affected 1.1.1-1.1.1k). This issue is
detailed further in CVE-2021-3711 .

CVE-2021-3711 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.5 OUT-OF-BOUNDS WRITE CWE-787

A carefully crafted request body can cause a buffer overflow in the mod_lua
multipart parser (r:parsebody() called from Lua scripts). The Apache httpd team
is not aware of an exploit for this vulnerability, though it might be possible
to craft one. This issue affects Apache HTTP Server Versions 2.4.51 and
earlier.

CVE-2021-44790 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.6 INCONSISTENT INTERPRETATION OF HTTP REQUESTS ('HTTP REQUEST SMUGGLING')
CWE-444

Apache HTTP Server Versions 2.4.52 and earlier fail to close inbound
connections when errors are encountered discarding the request body, exposing
the server to HTTP request smuggling.

CVE-2022-22720 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.7 OUT-OF-BOUNDS WRITE CWE-787

An out-of-bounds write vulnerability in mod_sed of Apache HTTP Server allows an
attacker to overwrite heap memory with possibly attacker provided data. This
issue affects Apache HTTP Server 2.4 Versions 2.4.52 and earlier.

CVE-2022-23943 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.8 LOOP WITH UNREACHABLE EXIT CONDITION ('INFINITE LOOP') CWE-835

The BN_mod_sqrt() function, which computes a modular square root, contains a
bug that can cause it to loop for non-prime moduli. An attacker can use a
self-signed certificate to trigger the loop during verification of the
certificate signature. This issue, which is further detailed in CVE-2022-0778,
affects OpenSSL Versions 1.0.2, 1.1.1, and 3.0.xxx

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

3.3 BACKGROUND

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

3.4 RESEARCHER

Mitsubishi Electric notified CISA of these vulnerabilities.

4. MITIGATIONS

Mitsubishi Electric recommends the following:

  o Update to 1.29F or later . Unzip the downloaded file (zip format) and
    execute the file "setup.exe."
  o Restrict network access to the computer running this product so it can be
    accessed only from trusted networks or hosts.
  o Minimize user privilege for product users.
  o Install an antivirus software in the personal computer that runs this
    product.
  o Please follow the safety precautions in the operating manual for the
    product.

For more information see Mitsubishi Electric's advisory 2022-003

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 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 VPNs may have vulnerabilities and should be
    updated to the most current version available. Also recognize VPN is only
    as secure as its 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 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 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: https://auscert.org.au/gpg-key/

iQIVAwUBYn2RxckNZI30y1K9AQi8CBAAqUqs25nG50ePscL54RdGJ52VkGxCpn2Y
v5+p4mbRSuL6sH6L2EaRfm33tco9gktzcRxtN1XGMODNLIuc2NWH6gqjbT4IY7vu
gCkgQScKlJI0FpcAYVQnXwR06xixl9/PtETKno03atkDysb4w9g/2foQEhWH0LmY
qudrCzqO7+ez6dfnb8WqaNIhlvRFoNtEvH2NlZMF35k4qprkittc8U8ZQn6kgyXI
0FkOGmAzX6OAkXSRM7OCx1cvNDotcnNpr7bRbix4sW69CI4GUkgW3OKm3CP+6PG1
HUtewOvJDGH/jBq+nxCw+ASkjy8CQItkpKtTla2rAEoy6U7MKoKMtB1V1C0BQuuM
U9OaPxQCujfXyrsOl6AD3EeapZQLb0te82iZO6KXnyxHpWzRQB77/b8f/yT7Mxgq
LeD1AoFcjV9AeABbqXdVYu/10teNMBTa3st3KucofKH9KGJecrk9OMhvnyHODoGL
kaiWCYBla0AFVc1XpVEN8CQ0qmCZTmzAUN0Vnsc55OEMgjtsmaADwLhfkhUXV3TI
lSWBUt0rjN5aGE0VTA9X2s7fSUpqRaiMguzajmenCk7dwUBCr1tPttECvRslSgH4
zbbKdOBKmZvvYIf+OHVT+oc1xp1kL5CH70iHLi3Vd20RKIz+YJg+Lc+CnXkB1xto
v9IthHgJ8/k=
=QUrM
-----END PGP SIGNATURE-----