ESB-2017.2158 - [Win] Advantech WebAccess: Multiple vulnerabilities 2017-08-30

Printable version
PGP/GPG verifiable version

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2017.2158
   Multiple vulnerabilities have been identified in Advantech WebAccess
                              30 August 2017

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           Advantech WebAccess
Publisher:         ICS-CERT
Operating System:  Windows
Impact/Access:     Execute Arbitrary Code/Commands -- Remote/Unauthenticated      
                   Administrator Compromise        -- Existing Account            
                   Denial of Service               -- Remote with User Interaction
                   Access Confidential Data        -- Remote/Unauthenticated      
                   Reduced Security                -- Remote/Unauthenticated      
Resolution:        Patch/Upgrade
CVE Names:         CVE-2017-12717 CVE-2017-12713 CVE-2017-12711
                   CVE-2017-12710 CVE-2017-12708 CVE-2017-12706
                   CVE-2017-12704 CVE-2017-12702 CVE-2017-12698

Original Bulletin: 
   https://ics-cert.us-cert.gov/advisories/ICSA-17-241-02

- --------------------------BEGIN INCLUDED TEXT--------------------

Advisory (ICSA-17-241-02)

Advantech WebAccess

Original release date: August 29, 2017

Legal Notice

All information products included in http://ics-cert.us-cert.gov are provided
"as is" for informational purposes only. The Department of Homeland Security 
(DHS) does not provide any warranties of any kind regarding any information 
contained within. DHS does not endorse any commercial product or service, 
referenced in this product or otherwise. Further dissemination of this product
is governed by the Traffic Light Protocol (TLP) marking in the header. For 
more information about TLP, see http://www.us-cert.gov/tlp/.

CVSS v3 7.8

ATTENTION: Remotely exploitable/low skill level to exploit.

Vendor: Advantech

Equipment: WebAccess

Vulnerabilities: SQL Injection, Out-of-Bounds Access, Multiple Buffer 
Overflows, Externally Controlled Format String, Improper Authentication, 
Incorrect Permission Assignment for Critical Resource, Incorrect Privilege 
Assignment, Uncontrolled Search Path Element.

AFFECTED PRODUCTS

The following versions of WebAccess, an HMI platform, are affected:

WebAccess versions prior to V8.2_20170817

IMPACT

Successful exploitation of these vulnerabilities may allow remote code 
execution or unauthorized access and could cause the device that the attacker
is accessing to crash.

MITIGATION

Advantech has released a new version of WebAccess to address the reported 
vulnerabilities. Users can download WebAccess Version V8.2_20170817 at the 
following location (registration required):

http://www.advantech.com/industrial-automation/webaccess

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.

In addition, ICS-CERT recommends that users take the following measures to 
protect themselves from social engineering attacks:

Do not click web links or open unsolicited attachments in email messages.

Refer to Recognizing and Avoiding Email Scams for more information on avoiding
email scams.

Refer to Avoiding Social Engineering and Phishing Attacks for more information
on social engineering attacks.

No known public exploits specifically target these vulnerabilities.

VULNERABILITY OVERVIEW

IMPROPER NEUTRALIZATION OF SPECIAL ELEMENTS USED IN AN SQL COMMAND 'SQL 
INJECTION' CWE-89

By submitting a specially crafted parameter, it is possible to inject 
arbitrary SQL statements that could allow an attacker to obtain sensitive 
information.

CVE-2017-12710 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).

IMPROPER RESTRICTION OF OPERATIONS WITHIN THE BOUNDS OF A MEMORY BUFFER 
CWE-119

Researchers have identified multiple vulnerabilities that allow invalid 
locations to be referenced for the memory buffer, which may allow an attacker
to execute arbitrary code or cause the system to crash.

CVE-2017-12708 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).

STACK-BASED BUFFER OVERFLOW CWE-121

Researchers have identified multiple vulnerabilities where there is a lack of
proper validation of the length of user-supplied data prior to copying it to a
stack-based buffer, which could allow an attacker to execute arbitrary code 
under the context of the process.

CVE-2017-12706 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).

HEAP-BASED BUFFER OVERFLOW CWE-122

