U.S. Flag Official website of the Department of Homeland Security
U.S. Department of Homeland Security Seal. ICS-CERT. Industrial Control Systems Cyber Emergency Response Team.
TLP:WHITE

Advisory (ICSA-12-006-01)

3S CoDeSys Vulnerabilities

Original release date: January 05, 2012 | Last revised: September 06, 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/.



Overview

This advisory is a follow-up to the alert update, ICS-ALERT-11-336-01A 3S CoDeSys Vulnerabilities, which was released on the ICS-CERT Web page on December 02, 2011.

Security researcher Celil Unuver (SignalSec LLC) and independent researcher Luigi Auriemma have identified vulnerabilities in the 3S Smart Software Solutions CoDeSys product, summarized in the following table. Mr. Auriemma publicly disclosed the five vulnerabilities along with proof-of-concept (PoC) exploit code, including the vulnerability previously coordinated with ICS-CERT by Celil Unuver, without coordination with 3S Smart Software Solutions, ICS-CERT, or any other coordinating entity known to ICS-CERT.

ICS-CERT has coordinated these vulnerabilities with 3S Smart Software Solutions, and they have produced new versions for both CoDeSys V3 and V2.3 that mitigate these vulnerabilities. Mr. Auriemma has confirmed that the new versions fully resolve the reported vulnerabilities.

ResearcherVulnerabilityCoordinated/UnanticipatedCVE
Luigi AuriemmaInteger OverflowUnanticipatedCVE-2011-5008
Luigi Auriemma
Celil Unuver
Stack OverflowUnanticipated
Coordinated

CVE-2011-5007
Luigi AuriemmaContent-Length NULL PointerUnanticipatedCVE-2011-5009
Luigi AuriemmaContent-Length NULL PointerUnanticipated
CVE-2011-5009
Luigi AuriemmaInvalid HTTP Request NULL PointerUnanticipated
CVE-2011-5009
Luigi AuriemmaFolders CreationUnanticipated
None

Affected Products

The following 3S Smart Software Solutions CoDeSys versions are affected:

  • Version 2.3
  • Version 3.4.

Impact

Successful exploitation of these vulnerabilities may allow an attacker to cause a denial of service (DoS) or to execute arbitrary code.

Impact to individual organizations depends on many factors that are unique to each organization. ICS-CERT recommends that organizations evaluate the impact of these vulnerabilities based on their operational environment, architecture, and product implementation.

Background

CoDeSys is produced by 3S Smart Software Solutions GmgH based in Germany. According to the 3S Smart Software Solutions website.

CoDeSys is used across several sectors of the automation industry by manufacturers of industrial controllers or intelligent automation devices and by end users in different industries including system integrators who offer automation solutions using CoDeSys.

Vulnerability Characterization

Vulnerability Overview

Integer Overflow

An attacker could exploit this vulnerability by sending specially crafted packets to Port 1217/TCP.

CVE-2011-5008 has been assigned to this vulnerability.

Stack Overflow

An attacker could exploit this vulnerability by sending an overly long URL to Port 8080/TCP.

CVE-2011-5007 has been assigned to this vulnerability.

Content-Length Null Pointer

An attacker could exploit this vulnerability by sending a specially crafted Content-Length header to Port 8080/TCP.

CVE-2011-5009 has been assigned to this vulnerability.

Invalid HTTP Request Null Pointer

An attacker could exploit this vulnerability by sending a request with an unknown HTTP method to Port 8080/TCP.

CVE-2011-5009 has been assigned to this vulnerability.

Folders Creation

An attacker could exploit this vulnerability by sending a web request containing a nonexistent directory to Port 8080/TCP. Exploitation of this vulnerability results in the creation of arbitrary directories.

Vulnerability Details

Exploitability

These vulnerabilities are remotely exploitable.

Existence of Exploit

Public exploits are known to target this vulnerability.

Difficulty

An attacker with a low skill level can create the DoS, whereas it would require a more skilled attacker to execute arbitrary code.

Mitigation

3S Smart Software Solutions has developed a new version of CoDeSys that resolves these vulnerabilities (V3.5 and V2.3.9.32). Customers can download the new versions for CoDeSys from the 3S Smart Software Solutions customer download website.

ICS-CERT encourages asset owners to take additional defensive measures to protect against this and other cybersecurity risks.

  • Minimize network exposure for all control system devices. Critical devices should not directly face the Internet.
  • Locate control system networks and remote devices behind firewalls, and isolate them from the business network.
  • When remote access is required, use secure methods, such as Virtual Private Networks (VPNs), recognizing that VPN is only as secure as the connected devices.

The Control Systems Security Program (CSSP) also provides a section for control system security recommended practices on the CSSP web page. Several recommended practices are available for reading and download, including Improving Industrial Control Systems Cybersecurity with Defense-in-Depth Strategies.  ICS-CERT reminds organizations to perform proper impact analysis and risk assessment prior to taking defensive measures.

Organizations observing any suspected malicious activity should follow their established internal procedures and report their findings to ICS-CERT for tracking and correlation against other incidents.


Contact Information

For any questions related to this report, please contact the NCCIC at:

Email: NCCICCUSTOMERSERVICE@hq.dhs.gov
Toll Free: 1-888-282-0870

For industrial control systems cybersecurity information:  http://ics-cert.us-cert.gov 
or incident reporting:  https://ics-cert.us-cert.gov/Report-Incident?

The NCCIC continuously strives to improve its products and services. You can help by choosing one of the links below to provide feedback about this product.

Was this document helpful?  Yes  |  Somewhat  |  No

Back to Top