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

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

                               ESB-2020.0161
                Advisory (icsa-20-014-06) OSIsoft PI Vision
                              16 January 2020

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

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

Product:           OSIsoft PI Vision
Publisher:         ICS-CERT
Operating System:  Network Appliance
Impact/Access:     Cross-site Request Forgery -- Remote with User Interaction
                   Cross-site Scripting       -- Remote with User Interaction
                   Access Confidential Data   -- Existing Account            
Resolution:        Patch/Upgrade
CVE Names:         CVE-2019-18275 CVE-2019-18273 CVE-2019-18271
                   CVE-2019-18244  

Original Bulletin: 
   https://www.us-cert.gov/ics/advisories/icsa-20-014-06

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

ICS Advisory (ICSA-20-014-06)

OSIsoft PI Vision

Original release date: January 14, 2020

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 7.1
  o ATTENTION: Exploitable remotely/low skill level to exploit
  o Vendor: OSIsoft LLC
  o Equipment: PI Vision
  o Vulnerabilities: Improper Access Control, Cross-site Request Forgery
    (CSRF), Cross-site Scripting, Inclusion of Sensitive Information in Log
    Files

2. RISK EVALUATION

Successful exploitation of these vulnerabilities may allow disclosure of
sensitive information and limit the availability of the system.

3. TECHNICAL DETAILS

3.1 AFFECTED PRODUCTS

The following versions of PI Vision, a visualization tool, are affected:

  o CVE-2019-18275 and CVE-2019-18271 : All versions of PI Vision prior to 2019
  o CVE-2019-18273 : PI Vision 2017 R2 and PI Vision 2017 R2 SP1
  o CVE-2019-18244 : PI Vision 2017 R2, PI Vision 2017 R2 SP1, PI Vision 2019

3.2 VULNERABILITY OVERVIEW

3.2.1 IMPROPER ACCESS CONTROL CWE-284

The affected product is vulnerable to an improper access control, which may
return unauthorized tag data when viewing analysis data reference attributes.

CVE-2019-18275 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.2 CROSS-SITE REQUEST FORGERY (CSRF) CWE-352

The affected product is vulnerable to a cross-site request forgery that may be
introduced on the PI Vision administration site.

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

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

The affected product is vulnerable to cross-site scripting, which may allow
invalid input to be introduced.

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

3.2.4 INCLUSION OF SENSITIVE INFORMATION IN LOG FILES CWE-532

The affected product records the service account password in the installation
log files when a non-default service account and password are specified during
installation or upgrade.

CVE-2019-18244 has been assigned to this vulnerability. A CVSS v3 base score of
5.1 has been calculated; 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
  o COUNTRIES/AREAS DEPLOYED: Worldwide
  o COMPANY HEADQUARTERS LOCATION: United States

3.4 RESEARCHER

OSIsoft reported this self-discovered issue to CISA.

4. MITIGATIONS

OSIsoft recommends users upgrade to PI Vision 2019 to resolve these issues.

Additionally, OSIsoft recommends the following defensive measures:

CVE-2019-18275 : If upgrade is not an option, administrators should regularly
audit the AF hierarchy to ensure that there are no unexpected or unknown
elements/attributes. It is recommended that security on elements in AF be
configured and enforced in addition to configuring PI point security.

Potential unauthorized viewing of PI System data due to this issue is limited
to permissions granted to the PI Vision Application Pool Identity. Configure a
dedicated identity mapping for PI Vision servers and manage permissions in
accordance with a data classification policy.

CVE-2019-18271 and CVE-2019-18273 : All access to the AF Server is protected by
Windows authentication, so the modifications to AF data items required by an
attacker would have to be performed by a user with write access to either the
AF hierarchy or templates. Periodic review of AF Server permissions to ensure
only intended users are granted write access to elements, element templates,
event frame templates, and databases and servers configured on the PI Vision
admin site is a good practice to reduce exposure.

Similarly, which data items are available to PI Vision is controlled by the PI
Vision Administrators through the Administrative site. Only add data sources to
PI Vision that you can verify as legitimate with appropriate access control
configured.

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 if a standard domain account is used to run PI Vision
AppPools, remove the password entry from the setup log files immediately. The
vulnerable log file is %pihome%\dat\SetupPIVision.log

For more information and workaround details for these vulnerabilities, please
refer to OSIsoft's Security Bulletin (registration required): OSIsoft releases
security update in PI Vision 2019

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

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.

CISA also recommends 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

iQIVAwUBXh+yU2aOgq3Tt24GAQjkdhAA3mnQsSVH0Ss1TvGIH1Pg4EKzbKGkU5a4
q0HSgUS5mUSLPRMMMox+ovGqalhN0F75baHNsiJtuURyDodSKLxSYHQCzcgfSaVH
2nlqWWI6OphAZLAekmpETNkI4N2T8SNJbyUjkAr1aRu/N0NIWn9U2VMdkBZ3Z4nT
eIjKB+k3mh46OWFtOhNzoDfy8iRzzUnGc4vbXz0RAIFnk+qc4e3HZhn8ivzcKrTs
zUzkoZYI+nbJaV6Kcbk8vNVAu9M8OJblaCNpgfVTFkSS0w0qQGMJsaCWQp9kFDjn
dx8fRSypoQ7rMSc6jcTPlKjwOW7Dznrjng9RxPqn/UG0ne40mMJ7rg4XdDcmJe6j
PM962HeDhvl63PJzDGwCpT7fsWCGCTkjE2ERGBD13DusAFj0z/9ARL1IQibXhp2p
lLercyMvpu7AucQ8iXuAF3WyH3H0iy8BBNeKFJDdEmh4NdBOHgvEYbIuMl0jEw7T
nVPccG2cfFGUPyBfqyhEi0F5P1qm+fOYxae3xHOR91oD/1Ftyysw/GV5To3thQ9b
jnjLCZtl2NFTzW0N3IvBeknSnljROU6V/fjfFPM7w9++9/UtU3sUP9bZfZZmmlJF
h8+OocyeU3kmLGVOocJxPc44CjGAFP9Xg35+B/KnWpcUjiZOrc+GNJywxEHx9SZL
k/w19pCzrsw=
=N75i
-----END PGP SIGNATURE-----