3S-Smart Software Solutions GmbH CODESYS Web Server
ICSA： ICS Advisory (ICSA-17-087-02)
CVSS v3 9.8
ATTENTION: Remotely exploitable/low skill level to exploit.
Vendor: 3S-Smart Software Solutions GmbH
Equipment: CODESYS Web Server
Vulnerabilities: Arbitrary File Upload, Stack Buffer Overflow
The following versions of CODESYS Web Server, part of the CODESYS WebVisu web browser visualization software, are affected:
- CODESYS Web Server Versions 2.3 and prior.
Successful exploitation of these vulnerabilities could allow arbitrary files to be uploaded to the CODESYS Web Server without authorization. Additionally, an attacker may be able to crash the application or execute arbitrary code.
3S-Smart Software Solutions GmbH recommends that device manufacturers who program their devices with CODESYS refer to the device directory to determine if they may be affected. The device directory can be found at the following location:
3S-Smart Software Solutions GmbH recommends that users register for an account and download patch V.220.127.116.11 from the following location:
NCCIC/ICS-CERT recommends that 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.
ICS-CERT reminds organizations to perform proper impact analysis and risk assessment prior to deploying defensive measures.
ICS-CERT 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 ICS‑CERT 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 ICS-CERT for tracking and correlation against other incidents.
No known public exploits specifically target these vulnerabilities.
A specially crafted web server request may allow the upload of arbitrary files to the CODESYS Web Server without authorization which may allow remote code execution.
A malicious user could overflow the stack buffer by providing overly long strings to functions that handle the XML. Because the function does not verify string size before copying to memory, the attacker may then be able to crash the application or run arbitrary code.
David Atch of CyberX discovered the vulnerabilities and has tested the patch.
Critical Infrastructure Sector(s): Critical Manufacturing, Energy
Countries/Areas Deployed: Worldwide
Company Headquarters Location: Kempten, Germany