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

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

                               ESB-2020.1679
                Advisory (icsa-20-133-02) OSIsoft PI System
                                13 May 2020

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

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

Product:           OSIsoft PI System
Publisher:         ICS Advisory
Operating System:  Network Appliance
Impact/Access:     Denial of Service        -- Remote/Unauthenticated      
                   Cross-site Scripting     -- Remote with User Interaction
                   Access Confidential Data -- Existing Account            
                   Modify Arbitrary Files   -- Existing Account            
Resolution:        Patch/Upgrade
CVE Names:         CVE-2020-10614 CVE-2020-10610 CVE-2020-10608
                   CVE-2020-10606 CVE-2020-10604 CVE-2020-10602
                   CVE-2020-10600 CVE-2019-18244 CVE-2019-11358
                   CVE-2019-10768  

Reference:         ESB-2020.0161

Original Bulletin: 
   https://www.us-cert.gov/ics/advisories/icsa-20-133-02

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

ICS Advisory (ICSA-20-133-02)

OSIsoft PI System

Original release date: May 12, 2020

Legal Notice

All information products included in https://us-cert.gov/ics 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 https://www.us-cert.gov/tlp/ .



1. EXECUTIVE SUMMARY

  o CVSS v3 7.8
  o ATTENTION: Exploitable remotely/low skill level to exploit
  o Vendor: OSIsoft
  o Equipment: PI System
  o Vulnerabilities: Uncontrolled Search Path Element, Improper Verification of
    Cryptographic Signature, Incorrect Default Permissions, Uncaught Exception,
    Null Pointer Dereference, Improper Input Validation, Cross-site Scripting,
    Insertion of Sensitive Information into Log File

2. RISK EVALUATION

Successful exploitation of these vulnerabilities could allow an attacker to
access unauthorized information, delete or modify local processes, and crash
the affected device.

3. TECHNICAL DETAILS

3.1 AFFECTED PRODUCTS

The following versions of PI System are affected:
CVE-2020-10610, CVE-2020-10608, CVE-2020-10606:

  o Applications using PI Asset Framework (AF) Client versions prior to and
    including PI AF Client 2018 SP3 Patch 1, Version 2.10.7.283
  o Applications using PI Software Development Kit (SDK) versions prior to and
    including PI SDK 2018 SP1, Version 1.4.7.602
  o PI API for Windows Integrated Security versions prior to and including
    2.0.2.5,
  o PI API versions prior to and including 1.6.8.26
  o PI Buffer Subsystem versions prior to and including 4.8.0.18
  o PI Connector for BACnet, versions prior to and including 1.2.0.6
  o PI Connector for CygNet, versions prior to and including 1.4.0.17
  o PI Connector for DC Systems RTscada, versions prior to and including
    1.2.0.42
  o PI Connector for Ethernet/IP, versions prior to and including 1.1.0.10
  o PI Connector for HART-IP, versions prior to and including 1.3.0.1
  o PI Connector for Ping, versions prior to and including 1.0.0.54
  o PI Connector for Wonderware Historian, versions prior to and including
    1.5.0.88
  o PI Connector Relay, versions prior to and including 2.5.19.0
  o PI Data Archive versions prior to and including PI Data Archive 2018 SP3,
    Version 3.4.430.460
  o PI Data Collection Manager, versions prior to and including 2.5.19.0
  o PI Integrator for Business Analytics versions prior to and including 2018
    R2 SP1, Version 2.2.0.183
  o PI Interface Configuration Utility (ICU) versions prior to and including
    1.5.0.7
  o PI to OCS versions prior to and including 1.1.36.0
  o CVE-2020-10604, CVE-2020-10602:
  o PI Data Archive 2018 and 2018 SP2 only

CVE-2020-10600:

  o PI Data Archive 2018 SP2 and prior versions

CVE-2019-10768:

  o PI Vision 2019 and prior
  o PI Manual Logger 2017 R2 Patch 1 and prior
  o RtReports Version 4.1 and prior

CVE-2020-10600, CVE-2020-10614, CVE-2019-18244:

  o PI Vision 2019 and prior versions

3.2 VULNERABILITY OVERVIEW

3.2.1 UNCONTROLLED SEARCH PATH ELEMENT CWE-427

A local attacker can modify a search path and plant a binary to exploit the
affected PI System software to take control of the local computer at Windows
system privilege level, resulting in unauthorized information disclosure,
deletion, or modification.

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

3.2.2 IMPROPER VERIFICATION OF CRYPTOGRAPHIC SIGNATURE CWE-347

A local attacker can plant a binary and bypass a code integrity check for
loading PI System libraries. This exploitation can target another local user of
PI System software on the computer to escalate privilege and result in
unauthorized information disclosure, deletion, or modification.

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

3.2.3 INCORRECT DEFAULT PERMISSIONS CWE-276

A local attacker can exploit incorrect permissions set by affected PI System
software. This exploitation can result in unauthorized information disclosure,
deletion, or modification if the local computer also processes PI System data
from other users, such as from a shared workstation or terminal server
deployment.

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

3.2.4 UNCAUGHT EXCEPTION CWE-248

A remote, unauthenticated attacker could crash PI Network Manager service
through specially crafted requests. This can result in blocking connections and
queries to PI Data Archive.

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

3.2.5 NULL POINTER DEREFERENCE CWE-476

An authenticated remote attacker could crash PI Network Manager due to a race
condition. This can result in blocking connections and queries to PI Data
Archive.

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

3.2.6 NULL POINTER DEREFERENCE CWE-476

An authenticated remote attacker could crash PI Archive Subsystem when the
subsystem is working under memory pressure. This can result in blocking queries
to PI Data Archive.

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

