-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

                               ESB-2013.1537
                WellinTech KingView ActiveX Vulnerabilities
                              28 October 2013

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

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

Product:           WellinTech KingView
Publisher:         ICS-CERT
Operating System:  Windows
Impact/Access:     Overwrite Arbitrary Files -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2013-6128 CVE-2013-6127 

Original Bulletin: 
   http://ics-cert.us-cert.gov/advisories/ICSA-13-295-01

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

Advisory (ICSA-13-295-01)

WellinTech KingView ActiveX Vulnerabilities

Original release date: October 22, 2013

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/.

OVERVIEW

This advisory is a follow-up to the alert titled ICS-ALERT-13-256-01 WellinTech
KingView ActiveX Vulnerabilities[a] that was published September 13, 2013, on 
the NCCIC/ICS-CERT Web site.

Independent researcher "Blake" identified ActiveX vulnerabilities and released
proof-of-concept (exploit) code for WellinTech KingView application without
coordination with NCCIC/ICS-CERT, the vendor, or any other coordinating entity
known to NCCIC/ICS-CERT. WellinTech has produced a new version that mitigates 
these vulnerabilities.

These vulnerabilities could be exploited remotely. Exploits that target these
vulnerabilities are known to be publicly available.

AFFECTED PRODUCTS

The following KingView versions are affected:

    KingView versions older than Version 6.53.

IMPACT

Successful exploitation of these vulnerabilities may allow an attacker to 
overwrite files and copy them from one location to another on the target 
machine.

Impact to individual organizations depends on many factors that are unique to 
each organization. NCCIC/ICS-CERT recommends that organizations evaluate the 
impact of these vulnerabilities based on their operational environment, 
architecture, and product implementation.

BACKGROUND

WellinTech is a software development company specializing in automation and 
control. WellinTech is based in Beijing, China, with branches in the United 
States, Japan, Singapore, Europe, and Taiwan.

According to the WellinTech Web site, the KingView product is a Windows-based 
control, monitoring, and data collection application deployed across several 
industries including power, water, building automation, mining, and others.

VULNERABILITY CHARACTERIZATION

VULNERABILITY OVERVIEW

INSECURE ACTIVEX CONTROL[b]

WellinTech KingView contains a flaw in the SuperGrid.ocx ActiveX control that 
allows an attacker to traverse outside a restricted path. The issue is due to 
the program not properly sanitizing user input, specifically directory 
traversal style attacks.

This proof of concept will copy any arbitrary file from one location to a 
second location. It can also be used to overwrite existing files. This 
vulnerability may be used to inject files which, in turn, may allow arbitrary 
code execution.

CVE-2013-6127[c] has been assigned to this vulnerability. A CVSS v2 base score 
of 5.8 has been assigned; the CVSS vector string is 
(AV:N/AC:M/Au:N/C:N/I:P/A:P).[d]

ACTIVEX REMOTE FILE CREATION/OVERWRITE[e]

WellinTech KingView contains a flaw in the KChartXY.ocx ActiveX control that 
allows an attacker to traverse outside a restricted path. The issue is due to 
the program not properly sanitizing user input.

Proof of concept overwrites the win.ini file.

CVE-2013-6128[f] has been assigned to this vulnerability. A CVSS v2 base score 
of 5.8 has been assigned; the CVSS vector string is 
(AV:N/AC:M/Au:N/C:N/I:P/A:P).[g]

VULNERABILITY DETAILS

EXPLOITABILITY

These vulnerabilities could be exploited remotely.

EXISTENCE OF EXPLOIT

Exploits that target these vulnerabilities are publicly available.

DIFFICULTY

An attacker with a medium skill would be able to exploit these vulnerabilities.

MITIGATION

WellinTech has provided the following links to download new versions of the 
affected files:

    SuperGrid.ocx Version number:65.30.30000.10002

http://www.kingview.com/en/downloads/Downloads/SuperGrid.rar

    KChartXY.ocx Version number:65.30.30000.10002

http://www.kingview.com/en/downloads/Downloads/KChartXY.rar

It is also possible to correct the flaw by implementing the following 
workarounds:

    Set the kill-bit on the KChartXY ActiveX Control 
    (CLSID A9A2011A-1E02-4242-AAE0-B239A6F88BAC).
    Set the kill-bit on the SuperGrid ActiveX Control 
    (CLSID F494550F-A028-4817-A7B5-E5F2DCB4A47E).

For specific information on mitigating ActiveX vulnerabilities, see Microsoft 
KB article 240797.[h]

NCCIC/ICS-CERT encourages asset owners to take additional defensive measures to
protect against this and other cybersecurity risks.

    Minimize network exposure for all control system devices. Critical devices
    should not directly face 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 VPN is only as secure as the connected 
    devices.

