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

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

                               ESB-2019.1866
               Advisory (ICSA-19-141-01) Computrols CBAS Web
                                24 May 2019

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

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

Product:           CBAS Web
Publisher:         NCCIC
Operating System:  Network Appliance
Impact/Access:     Execute Arbitrary Code/Commands -- Remote with User Interaction
                   Cross-site Request Forgery      -- Remote with User Interaction
                   Access Confidential Data        -- Remote/Unauthenticated      
                   Reduced Security                -- Remote/Unauthenticated      
Resolution:        Patch/Upgrade
CVE Names:         CVE-2019-10855 CVE-2019-10854 CVE-2019-10853
                   CVE-2019-10852 CVE-2019-10851 CVE-2019-10849
                   CVE-2019-10848 CVE-2019-10847 CVE-2019-10846

Original Bulletin: 
   https://ics-cert.us-cert.gov/advisories/ICSA-19-141-01

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

Advisory (ICSA-19-141-01)

Computrols CBAS Web

Original release date: May 21, 2019

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

1. EXECUTIVE SUMMARY

  o CVSS v3 8.8
  o ATTENTION: Exploitable remotely/low skill level to exploit
  o Vendor: Computrols
  o Equipment: CBAS Web
  o Vulnerabilities: Cross-site Request Forgery, Information Exposure Through
    Discrepancy, Cross-site Scripting, Command Injection, Information Exposure
    Through Source Code, Use of Hard-coded Cryptographic Key, SQL Injection,
    Authentication Bypass Using an Alternate Path or Channel, Inadequate
    Encryption Strength

2. RISK EVALUATION

Successful exploitation of these vulnerabilities could allow unauthorized
actions with administrative privileges, disclosure of sensitive information,
execution of code within a user's browser, execution of unauthorized OS
commands, unauthorized access to the database, execution of unauthorized SQL
commands, authentication bypass, or decryption of passwords.

3. TECHNICAL DETAILS

3.1 AFFECTED PRODUCTS

All versions of CBAS Web, a Web Building Management System (BMS), prior to the
following versions are affected:
o 19.0.1
o 18.0.1
o 15.0.1
o 14.0.1
o 8.0.7
o 7.2.1-Beta
o 6.9.2
o 4.8.2
o 3.15.1

3.2 VULNERABILITY OVERVIEW

3.2.1 CROSS-SITE REQUEST FORGERY (CSRF) CWE-352

Users can perform certain actions via HTTP requests without performing any
validity checks, which may allow unauthorized actions with administrative
privileges if a logged-in user visits a malicious website.

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

3.2.2 INFORMATION EXPOSURE THROUGH DISCREPANCY CWE-203

The application suffers from a username enumeration weakness. The device
behaves differently or sends different responses in a way that may expose
security-relevant information about the state of the product.

CVE-2019-10848 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 ).

