Operating System:

[Appliance]

Published:

09 September 2020

Protect yourself against future threats.

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

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

                               ESB-2020.3076
             Advisory (icsa-20-203-01) Wibu-Systems CodeMeter
                             9 September 2020

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

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

Product:           Wibu-Systems CodeMeter
Publisher:         US-CERT
Operating System:  Network Appliance
Impact/Access:     Execute Arbitrary Code/Commands -- Remote/Unauthenticated      
                   Denial of Service               -- Remote/Unauthenticated      
                   Modify Arbitrary Files          -- Existing Account            
                   Create Arbitrary Files          -- Remote with User Interaction
                   Access Confidential Data        -- Remote/Unauthenticated      
                   Reduced Security                -- Remote/Unauthenticated      
Resolution:        Patch/Upgrade
CVE Names:         CVE-2020-16233 CVE-2020-14519 CVE-2020-14517
                   CVE-2020-14515 CVE-2020-14513 CVE-2020-14509

Original Bulletin: 
   https://us-cert.cisa.gov/ics/advisories/icsa-20-203-01

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

ICS Advisory (ICSA-20-203-01)

Wibu-Systems CodeMeter

Original release date: September 08, 2020

Legal Notice

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



1. EXECUTIVE SUMMARY

  o CVSS v3 10.0
  o ATTENTION: Exploitable remotely/low skill level to exploit
  o Vendor: Wibu-Systems AG
  o Equipment: CodeMeter
  o Vulnerabilities: Buffer Access with Incorrect Length Value, Inadequate
    Encryption Strength, Origin Validation Error, Improper Input Validation,
    Improper Verification of Cryptographic Signature, Improper Resource
    Shutdown or Release

2. REPOSTED INFORMATION

This advisory was originally posted to the HSIN ICS library on July 21, 2020,
and is now being released to the ICS webpage on us-cert.gov.

3. RISK EVALUATION

Successful exploitation of these vulnerabilities could allow an attacker to
alter and forge a license file, cause a denial-of-service condition,
potentially attain remote code execution, read heap data, and prevent normal
operation of third-party software dependent on the CodeMeter.

4. TECHNICAL DETAILS

4.1 AFFECTED PRODUCTS

4.2 VULNERABILITY OVERVIEW

4.2.1 BUFFER ACCESS WITH INCORRECT LENGTH VALUE CWE-805

Multiple memory corruption vulnerabilities exist where the packet parser
mechanism does not verify length fields. An attacker could send specially
crafted packets to exploit these vulnerabilities.

CVE-2020-14509 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 ).

4.2.2 INADEQUATE ENCRYPTION STRENGTH CWE-326

Protocol encryption can be easily broken and the server accepts external
connections, which may allow an attacker to remotely communicate with the
CodeMeter API.

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

4.2.3 ORIGIN VALIDATION ERROR CWE-346

This vulnerability allows an attacker to use the internal WebSockets API via a
specifically crafted Java Script payload, which may allow alteration or
creation of license files when combined with CVE-2020-14515.

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

4.2.4 IMPROPER INPUT VALIDATION CWE-20

CodeMeter and the software using it may crash while processing a specifically
crafted license file due to unverified length fields.

CVE-2020-14513 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:N/A:H ).

4.2.5 IMPROPER VERIFICATION OF CRYPTOGRAPHIC SIGNATURE CWE-347

There is an issue in the license-file signature checking mechanism, which
allows attackers to build arbitrary license files, including forging a valid
license file as if it were a valid license file of an existing vendor. Only
CmActLicense update files with CmActLicense Firm Code are affected.

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

4.2.6 IMPROPER RESOURCE SHUTDOWN OR RELEASE CWE-404

An attacker could send a specially crafted packet that could have the server
send back packets containing data from the heap.

CVE-2020-16233 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 ).

4.3 BACKGROUND

  o CRITICAL INFRASTRUCTURE SECTORS: Multiple
  o COUNTRIES/AREAS DEPLOYED: Worldwide
  o COMPANY HEADQUARTERS LOCATION: Germany

4.4 RESEARCHER

Sharon Brizinov and Tal Keren of Claroty reported these vulnerabilities to
CISA.

5. MITIGATIONS

Wibu-Systems recommends the following:

  o Update to the latest version of the CodeMeter Runtime.
  o Run CodeMeter only as client.
  o Utilize the new REST API instead of the internal WebSockets API.
  o Disable the WebSockets API.
  o Apply AxProtector.

For more information please see Wibu-Systems' security advisories:

  o Deutsch: https://www.wibu.com/de/support/security-advisories.html
  o English: https://www.wibu.com/en/support/security-advisories.html

For more information on products dependent on the affected CodeMeter see the
following vendor security advisories:

  o Rockwell: https://rockwellautomation.custhelp.com/app/answers/answer_view/
    a_id/1127863
  o Siemens: SSA-455843

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

iQIVAwUBX1hbQ+NLKJtyKPYoAQhMOA/+IEw7xol5Q56rICuMMygZYA2rG5m8c//l
H/Wvz8L999bDpPPXg5MifBu/4jo7MjvtypSvp1jN1neSBbOzlewfub/y3pAsj6wy
zLg0EBVvNRpSMjfwW+/Lk/okn1L82GmMca8YaNDy6SFexDChv/k7ct7co2+ploCS
6e2td1OHFs6/MUYBJjjB9Y5wilAw3txsfklRyd5JtRi97YwU3B/F+eudnLJHesi9
/s0E8I/NgLD6RVjn7tn/0uv2b9VrJ738BrNwBEpULyG4/MXoR/Kwc3Hlo9lIeDFG
2S79ilmtuGUnYvB6OU3GHAOdF90XqTec1qvxjh+gEJthw/yKgipR0F5TyPxlXQMN
/ngidrNMp4dd8flxlF04qSZL5vTe6+c9q77YbEvN/wtOm5DaiXDshUARcl7PHijg
RYYQgWRDCIfBsZw8RGZ2l2VFqtnltcJD6+3DZjyeSqTHuyp2AiVkbI0F4BGFj2dp
sWpAz5JIpjDwcVBZ51eFfJ+LASA93ALZR2nDkbxc9lF5MqUioJwhd4NRtU2O92o3
yRSylt1iC8ZnLNCWhTwV/xjOG3CugOwA78j4C03QEf/oNEbKgYvEFletxumbD9mp
IUTPtj3jRPJOmFkt0ttU9Np3/MyYUq2mO25s2GKwx6AEy32lwFACgnY0Or4DjIHA
UFHD6ALIiB8=
=L9uM
-----END PGP SIGNATURE-----