ID CVE-2018-19002 Type cve Reporter cve@mitre.org Modified 2019-10-09T23:37:00
Description
LCDS Laquis SCADA prior to version 4.1.0.4150 allows improper control of generation of code when opening a specially crafted project file, which may allow remote code execution, data exfiltration, or cause a system crash.
{"zdi": [{"lastseen": "2020-06-22T11:40:11", "bulletinFamily": "info", "cvelist": ["CVE-2018-19002"], "description": "This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of LAquis SCADA Software. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of LQS files. The issue results from the lack of proper validation of user-supplied data, which can result in a controlled call to VirtualProtect. An attacker can leverage this vulnerability to execute code in the context of the aq process.", "edition": 1, "modified": "2019-06-22T00:00:00", "published": "2019-01-19T00:00:00", "id": "ZDI-19-097", "href": "https://www.zerodayinitiative.com/advisories/ZDI-19-097/", "title": "LAquis SCADA LQS File Parsing Improper Control of Generation of Code Remote Code Execution Vulnerability", "type": "zdi", "cvss": {"score": 8.3, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:C"}}], "ics": [{"lastseen": "2020-12-18T03:22:04", "bulletinFamily": "info", "cvelist": ["CVE-2018-19004", "CVE-2018-18986", "CVE-2018-18996", "CVE-2018-19002", "CVE-2018-18998", "CVE-2018-19000", "CVE-2018-19029", "CVE-2018-18992", "CVE-2018-18990", "CVE-2018-18988", "CVE-2018-18994"], "description": "## 1\\. EXECUTIVE SUMMARY\n\n * **CVSS v3 7.8**\n\n * **ATTENTION:** Exploitable remotely/low skill level to exploit\n * **Vendor:** LCDS - Le\u00e3o Consultoria e Desenvolvimento de Sistemas Ltda ME\n * **Equipment:** LAquis SCADA\n * **Vulnerabilities:** Improper Input Validation, Out-of-Bounds Read, Code Injection, Untrusted Pointer Dereference, Out-of-Bounds Write, Relative Path Traversal, Injection, Use of Hard-Coded Credentials, Authentication Bypass Using an Alternate Path or Channel\n\n## 2\\. RISK EVALUATION\n\nSuccessful exploitation of these vulnerabilities could allow remote code execution, data exfiltration, or cause a system crash.\n\n## 3\\. TECHNICAL DETAILS\n\n### 3.1 AFFECTED PRODUCTS\n\nThe following versions of LAquis SCADA, an industrial automation software, are affected:\n\n * SCADA 4.1.0.3870\n\n### 3.2 VULNERABILITY OVERVIEW\n\n### 3.2.1 [ IMPROPER INPUT VALIDATION CWE-20](<https://cwe.mitre.org/data/definitions/20.html>)\n\nOpening a specially crafted report format file allows execution of script code, which may allow remote code execution, data exfiltration, or cause a system crash.\n\n[CVE-2018-18988](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-18988>) has been assigned to this vulnerability. A CVSS v3 base score of 7.3 has been calculated; the CVSS vector string is [(AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)](<https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L>).\n\n### 3.2.2 [OUT-OF-BOUNDS READ CWE-125](<https://cwe.mitre.org/data/definitions/125.html>)\n\nOpening a specially crafted project file may cause an out of bounds read, which may allow data exfiltration.\n\n[CVE-2018-19004](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-19004>) has been assigned to this vulnerability. A CVSS v3 base score of 3.3 has been calculated; the CVSS vector string is [(AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N)](<https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N>).\n\n### 3.2.3 [ IMPROPER CONTROL OF GENERATION OF CODE ('CODE INJECTION') CWE-94](<https://cwe.mitre.org/data/definitions/94.html>)\n\nOpening a specially crafted project file may cause improper control of generation of code, which may allow remote code execution, data exfiltration, or cause a system crash.\n\n[CVE-2018-19002](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-19002>) has been assigned to this vulnerability. A CVSS v3 base score of 7.8 has been calculated; the CVSS vector string is [(AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)](<https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H>).\n\n### 3.2.4 [UNTRUSTED POINTER DEREFERENCE CWE-822](<https://cwe.mitre.org/data/definitions/822.html>)\n\nAn attacker using a specially crafted project file can supply a pointer for a controlled memory address, which may allow remote code execution, data exfiltration, or cause a system crash.\n\n[CVE-2018-19029](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-19029>) has been assigned to this vulnerability. A CVSS v3 base score of 7.3 has been calculated; the CVSS vector string is [(AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)](<https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L>).\n\n### 3.2.5 [OUT-OF-BOUNDS WRITE CWE-787](<https://cwe.mitre.org/data/definitions/787.html>)\n\nOpening specially crafted report format file may cause an out of bounds read, which may cause a system crash, allow data exfiltration, or remote code execution.\n\n[CVE-2018-18986](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-18986>) has been assigned to this vulnerability. A CVSS v3 base score of 7.3 has been calculated; the CVSS vector string is [(AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)](<https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L>).\n\n### 3.2.6 [RELATIVE PATH TRAVERSAL CWE-23](<https://cwe.mitre.org/data/definitions/23.html>)\n\nThe issue results from the lack of proper validation of a user-supplied path prior to using it in file operations. An attacker can leverage this vulnerability to disclose sensitive information under the context of the web server process.\n\n[CVE-2018-18990](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-18990>) has been assigned to this vulnerability. A CVSS v3 base score of 5.3 has been calculated; the CVSS vector string is [(AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)](<https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N>).\n\n### 3.2.7 [OUT-OF-BOUNDS READ CWE-125](<https://cwe.mitre.org/data/definitions/125.html>)\n\nOpening specially crafted project file may cause an out of bounds read, which may cause a system crash or allow data exfiltration.\n\n[CVE-2018-18994](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-18994>) has been assigned to this vulnerability. A CVSS v3 base score of 7.3 has been calculated; the CVSS vector string is [(AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)](<https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L>).\n\n### 3.2.8 [IMPROPER NEUTRALIZATION OF SPECIAL ELEMENTS IN OUTPUT USED BY A DOWNSTREAM COMPONENT ('INJECTION') CWE-74](<https://cwe.mitre.org/data/definitions/74.html>)\n\nTaking in user input without proper sanitation may allow an attacker to execute remote code on the server.\n\n[CVE-2018-18992](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-18992>) has been assigned to this vulnerability. A CVSS v3 base score of 6.3 has been calculated; the CVSS vector string is [(AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L)](<https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L>).\n\n### 3.2.9 [IMPROPER NEUTRALIZATION OF SPECIAL ELEMENTS IN OUTPUT USED BY A DOWNSTREAM COMPONENT ('INJECTION') CWE-74](<https://cwe.mitre.org/data/definitions/74.html>)\n\nTaking in user input without proper authorization or sanitation may allow an attacker to execute remote code on the server.\n\n[CVE-2018-18996](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-18996>) has been assigned to this vulnerability. A CVSS v3 base score of 7.3 has been calculated; the CVSS vector string is [(AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)](<https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L>).\n\n### 3.2.10 [USE OF HARD-CODED CREDENTIALS CWE-798](<https://cwe.mitre.org/data/definitions/798.html>)\n\nUse of hard coded credentials may allow an attacker unauthorized access to the system with high-privileges.\n\n[CVE-2018-18998](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-18998>) has been assigned to this vulnerability. A CVSS v3 base score of 7.3 has been calculated; the CVSS vector string is [(AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)](<https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L>).\n\n### 3.2.11 [AUTHENTICATION BYPASS USING AN ALTERNATE PATH OR CHANNEL CWE-288](<https://cwe.mitre.org/data/definitions/288.html>)\n\nAn authentication bypass is possible, which may allow an attacker access to sensitive data.\n\n[CVE-2018-19000](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-19000>) has been assigned to this vulnerability. A CVSS v3 base score of 5.3 has been calculated; the CVSS vector string is [(AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)](<https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N>).\n\n### 3.3 BACKGROUND\n\n * **CRITICAL INFRASTRUCTURE SECTORS:** Chemical, Commercial Facilities, Energy, Food and Agriculture, Transportation Systems, Water and Wastewater Systems\n * **COUNTRIES/AREAS DEPLOYED:** South America\n * **COMPANY HEADQUARTERS LOCATION:** Brazil\n\n### 3.4 RESEARCHER\n\nEsteban Ruiz (mr me) working with Zero Day Initiative reported these vulnerabilities to NCCIC.\n\n## 4\\. MITIGATIONS\n\nLCDS recommends users update to Version 4.1.0.4150 which can be found at the following location:\n\n[https://laquisscada.com](<https://laquisscada.com/>)\n\nNCCIC recommends users take defensive measures to minimize the risk of exploitation of this vulnerability. Specifically, users should:\n\n * Minimize network exposure for all control system devices and/or systems, and ensure that they are not accessible from the Internet.\n * Locate control system networks and remote devices behind firewalls, and isolate them from the business network.\n * 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.\n\nNCCIC reminds organizations to perform proper impact analysis and risk assessment prior to deploying defensive measures. \n \nNCCIC 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.\n\nAdditional mitigation guidance and recommended practices are publicly available on the ICS-CERT website in the Technical Information Paper, ICS-TIP-12-146-01B--Targeted Cyber Intrusion Detection and Mitigation Strategies. \n \nOrganizations observing any suspected malicious activity should follow their established internal procedures and report their findings to NCCIC for tracking and correlation against other incidents.\n\nNCCIC also recommends that users take the following measures to protect themselves from social engineering attacks: \n\n * Do not click web links or open unsolicited attachments in email messages. \n * Refer to Recognizing and Avoiding Email Scams for more information on avoiding email scams. \n * Refer to Avoiding Social Engineering and Phishing Attacks for more information on social engineering attacks.\n\nNo known public exploits specifically target these vulnerabilities.\n\n## \nContact Information\n\nFor any questions related to this report, please contact the CISA at: \n \nEmail: [CISAservicedesk@cisa.dhs.gov](<mailto:cisaservicedesk@cisa.dhs.gov>) \nToll Free: 1-888-282-0870\n\nFor industrial control systems cybersecurity information: https://us-cert.cisa.gov/ics \nor incident reporting: https://us-cert.cisa.gov/report\n\nCISA continuously strives to improve its products and services. You can help by choosing one of the links below to provide feedback about this product.\n\nThis product is provided subject to this Notification and this [Privacy & Use](<https://www.dhs.gov/privacy-policy>) policy.\n\n**Please share your thoughts.**\n\nWe recently updated our anonymous [product survey](<https://surveymonkey.com/r/G8STDRY?product=https://us-cert.cisa.gov/ics/advisories/ICSA-19-015-01>); we'd welcome your feedback.\n", "edition": 13, "modified": "2019-01-15T00:00:00", "published": "2019-01-15T00:00:00", "id": "ICSA-19-015-01", "href": "https://www.us-cert.gov//ics/advisories/ICSA-19-015-01", "title": "LCDS - Le\u00e3o Consultoria e Desenvolvimento de Sistemas Ltda ME LAquis SCADA", "type": "ics", "cvss": {"score": 8.3, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:C"}}]}