3.2.3 IMPROPER NEUTRALIZATION OF INPUT DURING WEB PAGE GENERATION ('CROSS-SITE
SCRIPTING') CWE-79

Specific parameters passed to scripts is not sanitized before being returned to
the user, which may allow an attacker to execute arbitrary code in a user's
browser session in context of an affected site.

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

3.2.4 IMPROPER NEUTRALIZATION OF SPECIAL ELEMENTS USED IN A COMMAND ('COMMAND
INJECTION') CWE-77

The application incorrectly neutralizes special elements that could modify the
intended OS command when it is sent to a downstream component, which could
allow attackers to execute commands directly on the operating system.

CVE-2019-10854 has been assigned to this vulnerability. A CVSS v3 base score of
8.8 has been calculated; the CVSS vector string is ( AV:N/AC:L/PR:L/UI:N/S:U/
C:H/I:H/A:H ).

3.2.5 INFORMATION EXPOSURE THROUGH SOURCE CODE CWE-540

The application has an unprotected subversion directory, which may allow an
attacker to download the entire firmware codebase and discover sensitive
information about the inner workings of the underlying OS.

CVE-2019-10849 has been assigned to this vulnerability. A CVSS v3 base score of
7.5 has been calculated; the CVSS vector string is ( AV:N/AC:L/PR:N/UI:N/S:U/
C:H/I:N/A:N ).

3.2.6 USE OF HARD-CODED CRYPTOGRAPHIC KEY CWE-321

Several scripts contain a hard-coded encryption key for database backup file
decryption, which may allow an authenticated attacker to gain access to the
full database of the device and discover sensitive information.

CVE-2019-10851 has been assigned to this vulnerability. A CVSS v3 base score of
6.5 has been calculated; the CVSS vector string is ( AV:N/AC:L/PR:L/UI:N/S:U/
C:H/I:N/A:N ).

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

Improper validation of parameters passed to different scripts may allow a
remote authenticated attacker to execute arbitrary SQL commands in the
application's database.

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

3.2.8 AUTHENTICATION BYPASS USING AN ALTERNATE PATH OR CHANNEL CWE-288

Sending specific parameters to a function will enable the auth flag, which may
allow an unauthenticated attacker to bypass authentication and gain full
control of the device.

CVE-2019-10853 has been assigned to this vulnerability. A CVSS v3 base score of
8.1 has been calculated; the CVSS vector string is ( AV:N/AC:H/PR:N/UI:N/S:U/
C:H/I:H/A:H ).

3.2.9 INADEQUATE ENCRYPTION STRENGTH CWE-326

The application stores the passwords in the database using the MD5 hash. The
MD5 algorithm is vulnerable to known cryptographic attacks, which may allow
discovery of passwords.

CVE-2019-10855 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 ).

3.3 BACKGROUND

  o CRITICAL INFRASTRUCTURE SECTORS: Commercial Facilities, Government
    Facilities, Healthcare and Public Health
  o COUNTRIES/AREAS DEPLOYED: North America
  o COMPANY HEADQUARTERS LOCATION: United States

3.4 RESEARCHER

Gjoko Krstic of Applied Risk reported these vulnerabilities to Computrols.

4. MITIGATIONS

Computrols recommends users upgrade to the following versions or later for each
respective major versions of CBAS Web:

  o 19.0.1
  o 18.0.1
  o 15.0.1
  o 14.0.1
  o 8.0.7
  o 7.2.1-Beta
  o 6.9.2
  o 4.8.2
  o 3.15.1

Updated software can be obtained by contacting Computrols Technical Support:

http://www.computrols.com/support/technical-support/

For more information, see the Computrols security advisory at the following
link:

http://www.computrols.com/wp-content/uploads/2019/05/
CBAS-Web-Advisory-2019-5-9.pdf

NCCIC recommends users take defensive measures to minimize the risk of
exploitation of this vulnerability. Specifically, users should:

  o Minimize network exposure for all control system devices and/or systems,
    and ensure that they are not accessible from the Internet .
  o Locate control system networks and remote devices behind firewalls, and
    isolate them from the business network.
  o 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.

NCCIC reminds organizations to perform proper impact analysis and risk
assessment prior to deploying defensive measures.

NCCIC 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
on the ICS-CERT website in the Technical Information Paper,
ICS-TIP-12-146-01B--Targeted Cyber Intrusion Detection and Mitigation
Strategies .

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

NCCIC also recommends that users take the following measures to protect
themselves from social engineering attacks:

  o Do not click web links or open unsolicited attachments in email messages.
  o Refer to Recognizing and Avoiding Email Scams for more information on
    avoiding email scams.
  o Refer to Avoiding Social Engineering and Phishing Attacks for more
    information on social engineering attacks.

No known public exploits specifically target these vulnerabilities.

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

        https://www.auscert.org.au/bulletins/

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

iQIVAwUBXOdg+2aOgq3Tt24GAQhwlA//S59fdm5+57C5pyLixUlgaaU9qAxZ9+Tv
7WMpGUDODzMN4ALNSuxrr2NLNu42ONQooSfM61rup5r9i2J7pBbag4l9LCbvqRff
uevJyYDI3XF2sd7si1EwtEt31Dreg1/tWGjip+bBhO5BIE+XV4Shg17Dd2bPS8mj
8P9GnGmsNcuemzKw5sC/5EdaY6MJGC1F1icSGBDHgcKlTu02Sxc4Oqg6s3KB8BgT
z9MzpWNrXVsNNURqYwPWQtSg5y4woLIvhz48ZDAFIpapZKJ/Gto2cPM3Pq6QStXO
qI8o2YFaX13UlrPF5AId3/+WEm00WyJY2FOmS4LZWW6jdUmP32MZ44xFfZhSA8bw
Yflz3cENgG/ykDJnnGgKuFNA3XjUPDomUAszsq1lNhRbnOwoQRH3gGRmnNI8cV3v
IYlbI5VNJcA0YIiMZHOWzx7VgobQvNPeL3df0pJp8H2W/lyUuVvvIagfpKyU2wis
yZ5dCQF1f46pDxQnqYICrvxoLBGUWa082lybOb1EQQBTkPmaHgTZGN1me1H4EZ7y
lsYnKhs11gYPDXIX4kLDpjLjVN88Xn6RLWTK/jHaD2uJ7lMLUufAhbNOniCVOyM7
CI0IjbsRuzjecNPZOg2prtPTSoxsNPUm3ewzpHaOhBrseBKkEaipsRongb1LS9Xp
q2yOkn41/eY=
=9Vmo
-----END PGP SIGNATURE-----