ID ZDI-18-1247 Type zdi Reporter rgod of 9SG Security Team - rgod@9sgsec.com Modified 2018-06-22T00:00:00
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 parsing of LQS files. The issue results from the lack of proper validation of user-supplied data, which can result in a read past the end of an allocated object. At attacker can leverage this vulnerability to execute code under the context of the current process.
{"id": "ZDI-18-1247", "bulletinFamily": "info", "title": "LAquis SCADA LQS File Parsing Out-Of-Bounds Read Remote Code Execution Vulnerability", "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 parsing of LQS files. The issue results from the lack of proper validation of user-supplied data, which can result in a read past the end of an allocated object. At attacker can leverage this vulnerability to execute code under the context of the current process.", "published": "2018-10-16T00:00:00", "modified": "2018-06-22T00:00:00", "cvss": {"score": 7.5, "vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P"}, "href": "https://www.zerodayinitiative.com/advisories/ZDI-18-1247/", "reporter": "rgod of 9SG Security Team - rgod@9sgsec.com", "references": ["https://ics-cert.us-cert.gov/advisories/ICSA-18-289-01"], "cvelist": ["CVE-2018-17895"], "type": "zdi", "lastseen": "2020-06-22T11:40:36", "edition": 1, "viewCount": 0, "enchantments": {"dependencies": {"references": [{"type": "cve", "idList": ["CVE-2018-17895"]}, {"type": "zdi", "idList": ["ZDI-18-1260", "ZDI-18-1251", "ZDI-18-1255", "ZDI-18-1253", "ZDI-18-1256"]}, {"type": "ics", "idList": ["ICSA-18-289-01"]}], "modified": "2020-06-22T11:40:36", "rev": 2}, "score": {"value": 3.6, "vector": "NONE", "modified": "2020-06-22T11:40:36", "rev": 2}, "vulnersScore": 3.6}}
{"cve": [{"lastseen": "2020-12-09T20:25:38", "description": "LAquis SCADA Versions 4.1.0.3870 and prior has several out-of-bounds read vulnerabilities, which may allow remote code execution.", "edition": 6, "cvss3": {"exploitabilityScore": 3.9, "cvssV3": {"baseSeverity": "CRITICAL", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "baseScore": 9.8, "privilegesRequired": "NONE", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "userInteraction": "NONE", "version": "3.0"}, "impactScore": 5.9}, "published": "2018-10-17T02:29:00", "title": "CVE-2018-17895", "type": "cve", "cwe": ["CWE-125"], "bulletinFamily": "NVD", "cvss2": {"severity": "HIGH", "exploitabilityScore": 10.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 7.5, "vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "acInsufInfo": false, "impactScore": 6.4, "obtainUserPrivilege": false}, "cvelist": ["CVE-2018-17895"], "modified": "2019-10-09T23:37:00", "cpe": ["cpe:/a:lcds:laquis_scada:4.1.0.3870"], "id": "CVE-2018-17895", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-17895", "cvss": {"score": 7.5, "vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P"}, "cpe23": ["cpe:2.3:a:lcds:laquis_scada:4.1.0.3870:*:*:*:*:*:*:*"]}], "zdi": [{"lastseen": "2020-06-22T11:41:25", "bulletinFamily": "info", "cvelist": ["CVE-2018-17895"], "description": "This vulnerability allows remote attackers to disclose sensitive information 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 read before an allocated buffer. An attacker can leverage this in conjunction with other vulnerabilities to execute code in the context of the current process.", "edition": 1, "modified": "2018-06-22T00:00:00", "published": "2018-10-16T00:00:00", "id": "ZDI-18-1260", "href": "https://www.zerodayinitiative.com/advisories/ZDI-18-1260/", "title": "LAquis SCADA lqs File Parsing Out-Of-Bounds Read Information Disclosure Vulnerability", "type": "zdi", "cvss": {"score": 7.5, "vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P"}}, {"lastseen": "2020-06-22T11:42:29", "bulletinFamily": "info", "cvelist": ["CVE-2018-17895"], "description": "This vulnerability allows remote attackers to disclose sensitive information 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 read past the end of an allocated buffer. An attacker can leverage this in conjunction with other vulnerabilities to execute code in the context of the current process.", "edition": 1, "modified": "2018-06-22T00:00:00", "published": "2018-10-16T00:00:00", "id": "ZDI-18-1255", "href": "https://www.zerodayinitiative.com/advisories/ZDI-18-1255/", "title": "LAquis SCADA LQS File Parsing Out-Of-Bounds Read Information Disclosure Vulnerability", "type": "zdi", "cvss": {"score": 7.5, "vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P"}}, {"lastseen": "2020-06-22T11:42:34", "bulletinFamily": "info", "cvelist": ["CVE-2018-17895"], "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 memory access outside the bounds of an allocated buffer. An attacker can leverage this vulnerability to execute code in the context of the current process.", "edition": 1, "modified": "2018-06-22T00:00:00", "published": "2018-10-16T00:00:00", "id": "ZDI-18-1253", "href": "https://www.zerodayinitiative.com/advisories/ZDI-18-1253/", "title": "LAquis SCADA LQS File Parsing Out-Of-Bounds Read Remote Code Execution Vulnerability", "type": "zdi", "cvss": {"score": 7.5, "vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P"}}, {"lastseen": "2020-06-22T11:42:11", "bulletinFamily": "info", "cvelist": ["CVE-2018-17895"], "description": "This vulnerability allows remote attackers to disclose sensitive information 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 read past the end of an allocated buffer. An attacker can leverage this in conjunction with other vulnerabilities to execute code in the context of the current process.", "edition": 1, "modified": "2018-06-22T00:00:00", "published": "2018-10-16T00:00:00", "id": "ZDI-18-1256", "href": "https://www.zerodayinitiative.com/advisories/ZDI-18-1256/", "title": "LAquis SCADA lqs File Parsing Out-Of-Bounds Read Information Disclosure Vulnerability", "type": "zdi", "cvss": {"score": 7.5, "vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P"}}, {"lastseen": "2020-06-22T11:42:11", "bulletinFamily": "info", "cvelist": ["CVE-2018-17895"], "description": "This vulnerability allows remote attackers to disclose sensitive information 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 parsing of LQS files. The issue results from the lack of proper validation of user-supplied data, which can result in a read past the end of an allocated buffer. An attacker can leverage this in conjunction with other vulnerabilities to execute code in the context of the current process.", "edition": 1, "modified": "2018-06-22T00:00:00", "published": "2018-10-16T00:00:00", "id": "ZDI-18-1251", "href": "https://www.zerodayinitiative.com/advisories/ZDI-18-1251/", "title": "LAquis SCADA LQS File Parsing Out-Of-Bounds Read Information Disclosure Vulnerability", "type": "zdi", "cvss": {"score": 7.5, "vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P"}}], "ics": [{"lastseen": "2020-12-18T03:21:56", "bulletinFamily": "info", "cvelist": ["CVE-2018-17895", "CVE-2018-17893", "CVE-2018-17899", "CVE-2018-17911", "CVE-2018-17901", "CVE-2018-17897"], "description": "## 1\\. EXECUTIVE SUMMARY\n\n * **CVSS v3 7.8**\n\n * **ATTENTION:** Exploitable remotely/low skill level to exploit\n * **Vendor:** LCDS \u2013 Le\u00e3o Consultoria e Desenvolvimento de Sistemas LTDA ME\n * **Equipment:** LAquis SCADA\n * **Vulnerabilities:** Untrusted Pointer Dereference, Out-of-Bounds Read, Integer Overflow to Buffer Overflow, Path Traversal, Out-of-bounds Write, and Stack-based Buffer Overflow\n\n## 2\\. RISK EVALUATION\n\nSuccessful exploitation of these vulnerabilities could allow an attacker to execute arbitrary code, crash the system, or write controlled content to the target system.\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 * Smart Security Manager Versions 4.1.0.3870 and prior.\n\n### 3.2 VULNERABILITY OVERVIEW\n\n### 3.2.1 [UNTRUSTED POINTER DEREFERENCE CWE-822](<https://cwe.mitre.org/data/definitions/822.html>)\n\nAn untrusted pointer dereference vulnerability has been identified, which may allow remote code execution. \n\n[CVE-2018-17893](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-17893>) has been assigned to this vulnerability. A CVSS v3 base score of 5.6 has been calculated; the CVSS vector string is [(AV:N/AC:H/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:H/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\nSeveral out-of-bounds read vulnerabilities have been identified, which may allow remote code execution. \n\n[CVE-2018-17895](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-17895>) has been assigned to these vulnerabilities. A CVSS v3 base score of 7.3 has been calculated; the CVSS vector string is [(](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-17895>)[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>)[)](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-17895>).\n\n### 3.2.3 [INTEGER OVERFLOW TO BUFFER OVERFLOW CWE-680](<https://cwe.mitre.org/data/definitions/680.html>)\n\nSeveral integer overflow to buffer overflow vulnerabilities have been identified, which may allow remote code execution. \n\n[CVE-2018-17897](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-17897>) has been assigned to these vulnerabilities. A CVSS v3 base score of 5.6 has been calculated; the CVSS vector string is [(AV:N/AC:H/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:H/PR:N/UI:N/S:U/C:L/I:L/A:L>).\n\n### 3.2.4 [IMPROPER LIMITATION OF A PATHNAME TO A RESTRICTED DIRECTORY ('PATH TRAVERSAL') CWE-22](<https://cwe.mitre.org/data/definitions/22.html>)\n\nA path traversal vulnerability has been identified, which may allow remote code execution. \n\n[CVE-2018-17899](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-17899>) 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.5 [OUT-OF-BOUNDS WRITE CWE-787](<https://cwe.mitre.org/data/definitions/787.html>)\n\nWhen processing project files the application fails to sanitize user input prior to performing write operations on a stack object, which may allow an attacker to execute code under the current process. \n\n[CVE-2018-17901](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-17901>) has been assigned to this vulnerability. A CVSS v3 base score of 5.3 has been calculated; the CVSS vector string is [(AV:L/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:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L>).\n\n### 3.2.6 [STACK-BASED BUFFER OVERFLOW CWE-121](<https://cwe.mitre.org/data/definitions/121.html>)\n\nSeveral stack-based buffer overflow vulnerabilities have been identified, which may allow remote code execution. \n\n[CVE-2018-17911](<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-17911>) has been assigned to these vulnerabilities. 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.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\nMat Powell of Trend Micro Zero Day Initiative, rgod of 9SG Security Team, Esteban Ruiz (mr_me) of Source Incite, b0nd @garage4hackers, and Ashraf Alharbi (Ha5ha5hin) working with Trend Micro\u2019s Zero Day Initiative reported these vulnerabilities to NCCIC.\n\n## 4\\. MITIGATIONS\n\nLCDS recommends that users update to Version 4.1.0.4114, which can be found at the following location:\n\n<http://laquisscada.com/instale1.php>\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\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-18-289-01>); we'd welcome your feedback.\n", "edition": 13, "modified": "2019-01-15T00:00:00", "published": "2018-10-16T00:00:00", "id": "ICSA-18-289-01", "href": "https://www.us-cert.gov//ics/advisories/ICSA-18-289-01", "title": "LCDS - Le\u00e3o Consultoria e Desenvolvimento de Sistemas Ltda ME LAquis SCADA", "type": "ics", "cvss": {"score": 7.5, "vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P"}}]}