Security researcher Celil Unuver (SignalSec LLC) and independent researcher Luigi Auriemma have identified multiple 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.
Researcher: Luigi Auriemma
Vulnerability: Integer Overflow
Coordinated/Unanticipated: Unanticipated
CVE: CVE-2011-5008
Researcher: Luigi Auriemma, Celil Unuver
Vulnerability: Stack Overflow
Coordinated/Unanticipated: Unanticipated, Coordinated
CVE: CVE-2011-5007
Researcher: Luigi Auriemma
Vulnerability: Content-Length NULL Pointer
Coordinated/Unanticipated: Unanticipated
CVE: CVE-2011-5009
Researcher: Luigi Auriemma
Vulnerability: Invalid HTTP Request Null Pointer
Coordinated/Unanticipated: Unanticipated
CVE: CVE-2011-5009
Researcher: Luigi Auriemma
Vulnerability: Folders Creation
Coordinated/Unanticipated: Unanticipated
CVE: 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 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-5009e 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 located at: http://www.3s-software.com/index.shtml?en_download.
The full ICS-CERT advisory can be found here:
Source: http://www.us-cert.gov/control_systems/pdf/ICSA-12-006-01.pdf