NCCIC/ICS-CERT also provides a section for control systems security 
recommended practices on the NCCIC/ICS-CERT Web page. Several recommended 
practices are available for reading and download, including Improving 
Industrial Control Systems Cybersecurity with Defense-in-Depth Strategies.[i] 
NCCIC/ICS-CERT reminds organizations to perform proper impact analysis and 
risk assessment prior to taking defensive measures.

Additional mitigation guidance and recommended practices are publicly available
in the NCCIC/ICS-CERT Technical Information Paper, ICS-TIP-12-146-01B-Targeted 
Cyber Intrusion Mitigation Strategies,[j] that is available for download from 
the NCCIC/ICS-CERT Web page (http://ics-cert.us-cert.gov/).

Organizations observing any suspected malicious activity should follow their 
established internal procedures and report their findings to NCCIC/ICS-CERT for
tracking and correlation against other incidents.

    a. ICS-ALERT-13-256-01 WellinTech KingView ActiveX Vulnerabilities, 
       http://ics-cert.us-cert.gov/alerts/ICS-ALERT-13-256-01, 
       Web site last accessed October 22, 2013.
    b. CWE-40: Path Traversal: '\\UNC\share\name\' (Windows UNC Share),
       http://cwe.mitre.org/data/definitions/40.html, Web site last accessed 
       October 22, 2013.
    c. NVD, http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-6127, 
       NIST uses this advisory to create the CVE Web site report. This Web site
       will be active sometime after publication of this advisory.
    d. CVSS Calculator, 
       http://nvd.nist.gov/cvss.cfm?version=2&vector=AV:N/AC:M/Au:N/C:N/I:P/A:P, 
       Web site last visited October 22, 2013.
    e. CWE-28: Path Traversal: '..\filedir', 
       http://cwe.mitre.org/data/definitions/28.html, 
       Web site last accessed October 22, 2013.
    f. NVD, http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-6128, 
       NIST uses this advisory to create the CVE Web site report. This Web site 
       will be active sometime after publication of this advisory.
    g. CVSS Calculator, 
       http://nvd.nist.gov/cvss.cfm?version=2&vector=AV:N/AC:M/Au:N/C:N/I:P/A:P, 
       Web site last visited October 22, 2013.
    h. Microsoft Support article: How to stop an ActiveX control from running in 
       Internet Explorer, http://support.microsoft.com/kb/240797, Web site last 
       accessed October 22, 2013.
    i. CSSP Recommended Practices, 
       http://ics-cert.us-cert.gov/content/recommended-practices, Web site last 
       accessed October 22, 2013.
    j. Targeted Cyber Intrusion Detection and Mitigation Strategies, 
       http://ics-cert.us-cert.gov/tips/ICS-TIP-12-146-01B, Web site last 
       accessed October 22, 2013.

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 answering a short series of questions about this product at the 
following URL: https://forms.us-cert.gov/ncsd-feedback/.

- --------------------------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

iQIVAwUBUm3tYRLndAQH1ShLAQIovBAApHJMi70Ua0q2UbeGPUJ3hPRCsh2hVgyk
cG37HlveToPwOTLR6KSRSpfceAoQGYEI7LeGYYIWXvIK4o6ruIxQXUi8uLY1qaVm
LM1f+fMQWoxxJsu2CAQII8asz7HkhGMSptmHl56WanDozH4zuQbtVWNYI9nk+Rd/
dQXBPi2GcRlLmzgIVodwh7FFtzMOxWXN1h5WX9IFdtR4q3g4fHC2AZ0jGItotwPM
m56IpNufAJ8tEjioYw7oFLOIWrduxOj9n42fIrBroCc4HBdT+r44uG+1jSBCetag
wvMVAh7SCYiQSoI9YLczJaoR5a+FBjhgsO/Ml+Eg+jcGAFruNb6q10EWHm5la7On
i4Cb4bKJ5DBaO1pCVdoyO8JVIj7GJJLfnhM+6k0150bhgr+ItkGhALLe50JIp6Sa
b7o7XP85n3xU4BGlPET1/GFwlwssCRq4XwGLGbzntfDbeZvSEheDmPUXSQK9pJsE
STE2hAgswWDbCDlYJ36zZ82b9QEBgU9uu5p7K+FSVtjux7/tXOeo3Tjhl4EBhNns
tCpa8nOMT7FH+kfFXnsr6Ef+6bqR3WZT27q9IQH1nfu3J++VJHHPiHx32JwMULC+
ZFoFVQChBV7Ik1saijDcxfJIuAEZUyVWr9ljLTJvI0PEtXtpqhUNG2UkPpKapT0k
L/ql+v+f5/E=
=XrzY
-----END PGP SIGNATURE-----