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

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

                               ESB-2018.1560
              Advisory (ICSA-18-142-01) Martem TELEM-GW6/GWM
                                23 May 2018

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

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

Product:           Martem TELEM-GW6/GWM
Publisher:         ICS-CERT
Operating System:  Network Appliance
Impact/Access:     Execute Arbitrary Code/Commands -- Remote/Unauthenticated      
                   Denial of Service               -- Remote/Unauthenticated      
                   Cross-site Scripting            -- Remote with User Interaction
Resolution:        Patch/Upgrade
CVE Names:         CVE-2018-10609 CVE-2018-10607 CVE-2018-10603

Original Bulletin: 
   https://ics-cert.us-cert.gov/advisories/ICSA-18-142-01

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

Advisory (ICSA-18-142-01)

Martem TELEM-GW6/GWM

Original release date: May 22, 2018

Legal Notice

All information products included in http://ics-cert.us-cert.gov 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 http://www.us-cert.gov/tlp/.

1. EXECUTIVE SUMMARY

    CVSS v3 10.0
    ATTENTION: Exploitable remotely/low skill level to exploit
    Vendor: Martem
    Equipment: TELEM-GW6/GWM

    Vulnerabilities: Missing Authentication for Critical Function, Resource 
Exhaustion, Cross-Site Scripting

2. RISK EVALUATION

Successful exploitation of these vulnerabilities could allow execution of 
unauthorized industrial process control commands, denial of service, or 
client-side code execution.

3. TECHNICAL DETAILS

3.1 AFFECTED PRODUCTS

The following TELEM products with insecure configurations are affected:

    GW6 Version 2018.04.18-linux_4-01-601cb47 and prior, and
    GWM Version 2018.04.18-linux_4-01-601cb47 and prior.

3.2 VULNERABILITY OVERVIEW

3.2.1 MISSING AUTHENTICATION FOR CRITICAL FUNCTION CWE-306

The RTU does not perform authentication of IEC-104 control commands, which may
allow a rogue node a remote control of the industrial process.

CVE-2018-10603 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:L).

3.2.2 UNCONTROLLED RESOURCE CONSUMPTION ('RESOURCE EXHAUSTION') CWE-400

Creating new connections to one or more IOAs, without closing them properly, 
may cause a denial of service within the industrial process control channel.

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

3.2.3 IMPROPER NEUTRALIZATION OF INPUT DURING WEB PAGE GENERATION ('CROSS-SITE
SCRIPTING') CWE-79

Improper sanitization of data over a Websocket may allow cross-site scripting
and client-side code execution with target user privileges.

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

3.3 BACKGROUND

    Critical Infrastructure Sectors: Energy
    Countries/Areas Deployed: Estonia, Latvia, Lithuania, and Finland
    Company Headquarters Location: Estonia

3.4 RESEARCHER

Bernhards Blumbergs and Arturs Danilevics of CERT.LV, Latvia, reported these 
vulnerabilities to NCCIC.

4. MITIGATIONS

Martem has provided updated information within the Security Considerations 
section of their Configuration Manual which can be accessed at following link:

http://phobos.martem.ee/shr/dsum/Telem-GWS_usermanual.pdf

Martem recommends the following mitigations for CVE-2018-10603 and 
CVE-2018-10607:

In most cases, these vulnerabilities can be resolved by proper configuration:

Using "other side IP" field in RTU configuration for every TCP/IP channel.
This will minimize the risk of allowing unauthorized access and control over 
the communication channels (i.e., only trusted partners are allowed);

Using secure VPN channels;

Proper packet filtering by enabling firewall in RTU configuration. Note 
that the "interface" field of every communication channel must be properly set
in RTU configuration when firewall is enabled.

Martem recommends the following mitigations for CVE-2018-10609:

Upgrade to firmware 2.0.73 or higher. Fixed firmware will be available 
after 23.05.2018. Contact Martem for more information;

WebServer should be turned on according to need of the configurator. If 
the WebServer is not needed anymore, then it should be removed from the 
configuration;

WebServer access should be protected by strong password to avoid 
unauthorized access. Other side IP should be defined in configuration. Use 
firewall to avoid untrusted connections and to restrict the number of parallel
connections to the WebServer.

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

Minimize network exposure for all control system devices and/or systems, 
and ensure that they are not accessible from the Internet.

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

NCCIC also provides a section for control systems security recommended 
practices on the ICS-CERT web page. 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-CERT website 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 NCCIC for 
tracking and correlation against other incidents.

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

Do not click web links or open unsolicited attachments in email messages.

Refer to Recognizing and Avoiding Email Scams for more information on 
avoiding email scams.

Refer to Avoiding Social Engineering and Phishing Attacks for more 
information on social engineering attacks.

No known public exploits specifically target these vulnerabilities.

- --------------------------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

iQIVAwUBWwTK+4x+lLeg9Ub1AQggag//VunvI/E+xVM29eJ5QojiKiLqhngLziZc
U3Dv008F8xry1n6OsnahLkUp/4ppyF2wZgbsZ2Lygadz46t+tag1pvWNiWDyXEPh
RX5qpqVQww4AQwdcC/Q2S+WhFaCbmTqjEtyGLQBNtD8kIDmHIZxiQyLfSOkkzP5K
/P9/NV1Hw9wcq06SPedfTekqyXJxoJUAPWaqG2SqB7P9WeJIkUnaKTRvH6ipkYAP
t92QAYCZ1tdwd07qSefhG/l0y2Zc6f0mBn6TcXAAbTMqmOqml2B+BaHAdmDZMiqx
RjYjbOn430xoduH84ptGajOuCuT5lYnET4RTMQQWkBBjX+lo+hwx5nGwurGzIzme
N/V1APFQ35AxFjVgaFiQ798LSy0F/QchYO5S0RzZa6ufF8/GV9Xxysks9KoOVxzv
n2e2RAJQaB31ixb/wb+UgsT7X5zc3mAi+W/ZCY8iHnTV0t+nOg0LU0W8j3/keddh
DbMKvVIms2AmLDU/9gMpBgxFnDDvQbLxm0lfKQ1a0Le7VAAcjOVmipGMI1tHY1dX
7fNm8MP3sua/VS6fsoACaauww0z2SI5uLD4QXMA7dE3mhi9GcQ4SMchDD+DoIwY0
LXV0XyNVTNMyOjuCxDBaBlblrZ8WecN7lFJnACxvSkJp1VZxqO6RPNqvqZdRf4Pn
+hHVvY0zCuQ=
=KUky
-----END PGP SIGNATURE-----