3.2.7 IMPROPER INPUT VALIDATION CWE-20

An authenticated remote attacker could add or modify internal object
properties, resulting in undefined behavior.

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

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

An authenticated remote attacker could use specially crafted URLs to send a
victim using PI Vision mobile to a vulnerable webpage due to a known issue in a
third-party component.

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

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

An authenticated remote attacker with write access to PI Vision databases could
inject code into a display. Unauthorized information disclosure, deletion, or
modification is possible if a victim views the infected display.

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

3.2.10 INSERTION OF SENSITIVE INFORMATION INTO LOG FILE CWE-532

A local attacker could view sensitive information in log files when service
accounts are customized during installation or upgrade of PI Vision. The update
fixes a previously reported issue.

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

3.3 BACKGROUND

  o CRITICAL INFRASTRUCTURE SECTORS: Multiple Sectors
  o COUNTRIES/AREAS DEPLOYED: Worldwide
  o COMPANY HEADQUARTERS LOCATION: United States

3.4 RESEARCHER

William Knowles, Senior Security Consultant at Applied Risk, working with
OSIsoft, reported vulnerabilities to CISA.

4. MITIGATIONS

OSIsoft reports the following workarounds and defensive measures:

CVE-2020-10610-Manage permissions on HKLM\Software\PISystem and HKLM\
WOW6432Node\Software\PISystem registry keys to block a high impact exploit
path. See OSIsoft customer portal knowledge article PI System Registry Security
Recommendations for details on setting registry permissions.

CVE-2019-18244-Provision and use domain Group Managed Service Accounts or use
the default NetworkService account to run PI Vision AppPools. There is no
exposure to this vulnerability when using either of these account types. To
limit exposure in case standard domain account is used to run PI Vision
AppPools, remove the password entry from the setup log files immediately.
OSIsoft reports the following measures can be used to lower likelihood of
exploitation:

CVE-2020-10610, CVE-2020-10608, CVE-2020-10606-Migrate standard users to PI
Vision and browser-based access to PI System data.

CVE-2020-10608-Restrict network connections from PI client workstations to
trusted AF servers (TCP Port 5457).

CVE-2020-10606-Disable unused PI Buffering services from PI client workstations
(PI Buffer Subsystem, PI Buffer Server).

CVE-2019-10768, CVE-2020-10600, CVE-2020-10614-Limit write access to PI Vision
displays to trusted users.

The following measures can be used to lower the potential impact of
exploitation:

CVE-2020-10610 and CVE-2020-10608-Deploy application whitelisting solutions
with enforcement for approved DLLs:

  o Windows AppLocker
  o Windows Defender Application Control
  o CVE-2020-10610 and CVE-2020-10608-Monitor HKLM\Software\PISystem and HKLM\
    WOW6432Node\Software\PISystem registry keys as well as ProgramData\PISystem
    folder for unauthorized changes.
  o See OSIsoft customer portal knowledge article Monitoring PISystem Registry 
    .

For a list of PI System firewall port requirements, see knowledge base article
KB01162 - Firewall Port Requirements .

CVE-2020-10604, CVE-2020-10602, CVE-2020-10600-Fully configure Windows
authentication for the PI System and disable legacy authentication methods. For
a starting point on PI System security best practices, see knowledge base
article KB00833 - Seven best practices for securing your PI Server.

For more information and workaround details for these vulnerabilities, please
refer to OSIsoft's Security Bulletin (registration required): OSIsoft Updates
PI System and Common Components .

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

CISA also provides a section for control systems security recommended practices
on the ICS webpage on us-cert.gov . 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 webpage on us-cert.gov 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 CISA for tracking
and correlation against other incidents.

No known public exploits specifically target these vulnerabilities.

For any questions related to this report, please contact the CISA at:

Email: CISAservicedesk@cisa.dhs.gov
Toll Free: 1-888-282-0870

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

        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

iQIVAwUBXrubLWaOgq3Tt24GAQg9TxAAkvghQrxno/S11fML7KJuy4VIy6I10NUx
qiYJ81ezjl2WpP5+0HMM/FE7QS9rUROlQ2rO6Hdr0OejfT8dIgFbY4pv/hmlKcSz
UGgfoFV8Pt6huwn51Se4x/Kca5wgPG1D/Iinu5NCK/4qjodxFOo02rHUFXFbc+FU
ADCEg498JS2gDA3uTj6m2wLZqbJxk40Ct8LKcPz/JPn8MSj8yge4PrQch89hWK9i
vVLwMburubxt2l6ZfLcWoXOyzITb2SgmLnCgfcg8t3VKPbX+snXcx8KEPLC3FJru
QbqokEb0hm4fsZN8+IqPsucO1O3eAII7+Wns8dVJbMNEiU3oia/+giG7HrO7Ggdy
qVxxupD2+s5d0kdj79CM79mtyHZhoFGCgWEe+IvgPozcY2steg/Nn/mMKf8R8Quz
WljJZPbIpIP+KvuWZ2uycefuVBjzTfcWAL9DXNaOJWhVeXwaRnGpdfaB/K3ZEn6q
3tyh3R6gURSKliE86uZV1zjgWUj4Mc0vNthhzDEnUldhxPukTLrB2HSuCLMZ2wNK
bBwOa1zh6g23YfIcmdPqifg2un5I/mZ7ZQLK0Ug5ID/LmvgELwLbCG5gZjfvpWQO
T2Cdrm6tOI2Ro6nG7KIMmJXZOGrJXXsHneOPYvFArLf05nI5+SRpO1X/6xjBfU4d
2VOYdLOeCgw=
=gPVh
-----END PGP SIGNATURE-----