Researchers have identified multiple vulnerabilities where there is a lack of
proper validation of the length of user-supplied data prior to copying it to 
the heap-based buffer, which could allow an attacker to execute arbitrary code
under the context of the process.

CVE-2017-12704 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).

USE OF EXTERNALLY-CONTROLLED FORMAT STRING CWE-134

String format specifiers based on user provided input are not properly 
validated, which could allow an attacker to execute arbitrary code.

CVE-2017-12702 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).

IMPROPER AUTHENTICATION CWE-287

Specially crafted requests allow a possible authentication bypass that could 
allow remote code execution.

CVE-2017-12698 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).

INCORRECT PERMISSION ASSIGNMENT FOR CRITICAL RESOURCE CWE-732

Multiple files and folders with ACLs that affect other users are allowed to be
modified by non-administrator accounts.

CVE-2017-12713 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:L/UI:N/S:U/C:H/I:H/A:H).

INCORRECT PRIVILEGE ASSIGNMENT CWE-266

A built-in user account has been granted a sensitive privilege that may allow
a user to elevate to administrative privileges.

CVE-2017-12711 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:L/UI:N/S:U/C:H/I:H/A:H).

UNCONTROLLED SEARCH PATH ELEMENT CWE-427

A maliciously crafted dll file placed earlier in the search path may allow an
attacker to execute code within the context of the application.

CVE-2017-12717 has been assigned to this vulnerability. A CVSS v3 base score 
of 4.8 has been calculated; the CVSS vector string is 
(AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L).

RESEARCHERS

Independent researcher Fritz Sands, independent researcher rgod, Tenable 
Network Security, and an anonymous researcher, all working with Trend Micros 
Zero Day Initiative, and Haojun Hou and DongWang from ADLab of Venustech 
identified these vulnerabilities.

BACKGROUND

Critical Infrastructure Sector: Critical Manufacturing, Energy, Water and 
Wastewater

Countries/Areas Deployed: East Asia, United States, Europe

Company Headquarters Location: Taiwan

Contact Information

For any questions related to this report, please contact ICS-CERT at:

Email: ics-cert@hq.dhs.gov

Toll Free: 1-877-776-7585

International Callers: (208) 526-0900

For industrial control systems security information and incident reporting: 
http://ics-cert.us-cert.gov

ICS-CERT continuously strives to improve its products and services. You can 
help by choosing one of the links below to provide feedback about this 
product.

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBWaYO1ox+lLeg9Ub1AQiJOw//cEyXzSV0qK6OjlrVlqCj0BnlneyXGLNa
lv2RRdVXQU4ou85bLnc1vqKe56NWqCAQsN+kjEQvDGX7jIo6dHhQFoWfiWI88Ph5
lHxHgTfvIuqQAzJLbetmy+NTgoP8H7iXcCmOI2bALv2ruEjN/L9rno7eE29OUAyB
gbSOiFKI33tcAYu7rnpxoMJRmynheo88Ux+kndptO56ZXTcq8pb6HwMwfAako12g
cn80GGHmrJ47REZvMc89h3XR8pmqciKrAdZV0jp4vKu40Ze5be6z7Wny9M7loBdA
9DBThcyrCRD5zJnqqEMNjdjSklfYCkIuNP9Fb1s7fJ5dGY22AIZbRsz5GCokH1+H
qrrIkDI45FalVFrFc5RwTdn8S2Lo7zwkVN1axP+XzZ1i9JQPXQVmE4qiVmSpnVKL
NjaMjueyGqMqIXvz2cHH6OZe7d1TVUTWdlAFOyBovz3sGsW8R9Zv1fY56YgJAJcf
gkLARqBp1DRjtjI2xJeIYv3UitP7VYW/zqC8WebfomFeAs2jJateKV5wloanX9UB
qtoX4einz+zw/gy3vz3B07xlHlAFjtTQh0E+6olNlNHZ4PA6kn0uqSom8LHoezZI
GXWCFvatN8FC6SlLDBSCoWckBewe6sLDPxgXyOBkhT5QBz+SF0M8N13CHqiuUQWI
pGqDxb0GmlU=
=n6lB
-----END PGP SIGNATURE-----

« Back to bulletins