3S-Smart Software Solutions GmbH CODESYS Web Server
ICSA： ICS Advisory (ICSA-18-032-02)
CVSS v3 9.8
ATTENTION: Remotely exploitable/low skill level to exploit.
Vendor: 3S-Smart Software Solutions GmbH
Equipment: CODESYS Web Server
Vulnerability: Stack-based Buffer Overflow
All Microsoft Windows (also WinCE) based CODESYS web servers running stand-alone Version 2.3, or as part of the CODESYS runtime system running prior to Version V188.8.131.52, are affected.
Successful exploitation of this vulnerability could cause the device the attacker is accessing to crash, resulting in a buffer overflow condition that may allow remote code execution.
This vulnerability will be fixed by patch V.184.108.40.206 for the CODESYS V2.3 web server for Windows. This will be part of the CODESYS setup V220.127.116.11. The release of this security patch was made available on January 30, 2018.
Currently, 3S-Smart Software Solutions GmbH has not identified any workarounds for this vulnerability.
In general, 3S-Smart Software Solutions GmbH recommends the following defensive measures to reduce the risk of exploitation of this vulnerability:
- Use controllers and devices only in a protected environment to minimize network exposure and ensure they are not accessible from outside.
- Use firewalls to protect and separate the control system network from other networks.
- Use VPN (Virtual Private Networks) tunnels if remote access is required.
- Protect both development and control systems from unauthorized access (e.g., by means of the operating system).
- Protect both development and control system by using up-to-date virus detecting solutions.
For additional information regarding the CODESYS products, or about the described vulnerability, please contact the 3S-Smart Software Solutions support team at this location:
For additional information find the CODESYS Security update at the following location:
For more information and general recommendations for protecting machines and manufacturing facilities, see the CODESYS Security whitepaper available at this location:
NCCIC recommends users take defensive measures to minimize the risk of exploitation of these vulnerabilities. Specifically, users should:
- Minimize network exposure for all control system devices and/or systems, and ensure that they are not accessible from 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 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 in the NCCIC Technical Information Paper, ICS-TIP-12-146-01B--Targeted Cyber Intrusion Detection and Mitigation Strategies, that is available for download from the ICS-CERT web site.
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 this vulnerability.
A crafted request may cause a buffer overflow and could therefore execute arbitrary code on the web server or lead to a denial-of-service condition due to a crash in the web server.
Zhu WenZhe of Istury IOT security lab reported this vulnerability to NCCIC.
Critical Infrastructure Sectors: Critical Manufacturing, Energy
Countries/Areas Deployed: Worldwide
Company Headquarters Location: Kempten, Germany