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

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

                               ESB-2019.1472
      Advisory (ICSA-19-120-01) Rockwell Automation CompactLogix 5370
                                1 May 2019

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

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

Product:           Rockwell Automation CompactLogix
Publisher:         ICS-CERT
Operating System:  Network Appliance
Impact/Access:     Execute Arbitrary Code/Commands -- Remote/Unauthenticated
                   Denial of Service               -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2019-10954 CVE-2019-10952 

Original Bulletin: 
   https://ics-cert.us-cert.gov/advisories/ICSA-19-120-01

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

Advisory (ICSA-19-120-01)

Rockwell Automation CompactLogix 5370

Original release date: April 30, 2019

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

  o CVSS v3 8.6
  o ATTENTION: Exploitable remotely/low skill level to exploit
  o Vendor: Rockwell Automation
  o Equipment: CompactLogix 5370
  o Vulnerabilities: Uncontrolled Resource Consumption, Stack-based Buffer
    Overflow

2. RISK EVALUATION

Successful exploitation of these vulnerabilities could allow a remote attacker
to render the web server unavailable and/or place the controller in a major
non-recoverable faulted state (MNRF).

3. TECHNICAL DETAILS

3.1 AFFECTED PRODUCTS

The following versions of CompactLogix 5370, a programmable automation
controller, are affected:

  o CompactLogix 5370 L1 controllers Version 20 to 30.014 and earlier
  o CompactLogix 5370 L2 controllers Versions 20 to 30.014 and earlier
  o CompactLogix 5370 L3 controllers Versions 20 to 30.014 and earlier
  o Compact GuardLogix 5370 controllers Versions 20 to 30.014 and earlier
  o Armor Compact GuardLogix 5370 controllers, Versions 20 to 30.014 and
    earlier

3.2 VULNERABILITY OVERVIEW

3.2.1 UNCONTROLLED RESOURCE CONSUMPTION CWE-400

An attacker could send a crafted HTTP/HTTPS request to render the web server
unavailable and/or lead to remote code execution caused by a stack-based buffer
overflow vulnerability. A cold restart is required for recovering the system.

CVE-2019-10952 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:L/PR:N/UI:N/S:U/C:N/I:N/A:L ).

3.2.2 STACK-BASED BUFFER OVERFLOW CWE-121

An attacker could send crafted SMTP packets to cause a denial-of-service
condition where the controller enters a major non-recoverable faulted state
(MNRF).

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

3.3 BACKGROUND

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

3.4 RESEARCHER

Younes Dragoni of Nozomi Networks reported CVE-2019-10952to NCCIC. George
Lashenko of CyberX reported CVE-2019-10954 to NCCIC.

4. MITIGATIONS

Rockwell recommends the following:

  o Rockwell Automation strongly encourages users to apply the latest available
    version of firmware to keep up to date with the latest features, anomaly
    fixes, and security improvements. Update to a version of firmware as listed
    below that mitigates the associated risk:

Apply FRN 31.011 or later from: 
https://compatibility.rockwellautomation.com/Pages/MultiProductDownload.aspxKeyword=5370&crumb=112

  o For EtherNet/IP-based vulnerabilities (ID 1-14), block all traffic to and
    from outside the Manufacturing Zone by blocking or restricting access to
    Port 2222/TCP/UDP and Port 44818/TCP/UDP using proper network
    infrastructure controls, such as firewalls, UTM devices, or other security
    appliances. For more information on TCP/UDP ports used by Rockwell
    Automation Products, see Knowledgebase Article ID 898270 (login required).
       Stratix users can use Device Manager or Studio 5000 Logix Designer to
        configure access control lists (ACL) to block/restrict ports. See
        section "Access Control Lists" in Stratix Managed Switches User Manual,
        publication 1783-UM007 , for detailed instructions.
  o For web-based vulnerabilities (ID 15-17), block all traffic from outside
    the Manufacturing Zone by blocking or restricting access to Port 80/443/
    TCP.
       Stratix users can use Device Manager or Studio 5000 Logix Designer to
        configure ACL's to block/restrict ports. See section "Access Control
        Lists" in Stratix Managed Switches User Manual, publication 1783-UM007 
        , for detailed instructions.
  o Utilize proper network infrastructure controls, such as firewalls, to help
    ensure that SMTP packets from unauthorized sources are blocked.
  o Consult the product documentation for specific features, such as a hardware
    key-switch setting, which may be used to block unauthorized changes, etc.
  o Use trusted software, software patches, and antivirus/antimalware programs
    and interact only with trusted websites and attachments.
  o Minimize network exposure for all control system devices and/or systems,
    and ensure they are not accessible from the Internet. For further
    information about the risks of unprotected Internet accessible control
    systems, please see Knowledgebase Article ID 494865 (login required).
  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 a VPN
    is only as secure as the connected devices.

For more information please refer to Rockwell's Security Advisory: 
https://rockwellautomation.custhelp.com/app/answers/detail/a_id/1075979 
(login required)

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

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.

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

iQIVAwUBXMjwt2aOgq3Tt24GAQg5Sw/+NLhQRIQHV5ThgZuQDGqq99jKPuuN5eTn
s+eA0AlYqRWP8OXTbH8H6F1U7Ga8uaz+OAKaRCsPAyKSiJDZ6HykVvi1Fo/eLnb9
DDLkb/kyWQS3FVDyuulLnNacDTpJ/jM3p4ZGCWCzHAcJxQ7yUb/lc8pzaku10Opo
EDTGsdomt2Pje+bRE1e1Un6oI4LAxGCYyYK2xmims5/ZGwcYljT4leXQY6XkUzdY
74SsiuqC6CbVH4NjLWBVwt0kLPwi9q5KqVyfKdze/zqhoi2Q2/QGfkb80GRc22Z0
6iTJIhx+P4EXP9znixQtgSBMLDi+uNgpg5bc0+lnVKB9JWAuRNrFjitmMCXU5EzK
/82Xurxmb8cUr3/bXo+5KbUXoMpYtubf5kW5Z1zF3PVqoVTl+g8BLX9+rLBGO7kn
nhp9AumuMV8B4C2GrGU5vUQh/aQ0lCwQ/0NC1lQtq7iBkeloQ0I2uS2/+HxyGRCn
Jfx0EiCdfbnBzXW7SDWLnMRlFHpR+C8Uh0Kff0EhmPsAgmddnhQ/Yad5cxv9l7N1
+69Abdpt0h+2LHczlkNMXu2uJF6qnTQ3x02dsxgHO09VFmYscdkPEuUPwIwpZJ5H
8Lf4ORSmyjljN9zyL0TOlrztJ7CToRA/vNxsLtVspprAIG2gNAK0pK7q4RuO0vjh
kXdSCI8qCS0=
=KsWg
-----END PGP SIGNATURE-----