OSIsoft has an update and recommendations to handle a cross-site scripting vulnerability in its PI Web API 2019, according to a report with CISA.
Successful exploitation of this remotely exploitable vulnerability could allow a remote authenticated attacker with write access to a PI Server to trick a user into interacting with a PI Web API endpoint that executes arbitrary JavaScript in the user’s browser, resulting in view, modification, or deletion of data as allowed for by the victim’s user permissions.
OSIsoft, working with Dor Yardeni and Eliad Mualem at OTORIO, reported this vulnerability to CISA.
The following versions of PI Web API suffer from the issue: PI Web API 2019 Patch 1 (1.12.0.6346) and all previous versions.
In the issue, the affected product is vulnerable to a cross-site scripting attack, which may allow an attacker to remotely execute arbitrary code.
CVE-2020-12021 is the case number assigned to this vulnerability, which has a CVSS v3 base score of 7.7.
The product sees use in the chemical, critical manufacturing, energy, food and agriculture, government facilities, healthcare and public health, information technology, and water and wastewater systems sectors. It also sees action on a global basis.
No known public exploits specifically target this vulnerability. High skill level is needed to exploit.
OSIsoft recommends affected users upgrade to PI Web API 2019 SP1.
OSIsoft also recommends affected users implement the following measures to reduce exploitation:
- Avoid adding authentication type anonymous in PI Web API configuration settings to limit exposure to authenticated users only.
- Consider using a web application firewall to block HTML responses from PI Web API servers.
- Limit write access to PI Server to trusted users.
- Remove PI Web API write access to PI AF servers with the “DisableWrite” setting. For more information on the “DisableWrite” setting, consult the PI Web API User Guide.
- Enable IE Enhanced Security Configuration on Windows servers where the Desktop Experience feature is installed.

