Synopsis
While developing a plugin for CVE-2016-0855, Tenable discovered an additional vulnerability in Advantech WebAccess. The issue is due to the /WaExlViewer application not properly managing authentication, allowing a remote attacker to bypass intended restrictions (CVE-2017-5152). With this access, an attacker can perform a variety of actions including, but not limited to:
- When combining with another SQL injection vulnerability via /WaExlViewer/updateTemplate.aspx (CVE-2017-5154), a remote, unauthenticated attacker can retrieve the password for the WebAccess admin account.
- Uploading template files with certain extensions (e.g., xls, xlsx, jpg, and png) will be stored in
[target]/broadweb/WaExlViewer/templates. At the very least, this can be used to exhaust disk space on the target system. Note: the systems allows jpg, but discriminates against jpeg (haters!). - Update and delete existing template files, in the formats listed above. A crafted XSL / XLSX with malicious macros could be used in a phishing campaign.
Operations in the /WaExlViewer application appear to access and manipulate tables in the MS Access database located in [installdir]\config\bwCfg.mdb (e.g., C:\WebAccess\Node\config\bwCfg.mdb). Based on limited testing due to time constraints, we know it interacts with the bwCfg.mdb database. It may include retrieval, update, and deletion of the records in some table(s).
To take advantage of this flaw, an attacker would send a POST request to /WaExlViewer/openRpt.aspx with the parameters "projName=<some_name>&nodeName=<some_name>&waPath=C:\WebAccess\Node", that will cause the application to set specific session variables.
Solution
Advantech has released version 8.2 of WebAccess to address these issues.
Additional References
https://ics-cert.us-cert.gov/advisories/ICSA-17-012-01http://www.zerodayinitiative.com/advisories/ZDI-17-043/
http://www.advantech.com/industrial-automation/webaccess/news/e16e8a84-dbad-4235-8b79-9c8ee7b92ba3
Disclosure Timeline
All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.
Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.
For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.
If you have questions or corrections about this advisory, please email [email protected]