Lucene search

K
zdtGerhard Hechenberger1337DAY-ID-36970
HistoryNov 01, 2021 - 12:00 a.m.

CODESYS 2.4.7.0 Denial Of Service Exploit

2021-11-0100:00:00
Gerhard Hechenberger
0day.today
231

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P

0.076 Low

EPSS

Percentile

94.0%

=======================================================================
              title: CODESYS V2 Denial of Service
            product: CODESYS Runtime Toolkit 32-bit, CODESYS PLCWinNT
 vulnerable version: <V2.4.7.56
      fixed version: V2.4.7.56
         CVE number: CVE-2021-34593
             impact: High
           homepage: https://www.codesys.com/
              found: 2021-05-05
                 by: SEC Consult Vulnerability Lab
                     This vulnerability was discovered during the research
                     cooperation initiative "OT Cyber Security Lab" between
                     Verbund AG and SEC Consult Group.
                     Gerhard Hechenberger (Office Vienna)
                     Steffen Robertz (Office Vienna)

                     An integrated part of SEC Consult, an Atos company
                     Europe | Asia | North America

                     https://www.sec-consult.com

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

Vendor description:
-------------------
"CODESYS is the leading manufacturer-independent IEC 61131-3 automation
software for engineering control systems."

Source: https://www.codesys.com/


Business recommendation:
------------------------
The vendor provides patches. The vendors of products using the affected
software should provide new firmware versions immediately. Users of these
products should update their devices to those fixed firmware versions.


Vulnerability overview/description:
-----------------------------------
The CODESYS Control runtime system is the core of many PLCs. The runtime is
accepting TCP connections on a pre-configured port to connect to the
development system. By sending requests that define an invalid packet size,
a memory allocation error can be triggered. This leads to a denial of service
condition of the remote connectivity of the CODESYS service, which prevents
clients from connecting to the affected PLC.

CODESYS released a dedicated security note, which corresponds to this advisory:
https://customers.codesys.com/index.php?eID=dumpFile&t=f&f=16877&token=8faab0fc1e069f4edfca5d5aba8146139f67a175


Proof of concept:
-----------------
A detailed proof of concept will be made public after the affected product
vendors had time to provide new firmware versions.


Vulnerable / tested versions:
-----------------------------
2.4.7.0


Vendor contact timeline:
------------------------
2021-05-25: Contacting 3rd party vendor of a product using the CODESYS runtime
            about this issue.
2021-08-11: Vendor states that this issue was already fixed in a recent CODESYS
            release.
2021-08-18: A check on the product's most recent public firmware release
            shows that the vulnerability still exists. The vendor is notified
            again about this outcome.
2021-09-01: The vendor confirms and ensures the issue is investigated in
            collaboration with CODESYS.
2021-10-15: CODESYS informs about the assigned CVE-2021-34593 and the planned
            publishing date.
2021-10-28: Coordinated release.


Solution:
---------
Immediately update to the patched version of CODESYS.


Workaround:
-----------
To mitigate this issue, access to the CODESYS service port of the affected
devices should be limited as far as possible. In the long run, the updated
firmware of the product vendor containing a patched CODESYS service must be
installed.

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P

0.076 Low

EPSS

Percentile

94.0%

Related for 1337DAY-ID-36970